/*
* 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
{
///
/// Container for the parameters to the CreateTransitGatewayPeeringAttachment operation.
/// Requests a transit gateway peering attachment between the specified transit gateway
/// (requester) and a peer transit gateway (accepter). The peer transit gateway can be
/// in your account or a different Amazon Web Services account.
///
///
///
/// After you create the peering attachment, the owner of the accepter transit gateway
/// must accept the attachment request.
///
///
public partial class CreateTransitGatewayPeeringAttachmentRequest : AmazonEC2Request
{
private CreateTransitGatewayPeeringAttachmentRequestOptions _options;
private string _peerAccountId;
private string _peerRegion;
private string _peerTransitGatewayId;
private List _tagSpecifications = new List();
private string _transitGatewayId;
///
/// Gets and sets the property Options.
///
/// Requests a transit gateway peering attachment.
///
///
public CreateTransitGatewayPeeringAttachmentRequestOptions Options
{
get { return this._options; }
set { this._options = value; }
}
// Check to see if Options property is set
internal bool IsSetOptions()
{
return this._options != null;
}
///
/// Gets and sets the property PeerAccountId.
///
/// The ID of the Amazon Web Services account that owns the peer transit gateway.
///
///
[AWSProperty(Required=true)]
public string PeerAccountId
{
get { return this._peerAccountId; }
set { this._peerAccountId = value; }
}
// Check to see if PeerAccountId property is set
internal bool IsSetPeerAccountId()
{
return this._peerAccountId != null;
}
///
/// Gets and sets the property PeerRegion.
///
/// The Region where the peer transit gateway is located.
///
///
[AWSProperty(Required=true)]
public string PeerRegion
{
get { return this._peerRegion; }
set { this._peerRegion = value; }
}
// Check to see if PeerRegion property is set
internal bool IsSetPeerRegion()
{
return this._peerRegion != null;
}
///
/// Gets and sets the property PeerTransitGatewayId.
///
/// The ID of the peer transit gateway with which to create the peering attachment.
///
///
[AWSProperty(Required=true)]
public string PeerTransitGatewayId
{
get { return this._peerTransitGatewayId; }
set { this._peerTransitGatewayId = value; }
}
// Check to see if PeerTransitGatewayId property is set
internal bool IsSetPeerTransitGatewayId()
{
return this._peerTransitGatewayId != null;
}
///
/// Gets and sets the property TagSpecifications.
///
/// The tags to apply to the transit gateway peering attachment.
///
///
public List TagSpecifications
{
get { return this._tagSpecifications; }
set { this._tagSpecifications = value; }
}
// Check to see if TagSpecifications property is set
internal bool IsSetTagSpecifications()
{
return this._tagSpecifications != null && this._tagSpecifications.Count > 0;
}
///
/// Gets and sets the property TransitGatewayId.
///
/// The ID of the transit gateway.
///
///
[AWSProperty(Required=true)]
public string TransitGatewayId
{
get { return this._transitGatewayId; }
set { this._transitGatewayId = value; }
}
// Check to see if TransitGatewayId property is set
internal bool IsSetTransitGatewayId()
{
return this._transitGatewayId != null;
}
}
}