Class PolicyDescription
- java.lang.Object
-
- com.amazonaws.services.elasticloadbalancing.model.PolicyDescription
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class PolicyDescription extends Object implements Serializable, Cloneable
Information about a policy.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PolicyDescription()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PolicyDescription
clone()
boolean
equals(Object obj)
List<PolicyAttributeDescription>
getPolicyAttributeDescriptions()
The policy attributes.String
getPolicyName()
The name of the policy.String
getPolicyTypeName()
The name of the policy type.int
hashCode()
void
setPolicyAttributeDescriptions(Collection<PolicyAttributeDescription> policyAttributeDescriptions)
The policy attributes.void
setPolicyName(String policyName)
The name of the policy.void
setPolicyTypeName(String policyTypeName)
The name of the policy type.String
toString()
Returns a string representation of this object; useful for testing and debugging.PolicyDescription
withPolicyAttributeDescriptions(PolicyAttributeDescription... policyAttributeDescriptions)
The policy attributes.PolicyDescription
withPolicyAttributeDescriptions(Collection<PolicyAttributeDescription> policyAttributeDescriptions)
The policy attributes.PolicyDescription
withPolicyName(String policyName)
The name of the policy.PolicyDescription
withPolicyTypeName(String policyTypeName)
The name of the policy type.
-
-
-
Method Detail
-
setPolicyName
public void setPolicyName(String policyName)
The name of the policy.
- Parameters:
policyName
- The name of the policy.
-
getPolicyName
public String getPolicyName()
The name of the policy.
- Returns:
- The name of the policy.
-
withPolicyName
public PolicyDescription withPolicyName(String policyName)
The name of the policy.
- Parameters:
policyName
- The name of the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPolicyTypeName
public void setPolicyTypeName(String policyTypeName)
The name of the policy type.
- Parameters:
policyTypeName
- The name of the policy type.
-
getPolicyTypeName
public String getPolicyTypeName()
The name of the policy type.
- Returns:
- The name of the policy type.
-
withPolicyTypeName
public PolicyDescription withPolicyTypeName(String policyTypeName)
The name of the policy type.
- Parameters:
policyTypeName
- The name of the policy type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getPolicyAttributeDescriptions
public List<PolicyAttributeDescription> getPolicyAttributeDescriptions()
The policy attributes.
- Returns:
- The policy attributes.
-
setPolicyAttributeDescriptions
public void setPolicyAttributeDescriptions(Collection<PolicyAttributeDescription> policyAttributeDescriptions)
The policy attributes.
- Parameters:
policyAttributeDescriptions
- The policy attributes.
-
withPolicyAttributeDescriptions
public PolicyDescription withPolicyAttributeDescriptions(PolicyAttributeDescription... policyAttributeDescriptions)
The policy attributes.
NOTE: This method appends the values to the existing list (if any). Use
setPolicyAttributeDescriptions(java.util.Collection)
orwithPolicyAttributeDescriptions(java.util.Collection)
if you want to override the existing values.- Parameters:
policyAttributeDescriptions
- The policy attributes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withPolicyAttributeDescriptions
public PolicyDescription withPolicyAttributeDescriptions(Collection<PolicyAttributeDescription> policyAttributeDescriptions)
The policy attributes.
- Parameters:
policyAttributeDescriptions
- The policy attributes.- 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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public PolicyDescription clone()
-
-