@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()
For responses, this returns true if the service returned a value for the RemoveFields property.
|
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 final String trafficMirrorFilterRuleId()
The ID of the Traffic Mirror rule.
public final 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 final 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 final 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 final 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 final 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 final TrafficMirrorPortRangeRequest destinationPortRange()
The destination ports that are associated with the Traffic Mirror rule.
public final TrafficMirrorPortRangeRequest sourcePortRange()
The port range to assign to the Traffic Mirror rule.
public final Integer protocol()
The protocol, for example TCP, to assign to the Traffic Mirror rule.
public final String destinationCidrBlock()
The destination CIDR block to assign to the Traffic Mirror rule.
public final String sourceCidrBlock()
The source CIDR block to assign to the Traffic Mirror rule.
public final String description()
The description to assign to the Traffic Mirror rule.
public final 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.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasRemoveFields() method.
When you remove a property from a Traffic Mirror filter rule, the property is set to the default.
public final boolean hasRemoveFields()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final 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.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasRemoveFields() method.
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 final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2021. All rights reserved.