/* * Copyright 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. */ /* * Do not modify this file. This file is generated from the ec2-2016-11-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.EC2.Model { /// /// Describes a Traffic Mirror session. /// public partial class TrafficMirrorSession { private string _description; private string _networkInterfaceId; private string _ownerId; private int? _packetLength; private int? _sessionNumber; private List _tags = new List(); private string _trafficMirrorFilterId; private string _trafficMirrorSessionId; private string _trafficMirrorTargetId; private int? _virtualNetworkId; /// /// Gets and sets the property Description. /// /// The description of the Traffic Mirror session. /// /// public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// /// Gets and sets the property NetworkInterfaceId. /// /// The ID of the Traffic Mirror session's network interface. /// /// public string NetworkInterfaceId { get { return this._networkInterfaceId; } set { this._networkInterfaceId = value; } } // Check to see if NetworkInterfaceId property is set internal bool IsSetNetworkInterfaceId() { return this._networkInterfaceId != null; } /// /// Gets and sets the property OwnerId. /// /// The ID of the account that owns the Traffic Mirror session. /// /// public string OwnerId { get { return this._ownerId; } set { this._ownerId = value; } } // Check to see if OwnerId property is set internal bool IsSetOwnerId() { return this._ownerId != null; } /// /// Gets and sets the property PacketLength. /// /// The number of bytes in each packet to mirror. These are the 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 /// /// public int PacketLength { get { return this._packetLength.GetValueOrDefault(); } set { this._packetLength = value; } } // Check to see if PacketLength property is set internal bool IsSetPacketLength() { return this._packetLength.HasValue; } /// /// Gets and sets the property 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. /// /// public int SessionNumber { get { return this._sessionNumber.GetValueOrDefault(); } set { this._sessionNumber = value; } } // Check to see if SessionNumber property is set internal bool IsSetSessionNumber() { return this._sessionNumber.HasValue; } /// /// Gets and sets the property Tags. /// /// The tags assigned to the Traffic Mirror session. /// /// public List Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } /// /// Gets and sets the property TrafficMirrorFilterId. /// /// The ID of the Traffic Mirror filter. /// /// public string TrafficMirrorFilterId { get { return this._trafficMirrorFilterId; } set { this._trafficMirrorFilterId = value; } } // Check to see if TrafficMirrorFilterId property is set internal bool IsSetTrafficMirrorFilterId() { return this._trafficMirrorFilterId != null; } /// /// Gets and sets the property TrafficMirrorSessionId. /// /// The ID for the Traffic Mirror session. /// /// public string TrafficMirrorSessionId { get { return this._trafficMirrorSessionId; } set { this._trafficMirrorSessionId = value; } } // Check to see if TrafficMirrorSessionId property is set internal bool IsSetTrafficMirrorSessionId() { return this._trafficMirrorSessionId != null; } /// /// Gets and sets the property TrafficMirrorTargetId. /// /// The ID of the Traffic Mirror target. /// /// public string TrafficMirrorTargetId { get { return this._trafficMirrorTargetId; } set { this._trafficMirrorTargetId = value; } } // Check to see if TrafficMirrorTargetId property is set internal bool IsSetTrafficMirrorTargetId() { return this._trafficMirrorTargetId != null; } /// /// Gets and sets the property VirtualNetworkId. /// /// The virtual network ID associated with the Traffic Mirror session. /// /// public int VirtualNetworkId { get { return this._virtualNetworkId.GetValueOrDefault(); } set { this._virtualNetworkId = value; } } // Check to see if VirtualNetworkId property is set internal bool IsSetVirtualNetworkId() { return this._virtualNetworkId.HasValue; } } }