Class TrafficPolicy
- java.lang.Object
-
- software.amazon.awssdk.services.mailmanager.model.TrafficPolicy
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<TrafficPolicy.Builder,TrafficPolicy>
@Generated("software.amazon.awssdk:codegen") public final class TrafficPolicy extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TrafficPolicy.Builder,TrafficPolicy>
The structure of a traffic policy resource which is a container for policy statements.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTrafficPolicy.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TrafficPolicy.Builderbuilder()AcceptActiondefaultAction()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 statementsStringdefaultActionAsString()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 statementsbooleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends TrafficPolicy.Builder>serializableBuilderClass()TrafficPolicy.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringtrafficPolicyId()The identifier of the traffic policy resource.StringtrafficPolicyName()A user-friendly name of the traffic policy resource.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
defaultAction
public final 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
If the service returns an enum value that is not available in the current SDK version,
defaultActionwill returnAcceptAction.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdefaultActionAsString().- Returns:
- 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
- See Also:
AcceptAction
-
defaultActionAsString
public final String defaultActionAsString()
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
If the service returns an enum value that is not available in the current SDK version,
defaultActionwill returnAcceptAction.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdefaultActionAsString().- Returns:
- 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
- See Also:
AcceptAction
-
trafficPolicyId
public final String trafficPolicyId()
The identifier of the traffic policy resource.
- Returns:
- The identifier of the traffic policy resource.
-
trafficPolicyName
public final String trafficPolicyName()
A user-friendly name of the traffic policy resource.
- Returns:
- A user-friendly name of the traffic policy resource.
-
toBuilder
public TrafficPolicy.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<TrafficPolicy.Builder,TrafficPolicy>
-
builder
public static TrafficPolicy.Builder builder()
-
serializableBuilderClass
public static Class<? extends TrafficPolicy.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-