@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CoreNetworkPolicy extends Object implements Serializable, Cloneable, StructuredPojo
Describes a core network policy. You can have only one LIVE Core Policy.
| Constructor and Description |
|---|
CoreNetworkPolicy() |
| Modifier and Type | Method and Description |
|---|---|
CoreNetworkPolicy |
clone() |
boolean |
equals(Object obj) |
String |
getAlias()
Whether a core network policy is the current LIVE policy or the most recently submitted policy.
|
String |
getChangeSetState()
The state of a core network policy.
|
String |
getCoreNetworkId()
The ID of a core network.
|
Date |
getCreatedAt()
The timestamp when a core network policy was created.
|
String |
getDescription()
The description of a core network policy.
|
String |
getPolicyDocument()
Describes a core network policy.
|
List<CoreNetworkPolicyError> |
getPolicyErrors()
Describes any errors in a core network policy.
|
Integer |
getPolicyVersionId()
The ID of the policy version.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setAlias(String alias)
Whether a core network policy is the current LIVE policy or the most recently submitted policy.
|
void |
setChangeSetState(String changeSetState)
The state of a core network policy.
|
void |
setCoreNetworkId(String coreNetworkId)
The ID of a core network.
|
void |
setCreatedAt(Date createdAt)
The timestamp when a core network policy was created.
|
void |
setDescription(String description)
The description of a core network policy.
|
void |
setPolicyDocument(String policyDocument)
Describes a core network policy.
|
void |
setPolicyErrors(Collection<CoreNetworkPolicyError> policyErrors)
Describes any errors in a core network policy.
|
void |
setPolicyVersionId(Integer policyVersionId)
The ID of the policy version.
|
String |
toString()
Returns a string representation of this object.
|
CoreNetworkPolicy |
withAlias(CoreNetworkPolicyAlias alias)
Whether a core network policy is the current LIVE policy or the most recently submitted policy.
|
CoreNetworkPolicy |
withAlias(String alias)
Whether a core network policy is the current LIVE policy or the most recently submitted policy.
|
CoreNetworkPolicy |
withChangeSetState(ChangeSetState changeSetState)
The state of a core network policy.
|
CoreNetworkPolicy |
withChangeSetState(String changeSetState)
The state of a core network policy.
|
CoreNetworkPolicy |
withCoreNetworkId(String coreNetworkId)
The ID of a core network.
|
CoreNetworkPolicy |
withCreatedAt(Date createdAt)
The timestamp when a core network policy was created.
|
CoreNetworkPolicy |
withDescription(String description)
The description of a core network policy.
|
CoreNetworkPolicy |
withPolicyDocument(String policyDocument)
Describes a core network policy.
|
CoreNetworkPolicy |
withPolicyErrors(Collection<CoreNetworkPolicyError> policyErrors)
Describes any errors in a core network policy.
|
CoreNetworkPolicy |
withPolicyErrors(CoreNetworkPolicyError... policyErrors)
Describes any errors in a core network policy.
|
CoreNetworkPolicy |
withPolicyVersionId(Integer policyVersionId)
The ID of the policy version.
|
public void setCoreNetworkId(String coreNetworkId)
The ID of a core network.
coreNetworkId - The ID of a core network.public String getCoreNetworkId()
The ID of a core network.
public CoreNetworkPolicy withCoreNetworkId(String coreNetworkId)
The ID of a core network.
coreNetworkId - The ID of a core network.public void setPolicyVersionId(Integer policyVersionId)
The ID of the policy version.
policyVersionId - The ID of the policy version.public Integer getPolicyVersionId()
The ID of the policy version.
public CoreNetworkPolicy withPolicyVersionId(Integer policyVersionId)
The ID of the policy version.
policyVersionId - The ID of the policy version.public void setAlias(String alias)
Whether a core network policy is the current LIVE policy or the most recently submitted policy.
alias - Whether a core network policy is the current LIVE policy or the most recently submitted policy.CoreNetworkPolicyAliaspublic String getAlias()
Whether a core network policy is the current LIVE policy or the most recently submitted policy.
CoreNetworkPolicyAliaspublic CoreNetworkPolicy withAlias(String alias)
Whether a core network policy is the current LIVE policy or the most recently submitted policy.
alias - Whether a core network policy is the current LIVE policy or the most recently submitted policy.CoreNetworkPolicyAliaspublic CoreNetworkPolicy withAlias(CoreNetworkPolicyAlias alias)
Whether a core network policy is the current LIVE policy or the most recently submitted policy.
alias - Whether a core network policy is the current LIVE policy or the most recently submitted policy.CoreNetworkPolicyAliaspublic void setDescription(String description)
The description of a core network policy.
description - The description of a core network policy.public String getDescription()
The description of a core network policy.
public CoreNetworkPolicy withDescription(String description)
The description of a core network policy.
description - The description of a core network policy.public void setCreatedAt(Date createdAt)
The timestamp when a core network policy was created.
createdAt - The timestamp when a core network policy was created.public Date getCreatedAt()
The timestamp when a core network policy was created.
public CoreNetworkPolicy withCreatedAt(Date createdAt)
The timestamp when a core network policy was created.
createdAt - The timestamp when a core network policy was created.public void setChangeSetState(String changeSetState)
The state of a core network policy.
changeSetState - The state of a core network policy.ChangeSetStatepublic String getChangeSetState()
The state of a core network policy.
ChangeSetStatepublic CoreNetworkPolicy withChangeSetState(String changeSetState)
The state of a core network policy.
changeSetState - The state of a core network policy.ChangeSetStatepublic CoreNetworkPolicy withChangeSetState(ChangeSetState changeSetState)
The state of a core network policy.
changeSetState - The state of a core network policy.ChangeSetStatepublic List<CoreNetworkPolicyError> getPolicyErrors()
Describes any errors in a core network policy.
public void setPolicyErrors(Collection<CoreNetworkPolicyError> policyErrors)
Describes any errors in a core network policy.
policyErrors - Describes any errors in a core network policy.public CoreNetworkPolicy withPolicyErrors(CoreNetworkPolicyError... policyErrors)
Describes any errors in a core network policy.
NOTE: This method appends the values to the existing list (if any). Use
setPolicyErrors(java.util.Collection) or withPolicyErrors(java.util.Collection) if you want to
override the existing values.
policyErrors - Describes any errors in a core network policy.public CoreNetworkPolicy withPolicyErrors(Collection<CoreNetworkPolicyError> policyErrors)
Describes any errors in a core network policy.
policyErrors - Describes any errors in a core network policy.public void setPolicyDocument(String policyDocument)
Describes a core network policy.
This field's value must be valid JSON according to RFC 7159, including the opening and closing braces. For example: '{"key": "value"}'.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
policyDocument - Describes a core network policy.public String getPolicyDocument()
Describes a core network policy.
This field's value will be valid JSON according to RFC 7159, including the opening and closing braces. For example: '{"key": "value"}'.
public CoreNetworkPolicy withPolicyDocument(String policyDocument)
Describes a core network policy.
This field's value must be valid JSON according to RFC 7159, including the opening and closing braces. For example: '{"key": "value"}'.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
policyDocument - Describes a core network policy.public String toString()
toString in class ObjectObject.toString()public CoreNetworkPolicy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.