/*
* Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.ec2.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
import com.amazonaws.Request;
import com.amazonaws.services.ec2.model.transform.ModifyTrafficMirrorSessionRequestMarshaller;
/**
*
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ModifyTrafficMirrorSessionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable,
DryRunSupportedRequest
* The ID of the Traffic Mirror session.
*
* The Traffic Mirror target. The target must be in the same VPC as the source, or have a VPC peering connection
* with the source.
*
* The ID of the Traffic Mirror filter.
*
* The number of bytes in each packet to mirror. These are bytes after the VXLAN header. To mirror a subset, set
* this to the length (in bytes) to mirror. For example, if you set this value to 100, then the first 100 bytes that
* meet the filter criteria are copied to the target. Do not specify this parameter when you want to mirror the
* entire packet.
*
* The session number determines the order in which sessions are evaluated when an interface is used by multiple
* sessions. The first session with a matching filter is the one that mirrors the packets.
*
* Valid values are 1-32766.
*
* The virtual network ID of the Traffic Mirror session.
*
* The description to assign to the Traffic Mirror session.
*
* The properties that you want to remove from the Traffic Mirror session.
*
* When you remove a property from a Traffic Mirror session, the property is set to the default.
*
* The ID of the Traffic Mirror session.
*
* The ID of the Traffic Mirror session.
*
* The ID of the Traffic Mirror session.
*
* The Traffic Mirror target. The target must be in the same VPC as the source, or have a VPC peering connection
* with the source.
*
* The Traffic Mirror target. The target must be in the same VPC as the source, or have a VPC peering connection
* with the source.
*
* The Traffic Mirror target. The target must be in the same VPC as the source, or have a VPC peering connection
* with the source.
*
* The ID of the Traffic Mirror filter.
*
* The ID of the Traffic Mirror filter.
*
* The ID of the Traffic Mirror filter.
*
* The number of bytes in each packet to mirror. These are bytes after the VXLAN header. To mirror a subset, set
* this to the length (in bytes) to mirror. For example, if you set this value to 100, then the first 100 bytes that
* meet the filter criteria are copied to the target. Do not specify this parameter when you want to mirror the
* entire packet.
*
* The number of bytes in each packet to mirror. These are bytes after the VXLAN header. To mirror a subset, set
* this to the length (in bytes) to mirror. For example, if you set this value to 100, then the first 100 bytes that
* meet the filter criteria are copied to the target. Do not specify this parameter when you want to mirror the
* entire packet.
*
* The number of bytes in each packet to mirror. These are bytes after the VXLAN header. To mirror a subset, set
* this to the length (in bytes) to mirror. For example, if you set this value to 100, then the first 100 bytes that
* meet the filter criteria are copied to the target. Do not specify this parameter when you want to mirror the
* entire packet.
*
* The session number determines the order in which sessions are evaluated when an interface is used by multiple
* sessions. The first session with a matching filter is the one that mirrors the packets.
*
* Valid values are 1-32766.
*
* Valid values are 1-32766. */ public void setSessionNumber(Integer sessionNumber) { this.sessionNumber = sessionNumber; } /** *
* The session number determines the order in which sessions are evaluated when an interface is used by multiple * sessions. The first session with a matching filter is the one that mirrors the packets. *
** Valid values are 1-32766. *
* * @return The session number determines the order in which sessions are evaluated when an interface is used by * multiple sessions. The first session with a matching filter is the one that mirrors the packets. ** Valid values are 1-32766. */ public Integer getSessionNumber() { return this.sessionNumber; } /** *
* The session number determines the order in which sessions are evaluated when an interface is used by multiple * sessions. The first session with a matching filter is the one that mirrors the packets. *
** Valid values are 1-32766. *
* * @param sessionNumber * The session number determines the order in which sessions are evaluated when an interface is used by * multiple sessions. The first session with a matching filter is the one that mirrors the packets. ** Valid values are 1-32766. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyTrafficMirrorSessionRequest withSessionNumber(Integer sessionNumber) { setSessionNumber(sessionNumber); return this; } /** *
* The virtual network ID of the Traffic Mirror session. *
* * @param virtualNetworkId * The virtual network ID of the Traffic Mirror session. */ public void setVirtualNetworkId(Integer virtualNetworkId) { this.virtualNetworkId = virtualNetworkId; } /** ** The virtual network ID of the Traffic Mirror session. *
* * @return The virtual network ID of the Traffic Mirror session. */ public Integer getVirtualNetworkId() { return this.virtualNetworkId; } /** ** The virtual network ID of the Traffic Mirror session. *
* * @param virtualNetworkId * The virtual network ID of the Traffic Mirror session. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyTrafficMirrorSessionRequest withVirtualNetworkId(Integer virtualNetworkId) { setVirtualNetworkId(virtualNetworkId); return this; } /** ** The description to assign to the Traffic Mirror session. *
* * @param description * The description to assign to the Traffic Mirror session. */ public void setDescription(String description) { this.description = description; } /** ** The description to assign to the Traffic Mirror session. *
* * @return The description to assign to the Traffic Mirror session. */ public String getDescription() { return this.description; } /** ** The description to assign to the Traffic Mirror session. *
* * @param description * The description to assign to the Traffic Mirror session. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyTrafficMirrorSessionRequest withDescription(String description) { setDescription(description); return this; } /** ** The properties that you want to remove from the Traffic Mirror session. *
** When you remove a property from a Traffic Mirror session, the property is set to the default. *
* * @return The properties that you want to remove from the Traffic Mirror session. *
* When you remove a property from a Traffic Mirror session, the property is set to the default.
* @see TrafficMirrorSessionField
*/
public java.util.List
* The properties that you want to remove from the Traffic Mirror session.
*
* When you remove a property from a Traffic Mirror session, the property is set to the default.
*
* When you remove a property from a Traffic Mirror session, the property is set to the default.
* @see TrafficMirrorSessionField
*/
public void setRemoveFields(java.util.Collection
* The properties that you want to remove from the Traffic Mirror session.
*
* When you remove a property from a Traffic Mirror session, the property is set to the default.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setRemoveFields(java.util.Collection)} or {@link #withRemoveFields(java.util.Collection)} if you want to
* override the existing values.
*
* When you remove a property from a Traffic Mirror session, the property is set to the default.
* @return Returns a reference to this object so that method calls can be chained together.
* @see TrafficMirrorSessionField
*/
public ModifyTrafficMirrorSessionRequest withRemoveFields(String... removeFields) {
if (this.removeFields == null) {
setRemoveFields(new com.amazonaws.internal.SdkInternalList
* The properties that you want to remove from the Traffic Mirror session.
*
* When you remove a property from a Traffic Mirror session, the property is set to the default.
*
* When you remove a property from a Traffic Mirror session, the property is set to the default.
* @return Returns a reference to this object so that method calls can be chained together.
* @see TrafficMirrorSessionField
*/
public ModifyTrafficMirrorSessionRequest withRemoveFields(java.util.Collection
* The properties that you want to remove from the Traffic Mirror session.
*
* When you remove a property from a Traffic Mirror session, the property is set to the default.
*
* When you remove a property from a Traffic Mirror session, the property is set to the default.
* @return Returns a reference to this object so that method calls can be chained together.
* @see TrafficMirrorSessionField
*/
public ModifyTrafficMirrorSessionRequest withRemoveFields(TrafficMirrorSessionField... removeFields) {
com.amazonaws.internal.SdkInternalList