Class TransitGatewayPolicyRule
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.TransitGatewayPolicyRule
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<TransitGatewayPolicyRule.Builder,TransitGatewayPolicyRule>
@Generated("software.amazon.awssdk:codegen") public final class TransitGatewayPolicyRule extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TransitGatewayPolicyRule.Builder,TransitGatewayPolicyRule>
Describes a rule associated with a transit gateway policy.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTransitGatewayPolicyRule.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TransitGatewayPolicyRule.Builderbuilder()StringdestinationCidrBlock()The destination CIDR block for the transit gateway policy rule.StringdestinationPortRange()The port range for the transit gateway policy rule.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()TransitGatewayPolicyRuleMetaDatametaData()The meta data tags used for the transit gateway policy rule.Stringprotocol()The protocol used by the transit gateway policy rule.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends TransitGatewayPolicyRule.Builder>serializableBuilderClass()StringsourceCidrBlock()The source CIDR block for the transit gateway policy rule.StringsourcePortRange()The port range for the transit gateway policy rule.TransitGatewayPolicyRule.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
sourceCidrBlock
public final String sourceCidrBlock()
The source CIDR block for the transit gateway policy rule.
- Returns:
- The source CIDR block for the transit gateway policy rule.
-
sourcePortRange
public final String sourcePortRange()
The port range for the transit gateway policy rule. Currently this is set to * (all).
- Returns:
- The port range for the transit gateway policy rule. Currently this is set to * (all).
-
destinationCidrBlock
public final String destinationCidrBlock()
The destination CIDR block for the transit gateway policy rule.
- Returns:
- The destination CIDR block for the transit gateway policy rule.
-
destinationPortRange
public final String destinationPortRange()
The port range for the transit gateway policy rule. Currently this is set to * (all).
- Returns:
- The port range for the transit gateway policy rule. Currently this is set to * (all).
-
protocol
public final String protocol()
The protocol used by the transit gateway policy rule.
- Returns:
- The protocol used by the transit gateway policy rule.
-
metaData
public final TransitGatewayPolicyRuleMetaData metaData()
The meta data tags used for the transit gateway policy rule.
- Returns:
- The meta data tags used for the transit gateway policy rule.
-
toBuilder
public TransitGatewayPolicyRule.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<TransitGatewayPolicyRule.Builder,TransitGatewayPolicyRule>
-
builder
public static TransitGatewayPolicyRule.Builder builder()
-
serializableBuilderClass
public static Class<? extends TransitGatewayPolicyRule.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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-