/** * 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 UpdateAppRequest : public SMSRequest { public: AWS_SMS_API UpdateAppRequest(); // 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 "UpdateApp"; } AWS_SMS_API Aws::String SerializePayload() const override; AWS_SMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ID of the application.

*/ inline const Aws::String& GetAppId() const{ return m_appId; } /** *

The ID of the application.

*/ inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; } /** *

The ID of the application.

*/ inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; } /** *

The ID of the application.

*/ inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); } /** *

The ID of the application.

*/ inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); } /** *

The ID of the application.

*/ inline UpdateAppRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;} /** *

The ID of the application.

*/ inline UpdateAppRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;} /** *

The ID of the application.

*/ inline UpdateAppRequest& WithAppId(const char* value) { SetAppId(value); return *this;} /** *

The new name of the application.

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

The new name of the application.

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

The new name of the application.

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

The new name of the application.

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

The new name of the application.

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

The new name of the application.

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

The new name of the application.

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

The new name of the application.

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

The new description of the application.

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

The new description of the application.

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

The new description of the application.

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

The new description of the application.

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

The new description of the application.

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

The new description of the application.

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

The new description of the application.

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

The new description of the application.

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

The name of the service role in the customer's account 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 used by Server * Migration Service.

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

The name of the service role in the customer's account 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 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 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 used by Server * Migration Service.

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

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

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

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

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

The server groups in the application to update.

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

The server groups in the application to update.

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

The server groups in the application to update.

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

The server groups in the application to update.

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

The server groups in the application to update.

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

The server groups in the application to update.

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

The server groups in the application to update.

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

The server groups in the application to update.

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

The tags to associate with the application.

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

The tags to associate with the application.

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

The tags to associate with the application.

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

The tags to associate with the application.

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

The tags to associate with the application.

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

The tags to associate with the application.

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

The tags to associate with the application.

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

The tags to associate with the application.

*/ inline UpdateAppRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_appId; bool m_appIdHasBeenSet = false; 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::Vector m_serverGroups; bool m_serverGroupsHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace SMS } // namespace Aws