@Generated(value="software.amazon.awssdk:codegen") public final class CreateTrafficMirrorFilterRuleRequest extends Ec2Request implements ToCopyableBuilder<CreateTrafficMirrorFilterRuleRequest.Builder,CreateTrafficMirrorFilterRuleRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateTrafficMirrorFilterRuleRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CreateTrafficMirrorFilterRuleRequest.Builder |
builder() |
String |
clientToken()
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
String |
description()
The description of the Traffic Mirror rule.
|
String |
destinationCidrBlock()
The destination CIDR block to assign to the Traffic Mirror rule.
|
TrafficMirrorPortRangeRequest |
destinationPortRange()
The destination port range.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Integer |
protocol()
The protocol, for example UDP, to assign to the Traffic Mirror rule.
|
TrafficMirrorRuleAction |
ruleAction()
The action to take (
accept | reject) on the filtered traffic. |
String |
ruleActionAsString()
The action to take (
accept | reject) on the filtered traffic. |
Integer |
ruleNumber()
The number of the Traffic Mirror rule.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateTrafficMirrorFilterRuleRequest.Builder> |
serializableBuilderClass() |
String |
sourceCidrBlock()
The source CIDR block to assign to the Traffic Mirror rule.
|
TrafficMirrorPortRangeRequest |
sourcePortRange()
The source port range.
|
CreateTrafficMirrorFilterRuleRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
TrafficDirection |
trafficDirection()
The type of traffic (
ingress | egress). |
String |
trafficDirectionAsString()
The type of traffic (
ingress | egress). |
String |
trafficMirrorFilterId()
The ID of the filter that this rule is associated with.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String trafficMirrorFilterId()
The ID of the filter that this rule is associated with.
public TrafficDirection trafficDirection()
The type of traffic (ingress | egress).
If the service returns an enum value that is not available in the current SDK version, trafficDirection
will return TrafficDirection.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from trafficDirectionAsString().
ingress | egress).TrafficDirectionpublic String trafficDirectionAsString()
The type of traffic (ingress | egress).
If the service returns an enum value that is not available in the current SDK version, trafficDirection
will return TrafficDirection.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from trafficDirectionAsString().
ingress | egress).TrafficDirectionpublic 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.
public TrafficMirrorRuleAction ruleAction()
The action to take (accept | reject) on the filtered traffic.
If the service returns an enum value that is not available in the current SDK version, ruleAction will
return TrafficMirrorRuleAction.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from ruleActionAsString().
accept | reject) on the filtered traffic.TrafficMirrorRuleActionpublic String ruleActionAsString()
The action to take (accept | reject) on the filtered traffic.
If the service returns an enum value that is not available in the current SDK version, ruleAction will
return TrafficMirrorRuleAction.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from ruleActionAsString().
accept | reject) on the filtered traffic.TrafficMirrorRuleActionpublic TrafficMirrorPortRangeRequest destinationPortRange()
The destination port range.
public TrafficMirrorPortRangeRequest sourcePortRange()
The source port range.
public 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.
For information about the protocol value, see Protocol Numbers on the Internet Assigned Numbers Authority (IANA) website.
public String destinationCidrBlock()
The destination CIDR block to assign to the Traffic Mirror rule.
public String sourceCidrBlock()
The source CIDR block to assign to the Traffic Mirror rule.
public String description()
The description of the Traffic Mirror rule.
public String clientToken()
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.
public CreateTrafficMirrorFilterRuleRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateTrafficMirrorFilterRuleRequest.Builder,CreateTrafficMirrorFilterRuleRequest>toBuilder in class Ec2Requestpublic static CreateTrafficMirrorFilterRuleRequest.Builder builder()
public static Class<? extends CreateTrafficMirrorFilterRuleRequest.Builder> serializableBuilderClass()
public int hashCode()
hashCode in class AwsRequestpublic boolean equals(Object obj)
equals in class AwsRequestpublic boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2020. All rights reserved.