/** * 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 SMS { namespace Model { /** */ class CreateAppRequest : public SMSRequest { public: AWS_SMS_API CreateAppRequest(); // 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 "CreateApp"; } AWS_SMS_API Aws::String SerializePayload() const override; AWS_SMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the new application.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the new application.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the new application.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the new application.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the new application.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the new application.

*/ inline CreateAppRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the new application.

*/ inline CreateAppRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the new application.

*/ inline CreateAppRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The description of the new application

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the new application

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the new application

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description of the new application

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description of the new application

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description of the new application

*/ inline CreateAppRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the new application

*/ inline CreateAppRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the new application

*/ inline CreateAppRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The name of the service role in the customer's account to be used by Server * Migration Service.

*/ inline const Aws::String& GetRoleName() const{ return m_roleName; } /** *

The name of the service role in the customer's account to be used by Server * Migration Service.

*/ inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; } /** *

The name of the service role in the customer's account to be used by Server * Migration Service.

*/ inline void SetRoleName(const Aws::String& value) { m_roleNameHasBeenSet = true; m_roleName = value; } /** *

The name of the service role in the customer's account to be used by Server * Migration Service.

*/ inline void SetRoleName(Aws::String&& value) { m_roleNameHasBeenSet = true; m_roleName = std::move(value); } /** *

The name of the service role in the customer's account to be used by Server * Migration Service.

*/ inline void SetRoleName(const char* value) { m_roleNameHasBeenSet = true; m_roleName.assign(value); } /** *

The name of the service role in the customer's account to be used by Server * Migration Service.

*/ inline CreateAppRequest& WithRoleName(const Aws::String& value) { SetRoleName(value); return *this;} /** *

The name of the service role in the customer's account to be used by Server * Migration Service.

*/ inline CreateAppRequest& WithRoleName(Aws::String&& value) { SetRoleName(std::move(value)); return *this;} /** *

The name of the service role in the customer's account to be used by Server * Migration Service.

*/ inline CreateAppRequest& WithRoleName(const char* value) { SetRoleName(value); return *this;} /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of application creation.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of application creation.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of application creation.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of application creation.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of application creation.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of application creation.

*/ inline CreateAppRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of application creation.

*/ inline CreateAppRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of application creation.

*/ inline CreateAppRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

The server groups to include in the application.

*/ inline const Aws::Vector& GetServerGroups() const{ return m_serverGroups; } /** *

The server groups to include in the application.

*/ inline bool ServerGroupsHasBeenSet() const { return m_serverGroupsHasBeenSet; } /** *

The server groups to include in the application.

*/ inline void SetServerGroups(const Aws::Vector& value) { m_serverGroupsHasBeenSet = true; m_serverGroups = value; } /** *

The server groups to include in the application.

*/ inline void SetServerGroups(Aws::Vector&& value) { m_serverGroupsHasBeenSet = true; m_serverGroups = std::move(value); } /** *

The server groups to include in the application.

*/ inline CreateAppRequest& WithServerGroups(const Aws::Vector& value) { SetServerGroups(value); return *this;} /** *

The server groups to include in the application.

*/ inline CreateAppRequest& WithServerGroups(Aws::Vector&& value) { SetServerGroups(std::move(value)); return *this;} /** *

The server groups to include in the application.

*/ inline CreateAppRequest& AddServerGroups(const ServerGroup& value) { m_serverGroupsHasBeenSet = true; m_serverGroups.push_back(value); return *this; } /** *

The server groups to include in the application.

*/ inline CreateAppRequest& AddServerGroups(ServerGroup&& value) { m_serverGroupsHasBeenSet = true; m_serverGroups.push_back(std::move(value)); return *this; } /** *

The tags to be associated with the application.

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

The tags to be associated with the application.

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

The tags to be associated with the application.

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

The tags to be associated with the application.

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

The tags to be associated with the application.

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

The tags to be associated with the application.

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

The tags to be associated with the application.

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

The tags to be associated with the application.

*/ inline CreateAppRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_roleName; bool m_roleNameHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::Vector m_serverGroups; bool m_serverGroupsHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace SMS } // namespace Aws