Package com.oracle.bmc.waas.model
Class CreateWaasPolicyDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.waas.model.CreateWaasPolicyDetails.Builder
-
- Enclosing class:
- CreateWaasPolicyDetails
public static class CreateWaasPolicyDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateWaasPolicyDetails.Builder
additionalDomains(List<String> additionalDomains)
An array of additional domains for the specified web application.CreateWaasPolicyDetails
build()
CreateWaasPolicyDetails.Builder
compartmentId(String compartmentId)
The OCID of the compartment in which to create the WAAS policy.CreateWaasPolicyDetails.Builder
copy(CreateWaasPolicyDetails model)
CreateWaasPolicyDetails.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.CreateWaasPolicyDetails.Builder
displayName(String displayName)
A user-friendly name for the WAAS policy.CreateWaasPolicyDetails.Builder
domain(String domain)
The web application domain that the WAAS policy protects.CreateWaasPolicyDetails.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.CreateWaasPolicyDetails.Builder
originGroups(Map<String,OriginGroup> originGroups)
The map of origin groups and their keys used to associate origins to the wafConfig.CreateWaasPolicyDetails.Builder
origins(Map<String,Origin> origins)
A map of host to origin for the web application.CreateWaasPolicyDetails.Builder
policyConfig(PolicyConfig policyConfig)
CreateWaasPolicyDetails.Builder
wafConfig(WafConfigDetails wafConfig)
-
-
-
Method Detail
-
compartmentId
public CreateWaasPolicyDetails.Builder compartmentId(String compartmentId)
The OCID of the compartment in which to create the WAAS policy.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
displayName
public CreateWaasPolicyDetails.Builder displayName(String displayName)
A user-friendly name for 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 CreateWaasPolicyDetails.Builder domain(String domain)
The web application domain that the WAAS policy protects.- Parameters:
domain
- the value to set- Returns:
- this builder
-
additionalDomains
public CreateWaasPolicyDetails.Builder additionalDomains(List<String> additionalDomains)
An array of additional domains for the specified web application.- Parameters:
additionalDomains
- the value to set- Returns:
- this builder
-
origins
public CreateWaasPolicyDetails.Builder origins(Map<String,Origin> origins)
A map of host to origin for the web application.The key should be a customer friendly name for the host, ex. primary, secondary, etc.
- Parameters:
origins
- the value to set- Returns:
- this builder
-
originGroups
public CreateWaasPolicyDetails.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. To add additional origins to your WAAS policy, update the origins field of a UpdateWaasPolicy request.
- Parameters:
originGroups
- the value to set- Returns:
- this builder
-
policyConfig
public CreateWaasPolicyDetails.Builder policyConfig(PolicyConfig policyConfig)
-
wafConfig
public CreateWaasPolicyDetails.Builder wafConfig(WafConfigDetails wafConfig)
-
freeformTags
public CreateWaasPolicyDetails.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 CreateWaasPolicyDetails.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 CreateWaasPolicyDetails build()
-
copy
public CreateWaasPolicyDetails.Builder copy(CreateWaasPolicyDetails model)
-
-