/*
* 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 gamelift-2015-10-01.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.GameLift.Model
{
///
/// Represents a peering connection between a VPC on one of your Amazon Web Services accounts
/// and the VPC for your Amazon GameLift fleets. This record may be for an active peering
/// connection or a pending connection that has not yet been established.
///
///
///
/// Related actions
///
///
///
/// All
/// APIs by task
///
///
public partial class VpcPeeringConnection
{
private string _fleetArn;
private string _fleetId;
private string _gameLiftVpcId;
private string _ipV4CidrBlock;
private string _peerVpcId;
private VpcPeeringConnectionStatus _status;
private string _vpcPeeringConnectionId;
///
/// Gets and sets the property FleetArn.
///
/// The Amazon Resource Name (ARN)
/// associated with the GameLift fleet resource for this connection.
///
///
public string FleetArn
{
get { return this._fleetArn; }
set { this._fleetArn = value; }
}
// Check to see if FleetArn property is set
internal bool IsSetFleetArn()
{
return this._fleetArn != null;
}
///
/// Gets and sets the property FleetId.
///
/// A unique identifier for the fleet. This ID determines the ID of the Amazon GameLift
/// VPC for your fleet.
///
///
public string FleetId
{
get { return this._fleetId; }
set { this._fleetId = value; }
}
// Check to see if FleetId property is set
internal bool IsSetFleetId()
{
return this._fleetId != null;
}
///
/// Gets and sets the property GameLiftVpcId.
///
/// A unique identifier for the VPC that contains the Amazon GameLift fleet for this connection.
/// This VPC is managed by Amazon GameLift and does not appear in your Amazon Web Services
/// account.
///
///
[AWSProperty(Min=1, Max=1024)]
public string GameLiftVpcId
{
get { return this._gameLiftVpcId; }
set { this._gameLiftVpcId = value; }
}
// Check to see if GameLiftVpcId property is set
internal bool IsSetGameLiftVpcId()
{
return this._gameLiftVpcId != null;
}
///
/// Gets and sets the property IpV4CidrBlock.
///
/// CIDR block of IPv4 addresses assigned to the VPC peering connection for the GameLift
/// VPC. The peered VPC also has an IPv4 CIDR block associated with it; these blocks cannot
/// overlap or the peering connection cannot be created.
///
///
[AWSProperty(Min=1, Max=1024)]
public string IpV4CidrBlock
{
get { return this._ipV4CidrBlock; }
set { this._ipV4CidrBlock = value; }
}
// Check to see if IpV4CidrBlock property is set
internal bool IsSetIpV4CidrBlock()
{
return this._ipV4CidrBlock != null;
}
///
/// Gets and sets the property PeerVpcId.
///
/// A unique identifier for a VPC with resources to be accessed by your Amazon GameLift
/// fleet. The VPC must be in the same Region as your fleet. To look up a VPC ID, use
/// the VPC Dashboard in the Amazon
/// Web Services Management Console. Learn more about VPC peering in VPC
/// Peering with Amazon GameLift Fleets.
///
///
[AWSProperty(Min=1, Max=1024)]
public string PeerVpcId
{
get { return this._peerVpcId; }
set { this._peerVpcId = value; }
}
// Check to see if PeerVpcId property is set
internal bool IsSetPeerVpcId()
{
return this._peerVpcId != null;
}
///
/// Gets and sets the property Status.
///
/// The status information about the connection. Status indicates if a connection is pending,
/// successful, or failed.
///
///
public VpcPeeringConnectionStatus Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
///
/// Gets and sets the property VpcPeeringConnectionId.
///
/// A unique identifier that is automatically assigned to the connection record. This
/// ID is referenced in VPC peering connection events, and is used when deleting a connection.
///
///
[AWSProperty(Min=1, Max=1024)]
public string VpcPeeringConnectionId
{
get { return this._vpcPeeringConnectionId; }
set { this._vpcPeeringConnectionId = value; }
}
// Check to see if VpcPeeringConnectionId property is set
internal bool IsSetVpcPeeringConnectionId()
{
return this._vpcPeeringConnectionId != null;
}
}
}