/** * 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 { namespace GameLift { namespace Model { /** */ class UpdateFleetPortSettingsRequest : public GameLiftRequest { public: AWS_GAMELIFT_API UpdateFleetPortSettingsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateFleetPortSettings"; } AWS_GAMELIFT_API Aws::String SerializePayload() const override; AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A unique identifier for the fleet to update port settings for. You can use * either the fleet ID or ARN value.

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

A unique identifier for the fleet to update port settings for. You can use * either the fleet ID or ARN value.

*/ inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; } /** *

A unique identifier for the fleet to update port settings for. You can use * either the fleet ID or ARN value.

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

A unique identifier for the fleet to update port settings for. You can use * either the fleet ID or ARN value.

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

A unique identifier for the fleet to update port settings for. You can use * either the fleet ID or ARN value.

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

A unique identifier for the fleet to update port settings for. You can use * either the fleet ID or ARN value.

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

A unique identifier for the fleet to update port settings for. You can use * either the fleet ID or ARN value.

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

A unique identifier for the fleet to update port settings for. You can use * either the fleet ID or ARN value.

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

A collection of port settings to be added to the fleet resource.

*/ inline const Aws::Vector& GetInboundPermissionAuthorizations() const{ return m_inboundPermissionAuthorizations; } /** *

A collection of port settings to be added to the fleet resource.

*/ inline bool InboundPermissionAuthorizationsHasBeenSet() const { return m_inboundPermissionAuthorizationsHasBeenSet; } /** *

A collection of port settings to be added to the fleet resource.

*/ inline void SetInboundPermissionAuthorizations(const Aws::Vector& value) { m_inboundPermissionAuthorizationsHasBeenSet = true; m_inboundPermissionAuthorizations = value; } /** *

A collection of port settings to be added to the fleet resource.

*/ inline void SetInboundPermissionAuthorizations(Aws::Vector&& value) { m_inboundPermissionAuthorizationsHasBeenSet = true; m_inboundPermissionAuthorizations = std::move(value); } /** *

A collection of port settings to be added to the fleet resource.

*/ inline UpdateFleetPortSettingsRequest& WithInboundPermissionAuthorizations(const Aws::Vector& value) { SetInboundPermissionAuthorizations(value); return *this;} /** *

A collection of port settings to be added to the fleet resource.

*/ inline UpdateFleetPortSettingsRequest& WithInboundPermissionAuthorizations(Aws::Vector&& value) { SetInboundPermissionAuthorizations(std::move(value)); return *this;} /** *

A collection of port settings to be added to the fleet resource.

*/ inline UpdateFleetPortSettingsRequest& AddInboundPermissionAuthorizations(const IpPermission& value) { m_inboundPermissionAuthorizationsHasBeenSet = true; m_inboundPermissionAuthorizations.push_back(value); return *this; } /** *

A collection of port settings to be added to the fleet resource.

*/ inline UpdateFleetPortSettingsRequest& AddInboundPermissionAuthorizations(IpPermission&& value) { m_inboundPermissionAuthorizationsHasBeenSet = true; m_inboundPermissionAuthorizations.push_back(std::move(value)); return *this; } /** *

A collection of port settings to be removed from the fleet resource.

*/ inline const Aws::Vector& GetInboundPermissionRevocations() const{ return m_inboundPermissionRevocations; } /** *

A collection of port settings to be removed from the fleet resource.

*/ inline bool InboundPermissionRevocationsHasBeenSet() const { return m_inboundPermissionRevocationsHasBeenSet; } /** *

A collection of port settings to be removed from the fleet resource.

*/ inline void SetInboundPermissionRevocations(const Aws::Vector& value) { m_inboundPermissionRevocationsHasBeenSet = true; m_inboundPermissionRevocations = value; } /** *

A collection of port settings to be removed from the fleet resource.

*/ inline void SetInboundPermissionRevocations(Aws::Vector&& value) { m_inboundPermissionRevocationsHasBeenSet = true; m_inboundPermissionRevocations = std::move(value); } /** *

A collection of port settings to be removed from the fleet resource.

*/ inline UpdateFleetPortSettingsRequest& WithInboundPermissionRevocations(const Aws::Vector& value) { SetInboundPermissionRevocations(value); return *this;} /** *

A collection of port settings to be removed from the fleet resource.

*/ inline UpdateFleetPortSettingsRequest& WithInboundPermissionRevocations(Aws::Vector&& value) { SetInboundPermissionRevocations(std::move(value)); return *this;} /** *

A collection of port settings to be removed from the fleet resource.

*/ inline UpdateFleetPortSettingsRequest& AddInboundPermissionRevocations(const IpPermission& value) { m_inboundPermissionRevocationsHasBeenSet = true; m_inboundPermissionRevocations.push_back(value); return *this; } /** *

A collection of port settings to be removed from the fleet resource.

*/ inline UpdateFleetPortSettingsRequest& AddInboundPermissionRevocations(IpPermission&& value) { m_inboundPermissionRevocationsHasBeenSet = true; m_inboundPermissionRevocations.push_back(std::move(value)); return *this; } private: Aws::String m_fleetId; bool m_fleetIdHasBeenSet = false; Aws::Vector m_inboundPermissionAuthorizations; bool m_inboundPermissionAuthorizationsHasBeenSet = false; Aws::Vector m_inboundPermissionRevocations; bool m_inboundPermissionRevocationsHasBeenSet = false; }; } // namespace Model } // namespace GameLift } // namespace Aws