/*
* 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
{
///
/// This data type is used with the Amazon GameLift FleetIQ and game server groups.
///
///
///
///
/// Additional properties, including status, that describe an EC2 instance in a game
/// server group. Instance configurations are set with game server group properties (see
/// DescribeGameServerGroup
and with the EC2 launch template that was used
/// when creating the game server group.
///
///
///
/// Retrieve game server instances for a game server group by calling DescribeGameServerInstances
.
///
///
///
public partial class GameServerInstance
{
private string _gameServerGroupArn;
private string _gameServerGroupName;
private string _instanceId;
private GameServerInstanceStatus _instanceStatus;
///
/// Gets and sets the property GameServerGroupArn.
///
/// A generated unique identifier for the game server group that includes the game server
/// instance.
///
///
[AWSProperty(Min=1, Max=256)]
public string GameServerGroupArn
{
get { return this._gameServerGroupArn; }
set { this._gameServerGroupArn = value; }
}
// Check to see if GameServerGroupArn property is set
internal bool IsSetGameServerGroupArn()
{
return this._gameServerGroupArn != null;
}
///
/// Gets and sets the property GameServerGroupName.
///
/// A developer-defined identifier for the game server group that includes the game server
/// instance. The name is unique for each Region in each Amazon Web Services account.
///
///
[AWSProperty(Min=1, Max=128)]
public string GameServerGroupName
{
get { return this._gameServerGroupName; }
set { this._gameServerGroupName = value; }
}
// Check to see if GameServerGroupName property is set
internal bool IsSetGameServerGroupName()
{
return this._gameServerGroupName != null;
}
///
/// Gets and sets the property InstanceId.
///
/// The unique identifier for the instance where the game server is running. This ID is
/// available in the instance metadata. EC2 instance IDs use a 17-character format, for
/// example: i-1234567890abcdef0
.
///
///
[AWSProperty(Min=19, Max=19)]
public string InstanceId
{
get { return this._instanceId; }
set { this._instanceId = value; }
}
// Check to see if InstanceId property is set
internal bool IsSetInstanceId()
{
return this._instanceId != null;
}
///
/// Gets and sets the property InstanceStatus.
///
/// Current status of the game server instance
///
///
public GameServerInstanceStatus InstanceStatus
{
get { return this._instanceStatus; }
set { this._instanceStatus = value; }
}
// Check to see if InstanceStatus property is set
internal bool IsSetInstanceStatus()
{
return this._instanceStatus != null;
}
}
}