Class HttpRedirect.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • compartmentId

        public HttpRedirect.Builder compartmentId​(String compartmentId)
        The OCID of the HTTP Redirect’s compartment.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • displayName

        public HttpRedirect.Builder displayName​(String displayName)
        The user-friendly name of the HTTP Redirect.

        The name can be changed and does not need to be unique.

        Parameters:
        displayName - the value to set
        Returns:
        this builder
      • domain

        public HttpRedirect.Builder domain​(String domain)
        The domain from which traffic will be redirected.
        Parameters:
        domain - the value to set
        Returns:
        this builder
      • target

        public HttpRedirect.Builder target​(HttpRedirectTarget target)
        The redirect target object including all the redirect data.
        Parameters:
        target - the value to set
        Returns:
        this builder
      • responseCode

        public HttpRedirect.Builder responseCode​(Integer responseCode)
        The response code returned for the redirect to the client.

        For more information, see RFC 7231.

        Parameters:
        responseCode - the value to set
        Returns:
        this builder
      • timeCreated

        public HttpRedirect.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
      • lifecycleState

        public HttpRedirect.Builder lifecycleState​(LifecycleStates lifecycleState)
        The current lifecycle state of the HTTP Redirect.
        Parameters:
        lifecycleState - the value to set
        Returns:
        this builder
      • freeformTags

        public HttpRedirect.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 HttpRedirect.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