@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetTrafficPolicyResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
GetTrafficPolicyResult() |
Modifier and Type | Method and Description |
---|---|
GetTrafficPolicyResult |
clone() |
boolean |
equals(Object obj) |
Date |
getCreatedTimestamp()
The timestamp of when the traffic policy was created.
|
String |
getDefaultAction()
The default action of the traffic policy.
|
Date |
getLastUpdatedTimestamp()
The timestamp of when the traffic policy was last updated.
|
Integer |
getMaxMessageSizeBytes()
The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be
blocked.
|
List<PolicyStatement> |
getPolicyStatements()
The list of conditions which are in the traffic policy resource.
|
String |
getTrafficPolicyArn()
The Amazon Resource Name (ARN) of the traffic policy resource.
|
String |
getTrafficPolicyId()
The identifier of the traffic policy resource.
|
String |
getTrafficPolicyName()
A user-friendly name for the traffic policy resource.
|
int |
hashCode() |
void |
setCreatedTimestamp(Date createdTimestamp)
The timestamp of when the traffic policy was created.
|
void |
setDefaultAction(String defaultAction)
The default action of the traffic policy.
|
void |
setLastUpdatedTimestamp(Date lastUpdatedTimestamp)
The timestamp of when the traffic policy was last updated.
|
void |
setMaxMessageSizeBytes(Integer maxMessageSizeBytes)
The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be
blocked.
|
void |
setPolicyStatements(Collection<PolicyStatement> policyStatements)
The list of conditions which are in the traffic policy resource.
|
void |
setTrafficPolicyArn(String trafficPolicyArn)
The Amazon Resource Name (ARN) of the traffic policy resource.
|
void |
setTrafficPolicyId(String trafficPolicyId)
The identifier of the traffic policy resource.
|
void |
setTrafficPolicyName(String trafficPolicyName)
A user-friendly name for the traffic policy resource.
|
String |
toString()
Returns a string representation of this object.
|
GetTrafficPolicyResult |
withCreatedTimestamp(Date createdTimestamp)
The timestamp of when the traffic policy was created.
|
GetTrafficPolicyResult |
withDefaultAction(AcceptAction defaultAction)
The default action of the traffic policy.
|
GetTrafficPolicyResult |
withDefaultAction(String defaultAction)
The default action of the traffic policy.
|
GetTrafficPolicyResult |
withLastUpdatedTimestamp(Date lastUpdatedTimestamp)
The timestamp of when the traffic policy was last updated.
|
GetTrafficPolicyResult |
withMaxMessageSizeBytes(Integer maxMessageSizeBytes)
The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be
blocked.
|
GetTrafficPolicyResult |
withPolicyStatements(Collection<PolicyStatement> policyStatements)
The list of conditions which are in the traffic policy resource.
|
GetTrafficPolicyResult |
withPolicyStatements(PolicyStatement... policyStatements)
The list of conditions which are in the traffic policy resource.
|
GetTrafficPolicyResult |
withTrafficPolicyArn(String trafficPolicyArn)
The Amazon Resource Name (ARN) of the traffic policy resource.
|
GetTrafficPolicyResult |
withTrafficPolicyId(String trafficPolicyId)
The identifier of the traffic policy resource.
|
GetTrafficPolicyResult |
withTrafficPolicyName(String trafficPolicyName)
A user-friendly name for the traffic policy resource.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setCreatedTimestamp(Date createdTimestamp)
The timestamp of when the traffic policy was created.
createdTimestamp
- The timestamp of when the traffic policy was created.public Date getCreatedTimestamp()
The timestamp of when the traffic policy was created.
public GetTrafficPolicyResult withCreatedTimestamp(Date createdTimestamp)
The timestamp of when the traffic policy was created.
createdTimestamp
- The timestamp of when the traffic policy was created.public void setDefaultAction(String defaultAction)
The default action of the traffic policy.
defaultAction
- The default action of the traffic policy.AcceptAction
public String getDefaultAction()
The default action of the traffic policy.
AcceptAction
public GetTrafficPolicyResult withDefaultAction(String defaultAction)
The default action of the traffic policy.
defaultAction
- The default action of the traffic policy.AcceptAction
public GetTrafficPolicyResult withDefaultAction(AcceptAction defaultAction)
The default action of the traffic policy.
defaultAction
- The default action of the traffic policy.AcceptAction
public void setLastUpdatedTimestamp(Date lastUpdatedTimestamp)
The timestamp of when the traffic policy was last updated.
lastUpdatedTimestamp
- The timestamp of when the traffic policy was last updated.public Date getLastUpdatedTimestamp()
The timestamp of when the traffic policy was last updated.
public GetTrafficPolicyResult withLastUpdatedTimestamp(Date lastUpdatedTimestamp)
The timestamp of when the traffic policy was last updated.
lastUpdatedTimestamp
- The timestamp of when the traffic policy was last updated.public void setMaxMessageSizeBytes(Integer maxMessageSizeBytes)
The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked.
maxMessageSizeBytes
- The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will
be blocked.public Integer getMaxMessageSizeBytes()
The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked.
public GetTrafficPolicyResult withMaxMessageSizeBytes(Integer maxMessageSizeBytes)
The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked.
maxMessageSizeBytes
- The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will
be blocked.public List<PolicyStatement> getPolicyStatements()
The list of conditions which are in the traffic policy resource.
public void setPolicyStatements(Collection<PolicyStatement> policyStatements)
The list of conditions which are in the traffic policy resource.
policyStatements
- The list of conditions which are in the traffic policy resource.public GetTrafficPolicyResult withPolicyStatements(PolicyStatement... policyStatements)
The list of conditions which are in the traffic policy resource.
NOTE: This method appends the values to the existing list (if any). Use
setPolicyStatements(java.util.Collection)
or withPolicyStatements(java.util.Collection)
if you
want to override the existing values.
policyStatements
- The list of conditions which are in the traffic policy resource.public GetTrafficPolicyResult withPolicyStatements(Collection<PolicyStatement> policyStatements)
The list of conditions which are in the traffic policy resource.
policyStatements
- The list of conditions which are in the traffic policy resource.public void setTrafficPolicyArn(String trafficPolicyArn)
The Amazon Resource Name (ARN) of the traffic policy resource.
trafficPolicyArn
- The Amazon Resource Name (ARN) of the traffic policy resource.public String getTrafficPolicyArn()
The Amazon Resource Name (ARN) of the traffic policy resource.
public GetTrafficPolicyResult withTrafficPolicyArn(String trafficPolicyArn)
The Amazon Resource Name (ARN) of the traffic policy resource.
trafficPolicyArn
- The Amazon Resource Name (ARN) of the traffic policy resource.public void setTrafficPolicyId(String trafficPolicyId)
The identifier of the traffic policy resource.
trafficPolicyId
- The identifier of the traffic policy resource.public String getTrafficPolicyId()
The identifier of the traffic policy resource.
public GetTrafficPolicyResult withTrafficPolicyId(String trafficPolicyId)
The identifier of the traffic policy resource.
trafficPolicyId
- The identifier of the traffic policy resource.public void setTrafficPolicyName(String trafficPolicyName)
A user-friendly name for the traffic policy resource.
trafficPolicyName
- A user-friendly name for the traffic policy resource.public String getTrafficPolicyName()
A user-friendly name for the traffic policy resource.
public GetTrafficPolicyResult withTrafficPolicyName(String trafficPolicyName)
A user-friendly name for the traffic policy resource.
trafficPolicyName
- A user-friendly name for the traffic policy resource.public String toString()
toString
in class Object
Object.toString()
public GetTrafficPolicyResult clone()