Class AppCookieStickinessPolicy

    • Constructor Detail

      • AppCookieStickinessPolicy

        public AppCookieStickinessPolicy()
        Default constructor for AppCookieStickinessPolicy object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
      • AppCookieStickinessPolicy

        public AppCookieStickinessPolicy​(String policyName,
                                         String cookieName)
        Constructs a new AppCookieStickinessPolicy object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
        Parameters:
        policyName - The mnemonic name for the policy being created. The name must be unique within a set of policies for this load balancer.
        cookieName - The name of the application cookie used for stickiness.
    • Method Detail

      • setPolicyName

        public void setPolicyName​(String policyName)

        The mnemonic name for the policy being created. The name must be unique within a set of policies for this load balancer.

        Parameters:
        policyName - The mnemonic name for the policy being created. The name must be unique within a set of policies for this load balancer.
      • getPolicyName

        public String getPolicyName()

        The mnemonic name for the policy being created. The name must be unique within a set of policies for this load balancer.

        Returns:
        The mnemonic name for the policy being created. The name must be unique within a set of policies for this load balancer.
      • withPolicyName

        public AppCookieStickinessPolicy withPolicyName​(String policyName)

        The mnemonic name for the policy being created. The name must be unique within a set of policies for this load balancer.

        Parameters:
        policyName - The mnemonic name for the policy being created. The name must be unique within a set of policies for this load balancer.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setCookieName

        public void setCookieName​(String cookieName)

        The name of the application cookie used for stickiness.

        Parameters:
        cookieName - The name of the application cookie used for stickiness.
      • getCookieName

        public String getCookieName()

        The name of the application cookie used for stickiness.

        Returns:
        The name of the application cookie used for stickiness.
      • withCookieName

        public AppCookieStickinessPolicy withCookieName​(String cookieName)

        The name of the application cookie used for stickiness.

        Parameters:
        cookieName - The name of the application cookie used for stickiness.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object