Package com.oracle.bmc.waas.model
Class CustomProtectionRuleSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.waas.model.CustomProtectionRuleSummary.Builder
-
- Enclosing class:
- CustomProtectionRuleSummary
public static class CustomProtectionRuleSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomProtectionRuleSummary
build()
CustomProtectionRuleSummary.Builder
compartmentId(String compartmentId)
The OCID of the custom protection rule’s compartment.CustomProtectionRuleSummary.Builder
copy(CustomProtectionRuleSummary model)
CustomProtectionRuleSummary.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.CustomProtectionRuleSummary.Builder
displayName(String displayName)
The user-friendly name of the custom protection rule.CustomProtectionRuleSummary.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.CustomProtectionRuleSummary.Builder
id(String id)
The OCID of the custom protection rule.CustomProtectionRuleSummary.Builder
lifecycleState(LifecycleStates lifecycleState)
The current lifecycle state of the custom protection rule.CustomProtectionRuleSummary.Builder
modSecurityRuleIds(List<String> modSecurityRuleIds)
The auto-generated ID for the custom protection rule.CustomProtectionRuleSummary.Builder
timeCreated(Date timeCreated)
The date and time the protection rule was created, expressed in RFC 3339 timestamp format.
-
-
-
Method Detail
-
id
public CustomProtectionRuleSummary.Builder id(String id)
The OCID of the custom protection rule.- Parameters:
id
- the value to set- Returns:
- this builder
-
compartmentId
public CustomProtectionRuleSummary.Builder compartmentId(String compartmentId)
The OCID of the custom protection rule’s compartment.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
displayName
public CustomProtectionRuleSummary.Builder displayName(String displayName)
The user-friendly name of the custom protection rule.- Parameters:
displayName
- the value to set- Returns:
- this builder
-
modSecurityRuleIds
public CustomProtectionRuleSummary.Builder modSecurityRuleIds(List<String> modSecurityRuleIds)
The auto-generated ID for the custom protection rule.These IDs are referenced in logs.
- Parameters:
modSecurityRuleIds
- the value to set- Returns:
- this builder
-
lifecycleState
public CustomProtectionRuleSummary.Builder lifecycleState(LifecycleStates lifecycleState)
The current lifecycle state of the custom protection rule.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
timeCreated
public CustomProtectionRuleSummary.Builder timeCreated(Date timeCreated)
The date and time the protection rule was created, expressed in RFC 3339 timestamp format.- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
freeformTags
public CustomProtectionRuleSummary.Builder freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {"Department": "Finance"}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
definedTags
public CustomProtectionRuleSummary.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: {"Operations": {"CostCenter": "42"}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
build
public CustomProtectionRuleSummary build()
-
copy
public CustomProtectionRuleSummary.Builder copy(CustomProtectionRuleSummary model)
-
-