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 interface
TransitGatewayPolicyRule.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TransitGatewayPolicyRule.Builder
builder()
String
destinationCidrBlock()
The destination CIDR block for the transit gateway policy rule.String
destinationPortRange()
The port range for the transit gateway policy rule.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
TransitGatewayPolicyRuleMetaData
metaData()
The meta data tags used for the transit gateway policy rule.String
protocol()
The protocol used by the transit gateway policy rule.List<SdkField<?>>
sdkFields()
static Class<? extends TransitGatewayPolicyRule.Builder>
serializableBuilderClass()
String
sourceCidrBlock()
The source CIDR block for the transit gateway policy rule.String
sourcePortRange()
The port range for the transit gateway policy rule.TransitGatewayPolicyRule.Builder
toBuilder()
String
toString()
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:
toBuilder
in 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:
equalsBySdkFields
in 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.
-
-