/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace GameLift { namespace Model { class DescribeFleetPortSettingsResult { public: AWS_GAMELIFT_API DescribeFleetPortSettingsResult(); AWS_GAMELIFT_API DescribeFleetPortSettingsResult(const Aws::AmazonWebServiceResult& result); AWS_GAMELIFT_API DescribeFleetPortSettingsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A unique identifier for the fleet that was requested.

*/ inline const Aws::String& GetFleetId() const{ return m_fleetId; } /** *

A unique identifier for the fleet that was requested.

*/ inline void SetFleetId(const Aws::String& value) { m_fleetId = value; } /** *

A unique identifier for the fleet that was requested.

*/ inline void SetFleetId(Aws::String&& value) { m_fleetId = std::move(value); } /** *

A unique identifier for the fleet that was requested.

*/ inline void SetFleetId(const char* value) { m_fleetId.assign(value); } /** *

A unique identifier for the fleet that was requested.

*/ inline DescribeFleetPortSettingsResult& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;} /** *

A unique identifier for the fleet that was requested.

*/ inline DescribeFleetPortSettingsResult& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;} /** *

A unique identifier for the fleet that was requested.

*/ inline DescribeFleetPortSettingsResult& WithFleetId(const char* value) { SetFleetId(value); return *this;} /** *

The Amazon Resource Name (ARN) * that is assigned to a Amazon GameLift fleet resource and uniquely identifies it. * ARNs are unique across all Regions. Format is * arn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912.

*/ inline const Aws::String& GetFleetArn() const{ return m_fleetArn; } /** *

The Amazon Resource Name (ARN) * that is assigned to a Amazon GameLift fleet resource and uniquely identifies it. * ARNs are unique across all Regions. Format is * arn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912.

*/ inline void SetFleetArn(const Aws::String& value) { m_fleetArn = value; } /** *

The Amazon Resource Name (ARN) * that is assigned to a Amazon GameLift fleet resource and uniquely identifies it. * ARNs are unique across all Regions. Format is * arn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912.

*/ inline void SetFleetArn(Aws::String&& value) { m_fleetArn = std::move(value); } /** *

The Amazon Resource Name (ARN) * that is assigned to a Amazon GameLift fleet resource and uniquely identifies it. * ARNs are unique across all Regions. Format is * arn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912.

*/ inline void SetFleetArn(const char* value) { m_fleetArn.assign(value); } /** *

The Amazon Resource Name (ARN) * that is assigned to a Amazon GameLift fleet resource and uniquely identifies it. * ARNs are unique across all Regions. Format is * arn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912.

*/ inline DescribeFleetPortSettingsResult& WithFleetArn(const Aws::String& value) { SetFleetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) * that is assigned to a Amazon GameLift fleet resource and uniquely identifies it. * ARNs are unique across all Regions. Format is * arn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912.

*/ inline DescribeFleetPortSettingsResult& WithFleetArn(Aws::String&& value) { SetFleetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) * that is assigned to a Amazon GameLift fleet resource and uniquely identifies it. * ARNs are unique across all Regions. Format is * arn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912.

*/ inline DescribeFleetPortSettingsResult& WithFleetArn(const char* value) { SetFleetArn(value); return *this;} /** *

The port settings for the requested fleet ID.

*/ inline const Aws::Vector& GetInboundPermissions() const{ return m_inboundPermissions; } /** *

The port settings for the requested fleet ID.

*/ inline void SetInboundPermissions(const Aws::Vector& value) { m_inboundPermissions = value; } /** *

The port settings for the requested fleet ID.

*/ inline void SetInboundPermissions(Aws::Vector&& value) { m_inboundPermissions = std::move(value); } /** *

The port settings for the requested fleet ID.

*/ inline DescribeFleetPortSettingsResult& WithInboundPermissions(const Aws::Vector& value) { SetInboundPermissions(value); return *this;} /** *

The port settings for the requested fleet ID.

*/ inline DescribeFleetPortSettingsResult& WithInboundPermissions(Aws::Vector&& value) { SetInboundPermissions(std::move(value)); return *this;} /** *

The port settings for the requested fleet ID.

*/ inline DescribeFleetPortSettingsResult& AddInboundPermissions(const IpPermission& value) { m_inboundPermissions.push_back(value); return *this; } /** *

The port settings for the requested fleet ID.

*/ inline DescribeFleetPortSettingsResult& AddInboundPermissions(IpPermission&& value) { m_inboundPermissions.push_back(std::move(value)); return *this; } /** *

The current status of updates to the fleet's port settings in the requested * fleet location. A status of PENDING_UPDATE indicates that an update * was requested for the fleet but has not yet been completed for the location.

*/ inline const LocationUpdateStatus& GetUpdateStatus() const{ return m_updateStatus; } /** *

The current status of updates to the fleet's port settings in the requested * fleet location. A status of PENDING_UPDATE indicates that an update * was requested for the fleet but has not yet been completed for the location.

*/ inline void SetUpdateStatus(const LocationUpdateStatus& value) { m_updateStatus = value; } /** *

The current status of updates to the fleet's port settings in the requested * fleet location. A status of PENDING_UPDATE indicates that an update * was requested for the fleet but has not yet been completed for the location.

*/ inline void SetUpdateStatus(LocationUpdateStatus&& value) { m_updateStatus = std::move(value); } /** *

The current status of updates to the fleet's port settings in the requested * fleet location. A status of PENDING_UPDATE indicates that an update * was requested for the fleet but has not yet been completed for the location.

*/ inline DescribeFleetPortSettingsResult& WithUpdateStatus(const LocationUpdateStatus& value) { SetUpdateStatus(value); return *this;} /** *

The current status of updates to the fleet's port settings in the requested * fleet location. A status of PENDING_UPDATE indicates that an update * was requested for the fleet but has not yet been completed for the location.

*/ inline DescribeFleetPortSettingsResult& WithUpdateStatus(LocationUpdateStatus&& value) { SetUpdateStatus(std::move(value)); return *this;} /** *

The requested fleet location, expressed as an Amazon Web Services Region * code, such as us-west-2.

*/ inline const Aws::String& GetLocation() const{ return m_location; } /** *

The requested fleet location, expressed as an Amazon Web Services Region * code, such as us-west-2.

*/ inline void SetLocation(const Aws::String& value) { m_location = value; } /** *

The requested fleet location, expressed as an Amazon Web Services Region * code, such as us-west-2.

*/ inline void SetLocation(Aws::String&& value) { m_location = std::move(value); } /** *

The requested fleet location, expressed as an Amazon Web Services Region * code, such as us-west-2.

*/ inline void SetLocation(const char* value) { m_location.assign(value); } /** *

The requested fleet location, expressed as an Amazon Web Services Region * code, such as us-west-2.

*/ inline DescribeFleetPortSettingsResult& WithLocation(const Aws::String& value) { SetLocation(value); return *this;} /** *

The requested fleet location, expressed as an Amazon Web Services Region * code, such as us-west-2.

*/ inline DescribeFleetPortSettingsResult& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;} /** *

The requested fleet location, expressed as an Amazon Web Services Region * code, such as us-west-2.

*/ inline DescribeFleetPortSettingsResult& WithLocation(const char* value) { SetLocation(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline DescribeFleetPortSettingsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeFleetPortSettingsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeFleetPortSettingsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_fleetId; Aws::String m_fleetArn; Aws::Vector m_inboundPermissions; LocationUpdateStatus m_updateStatus; Aws::String m_location; Aws::String m_requestId; }; } // namespace Model } // namespace GameLift } // namespace Aws