public static class CreateQuotaRuleDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CreateQuotaRuleDetails |
build() |
CreateQuotaRuleDetails.Builder |
copy(CreateQuotaRuleDetails model) |
CreateQuotaRuleDetails.Builder |
displayName(String displayName)
A user-friendly name.
|
CreateQuotaRuleDetails.Builder |
isHardQuota(Boolean isHardQuota)
Whether the quota rule will be enforced.
|
CreateQuotaRuleDetails.Builder |
principalId(Integer principalId)
An identifier for the user or the group associated with quota rule and usage.
|
CreateQuotaRuleDetails.Builder |
principalType(CreateQuotaRuleDetails.PrincipalType principalType)
The type of the owner of this quota rule and usage.
|
CreateQuotaRuleDetails.Builder |
quotaLimitInGigabytes(Integer quotaLimitInGigabytes)
The value of the quota rule in gigabytes.
|
public CreateQuotaRuleDetails.Builder principalType(CreateQuotaRuleDetails.PrincipalType principalType)
The type of the owner of this quota rule and usage.
principalType
- the value to setpublic CreateQuotaRuleDetails.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 CreateQuotaRuleDetails.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 CreateQuotaRuleDetails.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 CreateQuotaRuleDetails.Builder quotaLimitInGigabytes(Integer quotaLimitInGigabytes)
The value of the quota rule in gigabytes.
quotaLimitInGigabytes
- the value to setpublic CreateQuotaRuleDetails build()
public CreateQuotaRuleDetails.Builder copy(CreateQuotaRuleDetails model)
Copyright © 2016–2025. All rights reserved.