/*
* 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 rule associated with a transit gateway policy.
///
public partial class TransitGatewayPolicyRule
{
private string _destinationCidrBlock;
private string _destinationPortRange;
private TransitGatewayPolicyRuleMetaData _metaData;
private string _protocol;
private string _sourceCidrBlock;
private string _sourcePortRange;
///
/// Gets and sets the property DestinationCidrBlock.
///
/// The destination CIDR block for the transit gateway policy rule.
///
///
public string DestinationCidrBlock
{
get { return this._destinationCidrBlock; }
set { this._destinationCidrBlock = value; }
}
// Check to see if DestinationCidrBlock property is set
internal bool IsSetDestinationCidrBlock()
{
return this._destinationCidrBlock != null;
}
///
/// Gets and sets the property DestinationPortRange.
///
/// The port range for the transit gateway policy rule. Currently this is set to * (all).
///
///
public string DestinationPortRange
{
get { return this._destinationPortRange; }
set { this._destinationPortRange = value; }
}
// Check to see if DestinationPortRange property is set
internal bool IsSetDestinationPortRange()
{
return this._destinationPortRange != null;
}
///
/// Gets and sets the property MetaData.
///
/// The meta data tags used for the transit gateway policy rule.
///
///
public TransitGatewayPolicyRuleMetaData MetaData
{
get { return this._metaData; }
set { this._metaData = value; }
}
// Check to see if MetaData property is set
internal bool IsSetMetaData()
{
return this._metaData != null;
}
///
/// Gets and sets the property Protocol.
///
/// The protocol used by the transit gateway policy rule.
///
///
public string Protocol
{
get { return this._protocol; }
set { this._protocol = value; }
}
// Check to see if Protocol property is set
internal bool IsSetProtocol()
{
return this._protocol != null;
}
///
/// Gets and sets the property SourceCidrBlock.
///
/// The source CIDR block for the transit gateway policy rule.
///
///
public string SourceCidrBlock
{
get { return this._sourceCidrBlock; }
set { this._sourceCidrBlock = value; }
}
// Check to see if SourceCidrBlock property is set
internal bool IsSetSourceCidrBlock()
{
return this._sourceCidrBlock != null;
}
///
/// Gets and sets the property SourcePortRange.
///
/// The port range for the transit gateway policy rule. Currently this is set to * (all).
///
///
public string SourcePortRange
{
get { return this._sourcePortRange; }
set { this._sourcePortRange = value; }
}
// Check to see if SourcePortRange property is set
internal bool IsSetSourcePortRange()
{
return this._sourcePortRange != null;
}
}
}