@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateTrafficMirrorFilterRuleRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateTrafficMirrorFilterRuleRequest>
NOOP
Constructor and Description |
---|
CreateTrafficMirrorFilterRuleRequest() |
Modifier and Type | Method and Description |
---|---|
CreateTrafficMirrorFilterRuleRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getClientToken()
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
String |
getDescription()
The description of the Traffic Mirror rule.
|
String |
getDestinationCidrBlock()
The destination CIDR block to assign to the Traffic Mirror rule.
|
TrafficMirrorPortRangeRequest |
getDestinationPortRange()
The destination port range.
|
Request<CreateTrafficMirrorFilterRuleRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
Integer |
getProtocol()
The protocol, for example UDP, to assign to the Traffic Mirror rule.
|
String |
getRuleAction()
The action to take on the filtered traffic.
|
Integer |
getRuleNumber()
The number of the Traffic Mirror rule.
|
String |
getSourceCidrBlock()
The source CIDR block to assign to the Traffic Mirror rule.
|
TrafficMirrorPortRangeRequest |
getSourcePortRange()
The source port range.
|
List<TagSpecification> |
getTagSpecifications()
Traffic Mirroring tags specifications.
|
String |
getTrafficDirection()
The type of traffic.
|
String |
getTrafficMirrorFilterId()
The ID of the filter that this rule is associated with.
|
int |
hashCode() |
void |
setClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
void |
setDescription(String description)
The description of the Traffic Mirror rule.
|
void |
setDestinationCidrBlock(String destinationCidrBlock)
The destination CIDR block to assign to the Traffic Mirror rule.
|
void |
setDestinationPortRange(TrafficMirrorPortRangeRequest destinationPortRange)
The destination port range.
|
void |
setProtocol(Integer protocol)
The protocol, for example UDP, to assign to the Traffic Mirror rule.
|
void |
setRuleAction(String ruleAction)
The action to take on the filtered traffic.
|
void |
setRuleNumber(Integer ruleNumber)
The number of the Traffic Mirror rule.
|
void |
setSourceCidrBlock(String sourceCidrBlock)
The source CIDR block to assign to the Traffic Mirror rule.
|
void |
setSourcePortRange(TrafficMirrorPortRangeRequest sourcePortRange)
The source port range.
|
void |
setTagSpecifications(Collection<TagSpecification> tagSpecifications)
Traffic Mirroring tags specifications.
|
void |
setTrafficDirection(String trafficDirection)
The type of traffic.
|
void |
setTrafficMirrorFilterId(String trafficMirrorFilterId)
The ID of the filter that this rule is associated with.
|
String |
toString()
Returns a string representation of this object.
|
CreateTrafficMirrorFilterRuleRequest |
withClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
CreateTrafficMirrorFilterRuleRequest |
withDescription(String description)
The description of the Traffic Mirror rule.
|
CreateTrafficMirrorFilterRuleRequest |
withDestinationCidrBlock(String destinationCidrBlock)
The destination CIDR block to assign to the Traffic Mirror rule.
|
CreateTrafficMirrorFilterRuleRequest |
withDestinationPortRange(TrafficMirrorPortRangeRequest destinationPortRange)
The destination port range.
|
CreateTrafficMirrorFilterRuleRequest |
withProtocol(Integer protocol)
The protocol, for example UDP, to assign to the Traffic Mirror rule.
|
CreateTrafficMirrorFilterRuleRequest |
withRuleAction(String ruleAction)
The action to take on the filtered traffic.
|
CreateTrafficMirrorFilterRuleRequest |
withRuleAction(TrafficMirrorRuleAction ruleAction)
The action to take on the filtered traffic.
|
CreateTrafficMirrorFilterRuleRequest |
withRuleNumber(Integer ruleNumber)
The number of the Traffic Mirror rule.
|
CreateTrafficMirrorFilterRuleRequest |
withSourceCidrBlock(String sourceCidrBlock)
The source CIDR block to assign to the Traffic Mirror rule.
|
CreateTrafficMirrorFilterRuleRequest |
withSourcePortRange(TrafficMirrorPortRangeRequest sourcePortRange)
The source port range.
|
CreateTrafficMirrorFilterRuleRequest |
withTagSpecifications(Collection<TagSpecification> tagSpecifications)
Traffic Mirroring tags specifications.
|
CreateTrafficMirrorFilterRuleRequest |
withTagSpecifications(TagSpecification... tagSpecifications)
Traffic Mirroring tags specifications.
|
CreateTrafficMirrorFilterRuleRequest |
withTrafficDirection(String trafficDirection)
The type of traffic.
|
CreateTrafficMirrorFilterRuleRequest |
withTrafficDirection(TrafficDirection trafficDirection)
The type of traffic.
|
CreateTrafficMirrorFilterRuleRequest |
withTrafficMirrorFilterId(String trafficMirrorFilterId)
The ID of the filter that this rule is associated with.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public CreateTrafficMirrorFilterRuleRequest()
public void setTrafficMirrorFilterId(String trafficMirrorFilterId)
The ID of the filter that this rule is associated with.
trafficMirrorFilterId
- The ID of the filter that this rule is associated with.public String getTrafficMirrorFilterId()
The ID of the filter that this rule is associated with.
public CreateTrafficMirrorFilterRuleRequest withTrafficMirrorFilterId(String trafficMirrorFilterId)
The ID of the filter that this rule is associated with.
trafficMirrorFilterId
- The ID of the filter that this rule is associated with.public void setTrafficDirection(String trafficDirection)
The type of traffic.
trafficDirection
- The type of traffic.TrafficDirection
public String getTrafficDirection()
The type of traffic.
TrafficDirection
public CreateTrafficMirrorFilterRuleRequest withTrafficDirection(String trafficDirection)
The type of traffic.
trafficDirection
- The type of traffic.TrafficDirection
public CreateTrafficMirrorFilterRuleRequest withTrafficDirection(TrafficDirection trafficDirection)
The type of traffic.
trafficDirection
- The type of traffic.TrafficDirection
public void setRuleNumber(Integer ruleNumber)
The number of the Traffic Mirror rule. This number must be unique for each Traffic Mirror rule in a given direction. The rules are processed in ascending order by rule number.
ruleNumber
- The number of the Traffic Mirror rule. This number must be unique for each Traffic Mirror rule in a given
direction. The rules are processed in ascending order by rule number.public Integer getRuleNumber()
The number of the Traffic Mirror rule. This number must be unique for each Traffic Mirror rule in a given direction. The rules are processed in ascending order by rule number.
public CreateTrafficMirrorFilterRuleRequest withRuleNumber(Integer ruleNumber)
The number of the Traffic Mirror rule. This number must be unique for each Traffic Mirror rule in a given direction. The rules are processed in ascending order by rule number.
ruleNumber
- The number of the Traffic Mirror rule. This number must be unique for each Traffic Mirror rule in a given
direction. The rules are processed in ascending order by rule number.public void setRuleAction(String ruleAction)
The action to take on the filtered traffic.
ruleAction
- The action to take on the filtered traffic.TrafficMirrorRuleAction
public String getRuleAction()
The action to take on the filtered traffic.
TrafficMirrorRuleAction
public CreateTrafficMirrorFilterRuleRequest withRuleAction(String ruleAction)
The action to take on the filtered traffic.
ruleAction
- The action to take on the filtered traffic.TrafficMirrorRuleAction
public CreateTrafficMirrorFilterRuleRequest withRuleAction(TrafficMirrorRuleAction ruleAction)
The action to take on the filtered traffic.
ruleAction
- The action to take on the filtered traffic.TrafficMirrorRuleAction
public void setDestinationPortRange(TrafficMirrorPortRangeRequest destinationPortRange)
The destination port range.
destinationPortRange
- The destination port range.public TrafficMirrorPortRangeRequest getDestinationPortRange()
The destination port range.
public CreateTrafficMirrorFilterRuleRequest withDestinationPortRange(TrafficMirrorPortRangeRequest destinationPortRange)
The destination port range.
destinationPortRange
- The destination port range.public void setSourcePortRange(TrafficMirrorPortRangeRequest sourcePortRange)
The source port range.
sourcePortRange
- The source port range.public TrafficMirrorPortRangeRequest getSourcePortRange()
The source port range.
public CreateTrafficMirrorFilterRuleRequest withSourcePortRange(TrafficMirrorPortRangeRequest sourcePortRange)
The source port range.
sourcePortRange
- The source port range.public void setProtocol(Integer protocol)
The protocol, for example UDP, to assign to the Traffic Mirror rule.
For information about the protocol value, see Protocol Numbers on the Internet Assigned Numbers Authority (IANA) website.
protocol
- The protocol, for example UDP, to assign to the Traffic Mirror rule.
For information about the protocol value, see Protocol Numbers on the Internet Assigned Numbers Authority (IANA) website.
public Integer getProtocol()
The protocol, for example UDP, to assign to the Traffic Mirror rule.
For information about the protocol value, see Protocol Numbers on the Internet Assigned Numbers Authority (IANA) website.
For information about the protocol value, see Protocol Numbers on the Internet Assigned Numbers Authority (IANA) website.
public CreateTrafficMirrorFilterRuleRequest withProtocol(Integer protocol)
The protocol, for example UDP, to assign to the Traffic Mirror rule.
For information about the protocol value, see Protocol Numbers on the Internet Assigned Numbers Authority (IANA) website.
protocol
- The protocol, for example UDP, to assign to the Traffic Mirror rule.
For information about the protocol value, see Protocol Numbers on the Internet Assigned Numbers Authority (IANA) website.
public void setDestinationCidrBlock(String destinationCidrBlock)
The destination CIDR block to assign to the Traffic Mirror rule.
destinationCidrBlock
- The destination CIDR block to assign to the Traffic Mirror rule.public String getDestinationCidrBlock()
The destination CIDR block to assign to the Traffic Mirror rule.
public CreateTrafficMirrorFilterRuleRequest withDestinationCidrBlock(String destinationCidrBlock)
The destination CIDR block to assign to the Traffic Mirror rule.
destinationCidrBlock
- The destination CIDR block to assign to the Traffic Mirror rule.public void setSourceCidrBlock(String sourceCidrBlock)
The source CIDR block to assign to the Traffic Mirror rule.
sourceCidrBlock
- The source CIDR block to assign to the Traffic Mirror rule.public String getSourceCidrBlock()
The source CIDR block to assign to the Traffic Mirror rule.
public CreateTrafficMirrorFilterRuleRequest withSourceCidrBlock(String sourceCidrBlock)
The source CIDR block to assign to the Traffic Mirror rule.
sourceCidrBlock
- The source CIDR block to assign to the Traffic Mirror rule.public void setDescription(String description)
The description of the Traffic Mirror rule.
description
- The description of the Traffic Mirror rule.public String getDescription()
The description of the Traffic Mirror rule.
public CreateTrafficMirrorFilterRuleRequest withDescription(String description)
The description of the Traffic Mirror rule.
description
- The description of the Traffic Mirror rule.public void setClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.
clientToken
- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more
information, see How to
ensure idempotency.public String getClientToken()
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.
public CreateTrafficMirrorFilterRuleRequest withClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.
clientToken
- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more
information, see How to
ensure idempotency.public List<TagSpecification> getTagSpecifications()
Traffic Mirroring tags specifications.
public void setTagSpecifications(Collection<TagSpecification> tagSpecifications)
Traffic Mirroring tags specifications.
tagSpecifications
- Traffic Mirroring tags specifications.public CreateTrafficMirrorFilterRuleRequest withTagSpecifications(TagSpecification... tagSpecifications)
Traffic Mirroring tags specifications.
NOTE: This method appends the values to the existing list (if any). Use
setTagSpecifications(java.util.Collection)
or withTagSpecifications(java.util.Collection)
if
you want to override the existing values.
tagSpecifications
- Traffic Mirroring tags specifications.public CreateTrafficMirrorFilterRuleRequest withTagSpecifications(Collection<TagSpecification> tagSpecifications)
Traffic Mirroring tags specifications.
tagSpecifications
- Traffic Mirroring tags specifications.public Request<CreateTrafficMirrorFilterRuleRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<CreateTrafficMirrorFilterRuleRequest>
public String toString()
toString
in class Object
Object.toString()
public CreateTrafficMirrorFilterRuleRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()