Class PolicyCondition
- java.lang.Object
-
- software.amazon.awssdk.services.mailmanager.model.PolicyCondition
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PolicyCondition.Builder,PolicyCondition>
@Generated("software.amazon.awssdk:codegen") public final class PolicyCondition extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PolicyCondition.Builder,PolicyCondition>
The email traffic filtering conditions which are contained in a traffic policy resource.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePolicyCondition.Builderstatic classPolicyCondition.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IngressBooleanExpressionbooleanExpression()This represents a boolean type condition matching on the incoming mail.static PolicyCondition.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)static PolicyConditionfromBooleanExpression(Consumer<IngressBooleanExpression.Builder> booleanExpression)Create an instance of this class withbooleanExpression()initialized to the given value.static PolicyConditionfromBooleanExpression(IngressBooleanExpression booleanExpression)Create an instance of this class withbooleanExpression()initialized to the given value.static PolicyConditionfromIpExpression(Consumer<IngressIpv4Expression.Builder> ipExpression)Create an instance of this class withipExpression()initialized to the given value.static PolicyConditionfromIpExpression(IngressIpv4Expression ipExpression)Create an instance of this class withipExpression()initialized to the given value.static PolicyConditionfromStringExpression(Consumer<IngressStringExpression.Builder> stringExpression)Create an instance of this class withstringExpression()initialized to the given value.static PolicyConditionfromStringExpression(IngressStringExpression stringExpression)Create an instance of this class withstringExpression()initialized to the given value.static PolicyConditionfromTlsExpression(Consumer<IngressTlsProtocolExpression.Builder> tlsExpression)Create an instance of this class withtlsExpression()initialized to the given value.static PolicyConditionfromTlsExpression(IngressTlsProtocolExpression tlsExpression)Create an instance of this class withtlsExpression()initialized to the given value.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()IngressIpv4ExpressionipExpression()This represents an IP based condition matching on the incoming mail.List<SdkField<?>>sdkFields()static Class<? extends PolicyCondition.Builder>serializableBuilderClass()IngressStringExpressionstringExpression()This represents a string based condition matching on the incoming mail.IngressTlsProtocolExpressiontlsExpression()This represents a TLS based condition matching on the incoming mail.PolicyCondition.BuildertoBuilder()StringtoString()Returns a string representation of this object.PolicyCondition.Typetype()Retrieve an enum value representing which member of this object is populated.-
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
-
booleanExpression
public final IngressBooleanExpression booleanExpression()
This represents a boolean type condition matching on the incoming mail. It performs the boolean operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.
- Returns:
- This represents a boolean type condition matching on the incoming mail. It performs the boolean operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.
-
ipExpression
public final IngressIpv4Expression ipExpression()
This represents an IP based condition matching on the incoming mail. It performs the operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.
- Returns:
- This represents an IP based condition matching on the incoming mail. It performs the operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.
-
stringExpression
public final IngressStringExpression stringExpression()
This represents a string based condition matching on the incoming mail. It performs the string operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.
- Returns:
- This represents a string based condition matching on the incoming mail. It performs the string operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.
-
tlsExpression
public final IngressTlsProtocolExpression tlsExpression()
This represents a TLS based condition matching on the incoming mail. It performs the operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.
- Returns:
- This represents a TLS based condition matching on the incoming mail. It performs the operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.
-
toBuilder
public PolicyCondition.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PolicyCondition.Builder,PolicyCondition>
-
builder
public static PolicyCondition.Builder builder()
-
serializableBuilderClass
public static Class<? extends PolicyCondition.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.
-
fromBooleanExpression
public static PolicyCondition fromBooleanExpression(IngressBooleanExpression booleanExpression)
Create an instance of this class withbooleanExpression()initialized to the given value.This represents a boolean type condition matching on the incoming mail. It performs the boolean operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.
- Parameters:
booleanExpression- This represents a boolean type condition matching on the incoming mail. It performs the boolean operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.
-
fromBooleanExpression
public static PolicyCondition fromBooleanExpression(Consumer<IngressBooleanExpression.Builder> booleanExpression)
Create an instance of this class withbooleanExpression()initialized to the given value.This represents a boolean type condition matching on the incoming mail. It performs the boolean operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.
- Parameters:
booleanExpression- This represents a boolean type condition matching on the incoming mail. It performs the boolean operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.
-
fromIpExpression
public static PolicyCondition fromIpExpression(IngressIpv4Expression ipExpression)
Create an instance of this class withipExpression()initialized to the given value.This represents an IP based condition matching on the incoming mail. It performs the operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.
- Parameters:
ipExpression- This represents an IP based condition matching on the incoming mail. It performs the operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.
-
fromIpExpression
public static PolicyCondition fromIpExpression(Consumer<IngressIpv4Expression.Builder> ipExpression)
Create an instance of this class withipExpression()initialized to the given value.This represents an IP based condition matching on the incoming mail. It performs the operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.
- Parameters:
ipExpression- This represents an IP based condition matching on the incoming mail. It performs the operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.
-
fromStringExpression
public static PolicyCondition fromStringExpression(IngressStringExpression stringExpression)
Create an instance of this class withstringExpression()initialized to the given value.This represents a string based condition matching on the incoming mail. It performs the string operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.
- Parameters:
stringExpression- This represents a string based condition matching on the incoming mail. It performs the string operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.
-
fromStringExpression
public static PolicyCondition fromStringExpression(Consumer<IngressStringExpression.Builder> stringExpression)
Create an instance of this class withstringExpression()initialized to the given value.This represents a string based condition matching on the incoming mail. It performs the string operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.
- Parameters:
stringExpression- This represents a string based condition matching on the incoming mail. It performs the string operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.
-
fromTlsExpression
public static PolicyCondition fromTlsExpression(IngressTlsProtocolExpression tlsExpression)
Create an instance of this class withtlsExpression()initialized to the given value.This represents a TLS based condition matching on the incoming mail. It performs the operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.
- Parameters:
tlsExpression- This represents a TLS based condition matching on the incoming mail. It performs the operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.
-
fromTlsExpression
public static PolicyCondition fromTlsExpression(Consumer<IngressTlsProtocolExpression.Builder> tlsExpression)
Create an instance of this class withtlsExpression()initialized to the given value.This represents a TLS based condition matching on the incoming mail. It performs the operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.
- Parameters:
tlsExpression- This represents a TLS based condition matching on the incoming mail. It performs the operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.
-
type
public PolicyCondition.Type type()
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will bePolicyCondition.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will bePolicyCondition.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
-