/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace BackupGateway { namespace Model { /** */ class CreateGatewayRequest : public BackupGatewayRequest { public: AWS_BACKUPGATEWAY_API CreateGatewayRequest(); // 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 "CreateGateway"; } AWS_BACKUPGATEWAY_API Aws::String SerializePayload() const override; AWS_BACKUPGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The activation key of the created gateway.

*/ inline const Aws::String& GetActivationKey() const{ return m_activationKey; } /** *

The activation key of the created gateway.

*/ inline bool ActivationKeyHasBeenSet() const { return m_activationKeyHasBeenSet; } /** *

The activation key of the created gateway.

*/ inline void SetActivationKey(const Aws::String& value) { m_activationKeyHasBeenSet = true; m_activationKey = value; } /** *

The activation key of the created gateway.

*/ inline void SetActivationKey(Aws::String&& value) { m_activationKeyHasBeenSet = true; m_activationKey = std::move(value); } /** *

The activation key of the created gateway.

*/ inline void SetActivationKey(const char* value) { m_activationKeyHasBeenSet = true; m_activationKey.assign(value); } /** *

The activation key of the created gateway.

*/ inline CreateGatewayRequest& WithActivationKey(const Aws::String& value) { SetActivationKey(value); return *this;} /** *

The activation key of the created gateway.

*/ inline CreateGatewayRequest& WithActivationKey(Aws::String&& value) { SetActivationKey(std::move(value)); return *this;} /** *

The activation key of the created gateway.

*/ inline CreateGatewayRequest& WithActivationKey(const char* value) { SetActivationKey(value); return *this;} /** *

The display name of the created gateway.

*/ inline const Aws::String& GetGatewayDisplayName() const{ return m_gatewayDisplayName; } /** *

The display name of the created gateway.

*/ inline bool GatewayDisplayNameHasBeenSet() const { return m_gatewayDisplayNameHasBeenSet; } /** *

The display name of the created gateway.

*/ inline void SetGatewayDisplayName(const Aws::String& value) { m_gatewayDisplayNameHasBeenSet = true; m_gatewayDisplayName = value; } /** *

The display name of the created gateway.

*/ inline void SetGatewayDisplayName(Aws::String&& value) { m_gatewayDisplayNameHasBeenSet = true; m_gatewayDisplayName = std::move(value); } /** *

The display name of the created gateway.

*/ inline void SetGatewayDisplayName(const char* value) { m_gatewayDisplayNameHasBeenSet = true; m_gatewayDisplayName.assign(value); } /** *

The display name of the created gateway.

*/ inline CreateGatewayRequest& WithGatewayDisplayName(const Aws::String& value) { SetGatewayDisplayName(value); return *this;} /** *

The display name of the created gateway.

*/ inline CreateGatewayRequest& WithGatewayDisplayName(Aws::String&& value) { SetGatewayDisplayName(std::move(value)); return *this;} /** *

The display name of the created gateway.

*/ inline CreateGatewayRequest& WithGatewayDisplayName(const char* value) { SetGatewayDisplayName(value); return *this;} /** *

The type of created gateway.

*/ inline const GatewayType& GetGatewayType() const{ return m_gatewayType; } /** *

The type of created gateway.

*/ inline bool GatewayTypeHasBeenSet() const { return m_gatewayTypeHasBeenSet; } /** *

The type of created gateway.

*/ inline void SetGatewayType(const GatewayType& value) { m_gatewayTypeHasBeenSet = true; m_gatewayType = value; } /** *

The type of created gateway.

*/ inline void SetGatewayType(GatewayType&& value) { m_gatewayTypeHasBeenSet = true; m_gatewayType = std::move(value); } /** *

The type of created gateway.

*/ inline CreateGatewayRequest& WithGatewayType(const GatewayType& value) { SetGatewayType(value); return *this;} /** *

The type of created gateway.

*/ inline CreateGatewayRequest& WithGatewayType(GatewayType&& value) { SetGatewayType(std::move(value)); return *this;} /** *

A list of up to 50 tags to assign to the gateway. Each tag is a key-value * pair.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

A list of up to 50 tags to assign to the gateway. Each tag is a key-value * pair.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A list of up to 50 tags to assign to the gateway. Each tag is a key-value * pair.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A list of up to 50 tags to assign to the gateway. Each tag is a key-value * pair.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A list of up to 50 tags to assign to the gateway. Each tag is a key-value * pair.

*/ inline CreateGatewayRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

A list of up to 50 tags to assign to the gateway. Each tag is a key-value * pair.

*/ inline CreateGatewayRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

A list of up to 50 tags to assign to the gateway. Each tag is a key-value * pair.

*/ inline CreateGatewayRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

A list of up to 50 tags to assign to the gateway. Each tag is a key-value * pair.

*/ inline CreateGatewayRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_activationKey; bool m_activationKeyHasBeenSet = false; Aws::String m_gatewayDisplayName; bool m_gatewayDisplayNameHasBeenSet = false; GatewayType m_gatewayType; bool m_gatewayTypeHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace BackupGateway } // namespace Aws