Class WaasPolicy.Builder

  • Enclosing class:
    WaasPolicy

    public static class WaasPolicy.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • 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
      • 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