/*
* 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
{
///
/// Container for the parameters to the UpdateFleetPortSettings operation.
/// Updates permissions that allow inbound traffic to connect to game sessions that are
/// being hosted on instances in the fleet.
///
///
///
/// To update settings, specify the fleet ID to be updated and specify the changes to
/// be made. List the permissions you want to add in InboundPermissionAuthorizations
,
/// and permissions you want to remove in InboundPermissionRevocations
. Permissions
/// to be removed must match existing fleet permissions.
///
///
///
/// If successful, the fleet ID for the updated fleet is returned. For fleets with remote
/// locations, port setting updates can take time to propagate across all locations. You
/// can check the status of updates in each location by calling DescribeFleetPortSettings
/// with a location name.
///
///
///
/// Learn more
///
///
///
/// Setting
/// up Amazon GameLift fleets
///
///
public partial class UpdateFleetPortSettingsRequest : AmazonGameLiftRequest
{
private string _fleetId;
private List _inboundPermissionAuthorizations = new List();
private List _inboundPermissionRevocations = new List();
///
/// Gets and sets the property FleetId.
///
/// A unique identifier for the fleet to update port settings for. You can use either
/// the fleet ID or ARN value.
///
///
[AWSProperty(Required=true)]
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 InboundPermissionAuthorizations.
///
/// A collection of port settings to be added to the fleet resource.
///
///
[AWSProperty(Max=50)]
public List InboundPermissionAuthorizations
{
get { return this._inboundPermissionAuthorizations; }
set { this._inboundPermissionAuthorizations = value; }
}
// Check to see if InboundPermissionAuthorizations property is set
internal bool IsSetInboundPermissionAuthorizations()
{
return this._inboundPermissionAuthorizations != null && this._inboundPermissionAuthorizations.Count > 0;
}
///
/// Gets and sets the property InboundPermissionRevocations.
///
/// A collection of port settings to be removed from the fleet resource.
///
///
[AWSProperty(Max=50)]
public List InboundPermissionRevocations
{
get { return this._inboundPermissionRevocations; }
set { this._inboundPermissionRevocations = value; }
}
// Check to see if InboundPermissionRevocations property is set
internal bool IsSetInboundPermissionRevocations()
{
return this._inboundPermissionRevocations != null && this._inboundPermissionRevocations.Count > 0;
}
}
}