@Generated(value="software.amazon.awssdk:codegen") public final class ModifyTrafficMirrorFilterRuleRequest extends Ec2Request implements ToCopyableBuilder<ModifyTrafficMirrorFilterRuleRequest.Builder,ModifyTrafficMirrorFilterRuleRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
ModifyTrafficMirrorFilterRuleRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ModifyTrafficMirrorFilterRuleRequest.Builder |
builder() |
String |
description()
The description to assign to the Traffic Mirror rule.
|
String |
destinationCidrBlock()
The destination CIDR block to assign to the Traffic Mirror rule.
|
TrafficMirrorPortRangeRequest |
destinationPortRange()
The destination ports that are associated with the Traffic Mirror rule.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasRemoveFields()
Returns true if the RemoveFields property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
Integer |
protocol()
The protocol, for example TCP, to assign to the Traffic Mirror rule.
|
List<TrafficMirrorFilterRuleField> |
removeFields()
The properties that you want to remove from the Traffic Mirror filter rule.
|
List<String> |
removeFieldsAsStrings()
The properties that you want to remove from the Traffic Mirror filter rule.
|
TrafficMirrorRuleAction |
ruleAction()
The action to assign to the rule.
|
String |
ruleActionAsString()
The action to assign to the rule.
|
Integer |
ruleNumber()
The number of the Traffic Mirror rule.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ModifyTrafficMirrorFilterRuleRequest.Builder> |
serializableBuilderClass() |
String |
sourceCidrBlock()
The source CIDR block to assign to the Traffic Mirror rule.
|
TrafficMirrorPortRangeRequest |
sourcePortRange()
The port range to assign to the Traffic Mirror rule.
|
ModifyTrafficMirrorFilterRuleRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
TrafficDirection |
trafficDirection()
The type of traffic (
ingress | egress) to assign to the rule. |
String |
trafficDirectionAsString()
The type of traffic (
ingress | egress) to assign to the rule. |
String |
trafficMirrorFilterRuleId()
The ID of the Traffic Mirror rule.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String trafficMirrorFilterRuleId()
The ID of the Traffic Mirror rule.
public TrafficDirection trafficDirection()
The type of traffic (ingress | egress) to assign to the rule.
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) to assign to the rule.TrafficDirectionpublic String trafficDirectionAsString()
The type of traffic (ingress | egress) to assign to the rule.
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) to assign to the rule.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 assign to the rule.
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().
TrafficMirrorRuleActionpublic String ruleActionAsString()
The action to assign to the rule.
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().
TrafficMirrorRuleActionpublic TrafficMirrorPortRangeRequest destinationPortRange()
The destination ports that are associated with the Traffic Mirror rule.
public TrafficMirrorPortRangeRequest sourcePortRange()
The port range to assign to the Traffic Mirror rule.
public Integer protocol()
The protocol, for example TCP, to assign to the Traffic Mirror rule.
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 to assign to the Traffic Mirror rule.
public List<TrafficMirrorFilterRuleField> removeFields()
The properties that you want to remove from the Traffic Mirror filter rule.
When you remove a property from a Traffic Mirror filter rule, the property is set to the default.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasRemoveFields() to see if a value was sent in this field.
When you remove a property from a Traffic Mirror filter rule, the property is set to the default.
public boolean hasRemoveFields()
public List<String> removeFieldsAsStrings()
The properties that you want to remove from the Traffic Mirror filter rule.
When you remove a property from a Traffic Mirror filter rule, the property is set to the default.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasRemoveFields() to see if a value was sent in this field.
When you remove a property from a Traffic Mirror filter rule, the property is set to the default.
public ModifyTrafficMirrorFilterRuleRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ModifyTrafficMirrorFilterRuleRequest.Builder,ModifyTrafficMirrorFilterRuleRequest>toBuilder in class Ec2Requestpublic static ModifyTrafficMirrorFilterRuleRequest.Builder builder()
public static Class<? extends ModifyTrafficMirrorFilterRuleRequest.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 © 2019. All rights reserved.