Package com.oracle.bmc.filestorage.model
Class CreateQuotaRuleDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.filestorage.model.CreateQuotaRuleDetails.Builder
-
- Enclosing class:
- CreateQuotaRuleDetails
public static class CreateQuotaRuleDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
principalType
public CreateQuotaRuleDetails.Builder principalType(CreateQuotaRuleDetails.PrincipalType principalType)
The type of the owner of this quota rule and usage.- Parameters:
principalType
- the value to set- Returns:
- this builder
-
principalId
public 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.
- Parameters:
principalId
- the value to set- Returns:
- this builder
-
isHardQuota
public 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.
- Parameters:
isHardQuota
- the value to set- Returns:
- this builder
-
displayName
public 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
- Parameters:
displayName
- the value to set- Returns:
- this builder
-
quotaLimitInGigabytes
public CreateQuotaRuleDetails.Builder quotaLimitInGigabytes(Integer quotaLimitInGigabytes)
The value of the quota rule in gigabytes.- Parameters:
quotaLimitInGigabytes
- the value to set- Returns:
- this builder
-
build
public CreateQuotaRuleDetails build()
-
copy
public CreateQuotaRuleDetails.Builder copy(CreateQuotaRuleDetails model)
-
-