Class QuotaRuleSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.filestorage.model.QuotaRuleSummary.Builder
-
- Enclosing class:
- QuotaRuleSummary
public static class QuotaRuleSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QuotaRuleSummary.Builder
areViolatorsOnly(Boolean areViolatorsOnly)
An option to display only the users or groups that violate their quota rules.QuotaRuleSummary
build()
QuotaRuleSummary.Builder
copy(QuotaRuleSummary model)
QuotaRuleSummary.Builder
displayName(String displayName)
A user-friendly name.QuotaRuleSummary.Builder
fileSystemId(String fileSystemId)
The OCID of the file system.QuotaRuleSummary.Builder
id(String id)
The identifier of the quota rule.QuotaRuleSummary.Builder
isHardQuota(Boolean isHardQuota)
Whether the quota rule will be enforced.QuotaRuleSummary.Builder
principalId(Integer principalId)
An identifier for the user or the group associated with quota rule and usage.QuotaRuleSummary.Builder
principalType(QuotaRuleSummary.PrincipalType principalType)
The type of the owner of this quota rule and usage.QuotaRuleSummary.Builder
quotaLimitInGigabytes(Integer quotaLimitInGigabytes)
The value of the quota rule in gigabytes.QuotaRuleSummary.Builder
timeCreated(Date timeCreated)
The date and time the quota rule was created, expressed in RFC 3339 timestamp format.QuotaRuleSummary.Builder
timeUpdated(Date timeUpdated)
The date and time the quota rule was last updated, expressed in RFC 3339 timestamp format.QuotaRuleSummary.Builder
usageInBytes(Long usageInBytes)
The usage value corresponding to this principal in bytes.
-
-
-
Method Detail
-
id
public QuotaRuleSummary.Builder id(String id)
The identifier of the quota rule.It is the base64 encoded string of the tuple <principalId, principalType, isHardQuota>.
- Parameters:
id
- the value to set- Returns:
- this builder
-
fileSystemId
public QuotaRuleSummary.Builder fileSystemId(String fileSystemId)
The OCID of the file system.- Parameters:
fileSystemId
- the value to set- Returns:
- this builder
-
principalType
public QuotaRuleSummary.Builder principalType(QuotaRuleSummary.PrincipalType principalType)
The type of the owner of this quota rule and usage.- Parameters:
principalType
- the value to set- Returns:
- this builder
-
principalId
public QuotaRuleSummary.Builder principalId(Integer principalId)
An identifier for the user or the group associated with quota rule and usage.UNIX-like operating systems use this integer value to identify a user or group to manage access control.
- Parameters:
principalId
- the value to set- Returns:
- this builder
-
isHardQuota
public QuotaRuleSummary.Builder isHardQuota(Boolean isHardQuota)
Whether the quota rule will be enforced.If isHardQuota is true, the quota rule is enforced so that the write is blocked if usage exceeds the hard quota limit. If isHardQuota is false, writes succeed even if usage exceeds the soft quota limit, but the quota rule is violated.
- Parameters:
isHardQuota
- the value to set- Returns:
- this builder
-
displayName
public QuotaRuleSummary.Builder displayName(String displayName)
A user-friendly name.It does not have to be unique, and it is changeable. Avoid entering confidential information. Example: UserXYZ’s quota
- Parameters:
displayName
- the value to set- Returns:
- this builder
-
usageInBytes
public QuotaRuleSummary.Builder usageInBytes(Long usageInBytes)
The usage value corresponding to this principal in bytes.- Parameters:
usageInBytes
- the value to set- Returns:
- this builder
-
quotaLimitInGigabytes
public QuotaRuleSummary.Builder quotaLimitInGigabytes(Integer quotaLimitInGigabytes)
The value of the quota rule in gigabytes.- Parameters:
quotaLimitInGigabytes
- the value to set- Returns:
- this builder
-
timeCreated
public QuotaRuleSummary.Builder timeCreated(Date timeCreated)
The date and time the quota rule was created, expressed in RFC 3339 timestamp format.Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public QuotaRuleSummary.Builder timeUpdated(Date timeUpdated)
The date and time the quota rule was last updated, expressed in RFC 3339 timestamp format.Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
areViolatorsOnly
public QuotaRuleSummary.Builder areViolatorsOnly(Boolean areViolatorsOnly)
An option to display only the users or groups that violate their quota rules.If areViolatorsOnly is false, results report all the quota and usage. If areViolatorsOnly is true, results only report the quota and usage for the users or groups that violate their quota rules.
- Parameters:
areViolatorsOnly
- the value to set- Returns:
- this builder
-
build
public QuotaRuleSummary build()
-
copy
public QuotaRuleSummary.Builder copy(QuotaRuleSummary model)
-
-