Package com.oracle.bmc.waas.model
Class WaasPolicy.Builder
- java.lang.Object
-
- com.oracle.bmc.waas.model.WaasPolicy.Builder
-
- Enclosing class:
- WaasPolicy
public static class WaasPolicy.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WaasPolicy.BuilderadditionalDomains(List<String> additionalDomains)An array of additional domains for this web application.WaasPolicybuild()WaasPolicy.Buildercname(String cname)The CNAME record to add to your DNS configuration to route traffic for the domain, and all additional domains, through the WAF.WaasPolicy.BuildercompartmentId(String compartmentId)The OCID of the WAAS policy’s compartment.WaasPolicy.Buildercopy(WaasPolicy model)WaasPolicy.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.WaasPolicy.BuilderdisplayName(String displayName)The user-friendly name of the WAAS policy.WaasPolicy.Builderdomain(String domain)The web application domain that the WAAS policy protects.WaasPolicy.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.WaasPolicy.Builderid(String id)The OCID of the WAAS policy.WaasPolicy.BuilderlifecycleState(LifecycleStates lifecycleState)The current lifecycle state of the WAAS policy.WaasPolicy.BuilderoriginGroups(Map<String,OriginGroup> originGroups)The map of origin groups and their keys used to associate origins to the wafConfig.WaasPolicy.Builderorigins(Map<String,Origin> origins)A map of host servers (origins) and their keys for the web application.WaasPolicy.BuilderpolicyConfig(PolicyConfig policyConfig)WaasPolicy.BuildertimeCreated(Date timeCreated)The date and time the policy was created, expressed in RFC 3339 timestamp format.WaasPolicy.BuilderwafConfig(WafConfig wafConfig)
-
-
-
Method Detail
-
id
public WaasPolicy.Builder id(String id)
The OCID of the WAAS policy.- Parameters:
id- the value to set- Returns:
- this builder
-
compartmentId
public WaasPolicy.Builder compartmentId(String compartmentId)
The OCID of the WAAS policy’s compartment.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
displayName
public WaasPolicy.Builder displayName(String displayName)
The user-friendly name of the WAAS policy.The name can be changed and does not need to be unique.
- Parameters:
displayName- the value to set- Returns:
- this builder
-
domain
public WaasPolicy.Builder domain(String domain)
The web application domain that the WAAS policy protects.- Parameters:
domain- the value to set- Returns:
- this builder
-
additionalDomains
public WaasPolicy.Builder additionalDomains(List<String> additionalDomains)
An array of additional domains for this web application.- Parameters:
additionalDomains- the value to set- Returns:
- this builder
-
cname
public WaasPolicy.Builder cname(String cname)
The CNAME record to add to your DNS configuration to route traffic for the domain, and all additional domains, through the WAF.- Parameters:
cname- the value to set- Returns:
- this builder
-
lifecycleState
public WaasPolicy.Builder lifecycleState(LifecycleStates lifecycleState)
The current lifecycle state of the WAAS policy.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
timeCreated
public WaasPolicy.Builder timeCreated(Date timeCreated)
The date and time the policy was created, expressed in RFC 3339 timestamp format.- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
origins
public WaasPolicy.Builder origins(Map<String,Origin> origins)
A map of host servers (origins) and their keys for the web application.Origin keys are used to associate origins to specific protection rules. The key should be a user-friendly name for the host. Examples: primary or secondary.
- Parameters:
origins- the value to set- Returns:
- this builder
-
originGroups
public WaasPolicy.Builder originGroups(Map<String,OriginGroup> originGroups)
The map of origin groups and their keys used to associate origins to the wafConfig.Origin groups allow you to apply weights to groups of origins for load balancing purposes. Origins with higher weights will receive larger proportions of client requests.
- Parameters:
originGroups- the value to set- Returns:
- this builder
-
policyConfig
public WaasPolicy.Builder policyConfig(PolicyConfig policyConfig)
-
wafConfig
public WaasPolicy.Builder wafConfig(WafConfig wafConfig)
-
freeformTags
public WaasPolicy.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 WaasPolicy.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 WaasPolicy build()
-
copy
public WaasPolicy.Builder copy(WaasPolicy model)
-
-