/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ECS { namespace Model { /** *

An object representing a change in state for a managed agent.

See * Also:

AWS * API Reference

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

The name of the container that's associated with the managed agent.

*/ inline const Aws::String& GetContainerName() const{ return m_containerName; } /** *

The name of the container that's associated with the managed agent.

*/ inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; } /** *

The name of the container that's associated with the managed agent.

*/ inline void SetContainerName(const Aws::String& value) { m_containerNameHasBeenSet = true; m_containerName = value; } /** *

The name of the container that's associated with the managed agent.

*/ inline void SetContainerName(Aws::String&& value) { m_containerNameHasBeenSet = true; m_containerName = std::move(value); } /** *

The name of the container that's associated with the managed agent.

*/ inline void SetContainerName(const char* value) { m_containerNameHasBeenSet = true; m_containerName.assign(value); } /** *

The name of the container that's associated with the managed agent.

*/ inline ManagedAgentStateChange& WithContainerName(const Aws::String& value) { SetContainerName(value); return *this;} /** *

The name of the container that's associated with the managed agent.

*/ inline ManagedAgentStateChange& WithContainerName(Aws::String&& value) { SetContainerName(std::move(value)); return *this;} /** *

The name of the container that's associated with the managed agent.

*/ inline ManagedAgentStateChange& WithContainerName(const char* value) { SetContainerName(value); return *this;} /** *

The name of the managed agent.

*/ inline const ManagedAgentName& GetManagedAgentName() const{ return m_managedAgentName; } /** *

The name of the managed agent.

*/ inline bool ManagedAgentNameHasBeenSet() const { return m_managedAgentNameHasBeenSet; } /** *

The name of the managed agent.

*/ inline void SetManagedAgentName(const ManagedAgentName& value) { m_managedAgentNameHasBeenSet = true; m_managedAgentName = value; } /** *

The name of the managed agent.

*/ inline void SetManagedAgentName(ManagedAgentName&& value) { m_managedAgentNameHasBeenSet = true; m_managedAgentName = std::move(value); } /** *

The name of the managed agent.

*/ inline ManagedAgentStateChange& WithManagedAgentName(const ManagedAgentName& value) { SetManagedAgentName(value); return *this;} /** *

The name of the managed agent.

*/ inline ManagedAgentStateChange& WithManagedAgentName(ManagedAgentName&& value) { SetManagedAgentName(std::move(value)); return *this;} /** *

The status of the managed agent.

*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *

The status of the managed agent.

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

The status of the managed agent.

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

The status of the managed agent.

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

The status of the managed agent.

*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *

The status of the managed agent.

*/ inline ManagedAgentStateChange& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *

The status of the managed agent.

*/ inline ManagedAgentStateChange& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *

The status of the managed agent.

*/ inline ManagedAgentStateChange& WithStatus(const char* value) { SetStatus(value); return *this;} /** *

The reason for the status of the managed agent.

*/ inline const Aws::String& GetReason() const{ return m_reason; } /** *

The reason for the status of the managed agent.

*/ inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; } /** *

The reason for the status of the managed agent.

*/ inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; } /** *

The reason for the status of the managed agent.

*/ inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); } /** *

The reason for the status of the managed agent.

*/ inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); } /** *

The reason for the status of the managed agent.

*/ inline ManagedAgentStateChange& WithReason(const Aws::String& value) { SetReason(value); return *this;} /** *

The reason for the status of the managed agent.

*/ inline ManagedAgentStateChange& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;} /** *

The reason for the status of the managed agent.

*/ inline ManagedAgentStateChange& WithReason(const char* value) { SetReason(value); return *this;} private: Aws::String m_containerName; bool m_containerNameHasBeenSet = false; ManagedAgentName m_managedAgentName; bool m_managedAgentNameHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; Aws::String m_reason; bool m_reasonHasBeenSet = false; }; } // namespace Model } // namespace ECS } // namespace Aws