/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace MainframeModernization { namespace Model { /** */ class UpdateApplicationRequest : public MainframeModernizationRequest { public: AWS_MAINFRAMEMODERNIZATION_API UpdateApplicationRequest(); // 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 "UpdateApplication"; } AWS_MAINFRAMEMODERNIZATION_API Aws::String SerializePayload() const override; /** *

The unique identifier of the application you want to update.

*/ inline const Aws::String& GetApplicationId() const{ return m_applicationId; } /** *

The unique identifier of the application you want to update.

*/ inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; } /** *

The unique identifier of the application you want to update.

*/ inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; } /** *

The unique identifier of the application you want to update.

*/ inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); } /** *

The unique identifier of the application you want to update.

*/ inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); } /** *

The unique identifier of the application you want to update.

*/ inline UpdateApplicationRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;} /** *

The unique identifier of the application you want to update.

*/ inline UpdateApplicationRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;} /** *

The unique identifier of the application you want to update.

*/ inline UpdateApplicationRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;} /** *

The current version of the application to update.

*/ inline int GetCurrentApplicationVersion() const{ return m_currentApplicationVersion; } /** *

The current version of the application to update.

*/ inline bool CurrentApplicationVersionHasBeenSet() const { return m_currentApplicationVersionHasBeenSet; } /** *

The current version of the application to update.

*/ inline void SetCurrentApplicationVersion(int value) { m_currentApplicationVersionHasBeenSet = true; m_currentApplicationVersion = value; } /** *

The current version of the application to update.

*/ inline UpdateApplicationRequest& WithCurrentApplicationVersion(int value) { SetCurrentApplicationVersion(value); return *this;} /** *

The application definition for this application. You can specify either * inline JSON or an S3 bucket location.

*/ inline const Definition& GetDefinition() const{ return m_definition; } /** *

The application definition for this application. You can specify either * inline JSON or an S3 bucket location.

*/ inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; } /** *

The application definition for this application. You can specify either * inline JSON or an S3 bucket location.

*/ inline void SetDefinition(const Definition& value) { m_definitionHasBeenSet = true; m_definition = value; } /** *

The application definition for this application. You can specify either * inline JSON or an S3 bucket location.

*/ inline void SetDefinition(Definition&& value) { m_definitionHasBeenSet = true; m_definition = std::move(value); } /** *

The application definition for this application. You can specify either * inline JSON or an S3 bucket location.

*/ inline UpdateApplicationRequest& WithDefinition(const Definition& value) { SetDefinition(value); return *this;} /** *

The application definition for this application. You can specify either * inline JSON or an S3 bucket location.

*/ inline UpdateApplicationRequest& WithDefinition(Definition&& value) { SetDefinition(std::move(value)); return *this;} /** *

The description of the application to update.

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

The description of the application to update.

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

The description of the application to update.

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

The description of the application to update.

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

The description of the application to update.

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

The description of the application to update.

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

The description of the application to update.

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

The description of the application to update.

*/ inline UpdateApplicationRequest& WithDescription(const char* value) { SetDescription(value); return *this;} private: Aws::String m_applicationId; bool m_applicationIdHasBeenSet = false; int m_currentApplicationVersion; bool m_currentApplicationVersionHasBeenSet = false; Definition m_definition; bool m_definitionHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; }; } // namespace Model } // namespace MainframeModernization } // namespace Aws