public static class QuotaRuleSummary.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and 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.
|
public QuotaRuleSummary.Builder id(String id)
The identifier of the quota rule. It is the base64 encoded string of the tuple <principalId, principalType, isHardQuota>.
id
- the value to setpublic QuotaRuleSummary.Builder fileSystemId(String fileSystemId)
The OCID of the file system.
fileSystemId
- the value to setpublic QuotaRuleSummary.Builder principalType(QuotaRuleSummary.PrincipalType principalType)
The type of the owner of this quota rule and usage.
principalType
- the value to setpublic 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.
principalId
- the value to setpublic 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.
isHardQuota
- the value to setpublic 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
displayName
- the value to setpublic QuotaRuleSummary.Builder usageInBytes(Long usageInBytes)
The usage value corresponding to this principal in bytes.
usageInBytes
- the value to setpublic QuotaRuleSummary.Builder quotaLimitInGigabytes(Integer quotaLimitInGigabytes)
The value of the quota rule in gigabytes.
quotaLimitInGigabytes
- the value to setpublic 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
timeCreated
- the value to setpublic 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
timeUpdated
- the value to setpublic 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.
areViolatorsOnly
- the value to setpublic QuotaRuleSummary build()
public QuotaRuleSummary.Builder copy(QuotaRuleSummary model)
Copyright © 2016–2025. All rights reserved.