public static class WaasPolicy.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
WaasPolicy.Builder |
additionalDomains(List<String> additionalDomains)
An array of additional domains for this web application.
|
WaasPolicy |
build() |
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.
|
WaasPolicy.Builder |
compartmentId(String compartmentId)
The OCID of the
WAAS policy’s compartment.
|
WaasPolicy.Builder |
copy(WaasPolicy model) |
WaasPolicy.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
WaasPolicy.Builder |
displayName(String displayName)
The user-friendly name of the WAAS policy.
|
WaasPolicy.Builder |
domain(String domain)
The web application domain that the WAAS policy protects.
|
WaasPolicy.Builder |
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.
|
WaasPolicy.Builder |
id(String id)
The OCID of the
WAAS policy.
|
WaasPolicy.Builder |
lifecycleState(LifecycleStates lifecycleState)
The current lifecycle state of the WAAS policy.
|
WaasPolicy.Builder |
originGroups(Map<String,OriginGroup> originGroups)
The map of origin groups and their keys used to associate origins to the
wafConfig . |
WaasPolicy.Builder |
origins(Map<String,Origin> origins)
A map of host servers (origins) and their keys for the web application.
|
WaasPolicy.Builder |
policyConfig(PolicyConfig policyConfig) |
WaasPolicy.Builder |
timeCreated(Date timeCreated)
The date and time the policy was created, expressed in RFC 3339 timestamp format.
|
WaasPolicy.Builder |
wafConfig(WafConfig wafConfig) |
public WaasPolicy.Builder id(String id)
The OCID of the WAAS policy.
id
- the value to setpublic WaasPolicy.Builder compartmentId(String compartmentId)
The OCID of the WAAS policy’s compartment.
compartmentId
- the value to setpublic 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.
displayName
- the value to setpublic WaasPolicy.Builder domain(String domain)
The web application domain that the WAAS policy protects.
domain
- the value to setpublic WaasPolicy.Builder additionalDomains(List<String> additionalDomains)
An array of additional domains for this web application.
additionalDomains
- the value to setpublic 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.
cname
- the value to setpublic WaasPolicy.Builder lifecycleState(LifecycleStates lifecycleState)
The current lifecycle state of the WAAS policy.
lifecycleState
- the value to setpublic WaasPolicy.Builder timeCreated(Date timeCreated)
The date and time the policy was created, expressed in RFC 3339 timestamp format.
timeCreated
- the value to setpublic 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
.
origins
- the value to setpublic 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.
originGroups
- the value to setpublic WaasPolicy.Builder policyConfig(PolicyConfig policyConfig)
public WaasPolicy.Builder wafConfig(WafConfig wafConfig)
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"}
freeformTags
- the value to setpublic 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"}}
definedTags
- the value to setpublic WaasPolicy build()
public WaasPolicy.Builder copy(WaasPolicy model)
Copyright © 2016–2024. All rights reserved.