/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace MigrationHub { namespace Model { /** *

The state of an application discovered through Migration Hub import, the AWS * Agentless Discovery Connector, or the AWS Application Discovery * Agent.

See Also:

AWS * API Reference

*/ class ApplicationState { public: AWS_MIGRATIONHUB_API ApplicationState(); AWS_MIGRATIONHUB_API ApplicationState(Aws::Utils::Json::JsonView jsonValue); AWS_MIGRATIONHUB_API ApplicationState& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_MIGRATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The configurationId from the Application Discovery Service that uniquely * identifies an application.

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

The configurationId from the Application Discovery Service that uniquely * identifies an application.

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

The configurationId from the Application Discovery Service that uniquely * identifies an application.

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

The configurationId from the Application Discovery Service that uniquely * identifies an application.

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

The configurationId from the Application Discovery Service that uniquely * identifies an application.

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

The configurationId from the Application Discovery Service that uniquely * identifies an application.

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

The configurationId from the Application Discovery Service that uniquely * identifies an application.

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

The configurationId from the Application Discovery Service that uniquely * identifies an application.

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

The current status of an application.

*/ inline const ApplicationStatus& GetApplicationStatus() const{ return m_applicationStatus; } /** *

The current status of an application.

*/ inline bool ApplicationStatusHasBeenSet() const { return m_applicationStatusHasBeenSet; } /** *

The current status of an application.

*/ inline void SetApplicationStatus(const ApplicationStatus& value) { m_applicationStatusHasBeenSet = true; m_applicationStatus = value; } /** *

The current status of an application.

*/ inline void SetApplicationStatus(ApplicationStatus&& value) { m_applicationStatusHasBeenSet = true; m_applicationStatus = std::move(value); } /** *

The current status of an application.

*/ inline ApplicationState& WithApplicationStatus(const ApplicationStatus& value) { SetApplicationStatus(value); return *this;} /** *

The current status of an application.

*/ inline ApplicationState& WithApplicationStatus(ApplicationStatus&& value) { SetApplicationStatus(std::move(value)); return *this;} /** *

The timestamp when the application status was last updated.

*/ inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; } /** *

The timestamp when the application status was last updated.

*/ inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; } /** *

The timestamp when the application status was last updated.

*/ inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; } /** *

The timestamp when the application status was last updated.

*/ inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); } /** *

The timestamp when the application status was last updated.

*/ inline ApplicationState& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;} /** *

The timestamp when the application status was last updated.

*/ inline ApplicationState& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;} private: Aws::String m_applicationId; bool m_applicationIdHasBeenSet = false; ApplicationStatus m_applicationStatus; bool m_applicationStatusHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedTime; bool m_lastUpdatedTimeHasBeenSet = false; }; } // namespace Model } // namespace MigrationHub } // namespace Aws