/** * 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 MigrationHub { namespace Model { /** */ class NotifyApplicationStateRequest : public MigrationHubRequest { public: AWS_MIGRATIONHUB_API NotifyApplicationStateRequest(); // 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 "NotifyApplicationState"; } AWS_MIGRATIONHUB_API Aws::String SerializePayload() const override; AWS_MIGRATIONHUB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The configurationId in Application Discovery Service that uniquely identifies * the grouped application.

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

The configurationId in Application Discovery Service that uniquely identifies * the grouped application.

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

The configurationId in Application Discovery Service that uniquely identifies * the grouped application.

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

The configurationId in Application Discovery Service that uniquely identifies * the grouped application.

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

The configurationId in Application Discovery Service that uniquely identifies * the grouped application.

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

The configurationId in Application Discovery Service that uniquely identifies * the grouped application.

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

The configurationId in Application Discovery Service that uniquely identifies * the grouped application.

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

The configurationId in Application Discovery Service that uniquely identifies * the grouped application.

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

Status of the application - Not Started, In-Progress, Complete.

*/ inline const ApplicationStatus& GetStatus() const{ return m_status; } /** *

Status of the application - Not Started, In-Progress, Complete.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

Status of the application - Not Started, In-Progress, Complete.

*/ inline void SetStatus(const ApplicationStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

Status of the application - Not Started, In-Progress, Complete.

*/ inline void SetStatus(ApplicationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

Status of the application - Not Started, In-Progress, Complete.

*/ inline NotifyApplicationStateRequest& WithStatus(const ApplicationStatus& value) { SetStatus(value); return *this;} /** *

Status of the application - Not Started, In-Progress, Complete.

*/ inline NotifyApplicationStateRequest& WithStatus(ApplicationStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The timestamp when the application state changed.

*/ inline const Aws::Utils::DateTime& GetUpdateDateTime() const{ return m_updateDateTime; } /** *

The timestamp when the application state changed.

*/ inline bool UpdateDateTimeHasBeenSet() const { return m_updateDateTimeHasBeenSet; } /** *

The timestamp when the application state changed.

*/ inline void SetUpdateDateTime(const Aws::Utils::DateTime& value) { m_updateDateTimeHasBeenSet = true; m_updateDateTime = value; } /** *

The timestamp when the application state changed.

*/ inline void SetUpdateDateTime(Aws::Utils::DateTime&& value) { m_updateDateTimeHasBeenSet = true; m_updateDateTime = std::move(value); } /** *

The timestamp when the application state changed.

*/ inline NotifyApplicationStateRequest& WithUpdateDateTime(const Aws::Utils::DateTime& value) { SetUpdateDateTime(value); return *this;} /** *

The timestamp when the application state changed.

*/ inline NotifyApplicationStateRequest& WithUpdateDateTime(Aws::Utils::DateTime&& value) { SetUpdateDateTime(std::move(value)); return *this;} /** *

Optional boolean flag to indicate whether any effect should take place. Used * to test if the caller has permission to make the call.

*/ inline bool GetDryRun() const{ return m_dryRun; } /** *

Optional boolean flag to indicate whether any effect should take place. Used * to test if the caller has permission to make the call.

*/ inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; } /** *

Optional boolean flag to indicate whether any effect should take place. Used * to test if the caller has permission to make the call.

*/ inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; } /** *

Optional boolean flag to indicate whether any effect should take place. Used * to test if the caller has permission to make the call.

*/ inline NotifyApplicationStateRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} private: Aws::String m_applicationId; bool m_applicationIdHasBeenSet = false; ApplicationStatus m_status; bool m_statusHasBeenSet = false; Aws::Utils::DateTime m_updateDateTime; bool m_updateDateTimeHasBeenSet = false; bool m_dryRun; bool m_dryRunHasBeenSet = false; }; } // namespace Model } // namespace MigrationHub } // namespace Aws