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 PolicyDescriptionclone()booleanequals(Object obj)List<PolicyAttributeDescription>getPolicyAttributeDescriptions()The policy attributes.StringgetPolicyName()The name of the policy.StringgetPolicyTypeName()The name of the policy type.inthashCode()voidsetPolicyAttributeDescriptions(Collection<PolicyAttributeDescription> policyAttributeDescriptions)The policy attributes.voidsetPolicyName(String policyName)The name of the policy.voidsetPolicyTypeName(String policyTypeName)The name of the policy type.StringtoString()Returns a string representation of this object; useful for testing and debugging.PolicyDescriptionwithPolicyAttributeDescriptions(PolicyAttributeDescription... policyAttributeDescriptions)The policy attributes.PolicyDescriptionwithPolicyAttributeDescriptions(Collection<PolicyAttributeDescription> policyAttributeDescriptions)The policy attributes.PolicyDescriptionwithPolicyName(String policyName)The name of the policy.PolicyDescriptionwithPolicyTypeName(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public PolicyDescription clone()
-
-