@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TransitGatewayPolicyRule extends Object implements Serializable, Cloneable
Describes a rule associated with a transit gateway policy.
Constructor and Description |
---|
TransitGatewayPolicyRule() |
Modifier and Type | Method and Description |
---|---|
TransitGatewayPolicyRule |
clone() |
boolean |
equals(Object obj) |
String |
getDestinationCidrBlock()
The destination CIDR block for the transit gateway policy rule.
|
String |
getDestinationPortRange()
The port range for the transit gateway policy rule.
|
TransitGatewayPolicyRuleMetaData |
getMetaData()
The meta data tags used for the transit gateway policy rule.
|
String |
getProtocol()
The protocol used by the transit gateway policy rule.
|
String |
getSourceCidrBlock()
The source CIDR block for the transit gateway policy rule.
|
String |
getSourcePortRange()
The port range for the transit gateway policy rule.
|
int |
hashCode() |
void |
setDestinationCidrBlock(String destinationCidrBlock)
The destination CIDR block for the transit gateway policy rule.
|
void |
setDestinationPortRange(String destinationPortRange)
The port range for the transit gateway policy rule.
|
void |
setMetaData(TransitGatewayPolicyRuleMetaData metaData)
The meta data tags used for the transit gateway policy rule.
|
void |
setProtocol(String protocol)
The protocol used by the transit gateway policy rule.
|
void |
setSourceCidrBlock(String sourceCidrBlock)
The source CIDR block for the transit gateway policy rule.
|
void |
setSourcePortRange(String sourcePortRange)
The port range for the transit gateway policy rule.
|
String |
toString()
Returns a string representation of this object.
|
TransitGatewayPolicyRule |
withDestinationCidrBlock(String destinationCidrBlock)
The destination CIDR block for the transit gateway policy rule.
|
TransitGatewayPolicyRule |
withDestinationPortRange(String destinationPortRange)
The port range for the transit gateway policy rule.
|
TransitGatewayPolicyRule |
withMetaData(TransitGatewayPolicyRuleMetaData metaData)
The meta data tags used for the transit gateway policy rule.
|
TransitGatewayPolicyRule |
withProtocol(String protocol)
The protocol used by the transit gateway policy rule.
|
TransitGatewayPolicyRule |
withSourceCidrBlock(String sourceCidrBlock)
The source CIDR block for the transit gateway policy rule.
|
TransitGatewayPolicyRule |
withSourcePortRange(String sourcePortRange)
The port range for the transit gateway policy rule.
|
public void setSourceCidrBlock(String sourceCidrBlock)
The source CIDR block for the transit gateway policy rule.
sourceCidrBlock
- The source CIDR block for the transit gateway policy rule.public String getSourceCidrBlock()
The source CIDR block for the transit gateway policy rule.
public TransitGatewayPolicyRule withSourceCidrBlock(String sourceCidrBlock)
The source CIDR block for the transit gateway policy rule.
sourceCidrBlock
- The source CIDR block for the transit gateway policy rule.public void setSourcePortRange(String sourcePortRange)
The port range for the transit gateway policy rule. Currently this is set to * (all).
sourcePortRange
- The port range for the transit gateway policy rule. Currently this is set to * (all).public String getSourcePortRange()
The port range for the transit gateway policy rule. Currently this is set to * (all).
public TransitGatewayPolicyRule withSourcePortRange(String sourcePortRange)
The port range for the transit gateway policy rule. Currently this is set to * (all).
sourcePortRange
- The port range for the transit gateway policy rule. Currently this is set to * (all).public void setDestinationCidrBlock(String destinationCidrBlock)
The destination CIDR block for the transit gateway policy rule.
destinationCidrBlock
- The destination CIDR block for the transit gateway policy rule.public String getDestinationCidrBlock()
The destination CIDR block for the transit gateway policy rule.
public TransitGatewayPolicyRule withDestinationCidrBlock(String destinationCidrBlock)
The destination CIDR block for the transit gateway policy rule.
destinationCidrBlock
- The destination CIDR block for the transit gateway policy rule.public void setDestinationPortRange(String destinationPortRange)
The port range for the transit gateway policy rule. Currently this is set to * (all).
destinationPortRange
- The port range for the transit gateway policy rule. Currently this is set to * (all).public String getDestinationPortRange()
The port range for the transit gateway policy rule. Currently this is set to * (all).
public TransitGatewayPolicyRule withDestinationPortRange(String destinationPortRange)
The port range for the transit gateway policy rule. Currently this is set to * (all).
destinationPortRange
- The port range for the transit gateway policy rule. Currently this is set to * (all).public void setProtocol(String protocol)
The protocol used by the transit gateway policy rule.
protocol
- The protocol used by the transit gateway policy rule.public String getProtocol()
The protocol used by the transit gateway policy rule.
public TransitGatewayPolicyRule withProtocol(String protocol)
The protocol used by the transit gateway policy rule.
protocol
- The protocol used by the transit gateway policy rule.public void setMetaData(TransitGatewayPolicyRuleMetaData metaData)
The meta data tags used for the transit gateway policy rule.
metaData
- The meta data tags used for the transit gateway policy rule.public TransitGatewayPolicyRuleMetaData getMetaData()
The meta data tags used for the transit gateway policy rule.
public TransitGatewayPolicyRule withMetaData(TransitGatewayPolicyRuleMetaData metaData)
The meta data tags used for the transit gateway policy rule.
metaData
- The meta data tags used for the transit gateway policy rule.public String toString()
toString
in class Object
Object.toString()
public TransitGatewayPolicyRule clone()