@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TrafficPolicy extends Object implements Serializable, Cloneable, StructuredPojo
The structure of a traffic policy resource which is a container for policy statements.
Constructor and Description |
---|
TrafficPolicy() |
Modifier and Type | Method and Description |
---|---|
TrafficPolicy |
clone() |
boolean |
equals(Object obj) |
String |
getDefaultAction()
Default action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of (or not
addressed by) the conditions of your policy statements
|
String |
getTrafficPolicyId()
The identifier of the traffic policy resource.
|
String |
getTrafficPolicyName()
A user-friendly name of the traffic policy resource.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDefaultAction(String defaultAction)
Default action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of (or not
addressed by) the conditions of your policy statements
|
void |
setTrafficPolicyId(String trafficPolicyId)
The identifier of the traffic policy resource.
|
void |
setTrafficPolicyName(String trafficPolicyName)
A user-friendly name of the traffic policy resource.
|
String |
toString()
Returns a string representation of this object.
|
TrafficPolicy |
withDefaultAction(AcceptAction defaultAction)
Default action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of (or not
addressed by) the conditions of your policy statements
|
TrafficPolicy |
withDefaultAction(String defaultAction)
Default action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of (or not
addressed by) the conditions of your policy statements
|
TrafficPolicy |
withTrafficPolicyId(String trafficPolicyId)
The identifier of the traffic policy resource.
|
TrafficPolicy |
withTrafficPolicyName(String trafficPolicyName)
A user-friendly name of the traffic policy resource.
|
public void setDefaultAction(String defaultAction)
Default action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of (or not addressed by) the conditions of your policy statements
defaultAction
- Default action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of
(or not addressed by) the conditions of your policy statementsAcceptAction
public String getDefaultAction()
Default action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of (or not addressed by) the conditions of your policy statements
AcceptAction
public TrafficPolicy withDefaultAction(String defaultAction)
Default action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of (or not addressed by) the conditions of your policy statements
defaultAction
- Default action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of
(or not addressed by) the conditions of your policy statementsAcceptAction
public TrafficPolicy withDefaultAction(AcceptAction defaultAction)
Default action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of (or not addressed by) the conditions of your policy statements
defaultAction
- Default action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of
(or not addressed by) the conditions of your policy statementsAcceptAction
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 TrafficPolicy 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 of the traffic policy resource.
trafficPolicyName
- A user-friendly name of the traffic policy resource.public String getTrafficPolicyName()
A user-friendly name of the traffic policy resource.
public TrafficPolicy withTrafficPolicyName(String trafficPolicyName)
A user-friendly name of the traffic policy resource.
trafficPolicyName
- A user-friendly name of the traffic policy resource.public String toString()
toString
in class Object
Object.toString()
public TrafficPolicy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.