/** * 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 SSM { namespace Model { /** *

Describes an association status.

See Also:

AWS * API Reference

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

The date when the status changed.

*/ inline const Aws::Utils::DateTime& GetDate() const{ return m_date; } /** *

The date when the status changed.

*/ inline bool DateHasBeenSet() const { return m_dateHasBeenSet; } /** *

The date when the status changed.

*/ inline void SetDate(const Aws::Utils::DateTime& value) { m_dateHasBeenSet = true; m_date = value; } /** *

The date when the status changed.

*/ inline void SetDate(Aws::Utils::DateTime&& value) { m_dateHasBeenSet = true; m_date = std::move(value); } /** *

The date when the status changed.

*/ inline AssociationStatus& WithDate(const Aws::Utils::DateTime& value) { SetDate(value); return *this;} /** *

The date when the status changed.

*/ inline AssociationStatus& WithDate(Aws::Utils::DateTime&& value) { SetDate(std::move(value)); return *this;} /** *

The status.

*/ inline const AssociationStatusName& GetName() const{ return m_name; } /** *

The status.

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

The status.

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

The status.

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

The status.

*/ inline AssociationStatus& WithName(const AssociationStatusName& value) { SetName(value); return *this;} /** *

The status.

*/ inline AssociationStatus& WithName(AssociationStatusName&& value) { SetName(std::move(value)); return *this;} /** *

The reason for the status.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

The reason for the status.

*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

The reason for the status.

*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *

The reason for the status.

*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *

The reason for the status.

*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *

The reason for the status.

*/ inline AssociationStatus& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

The reason for the status.

*/ inline AssociationStatus& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

The reason for the status.

*/ inline AssociationStatus& WithMessage(const char* value) { SetMessage(value); return *this;} /** *

A user-defined string.

*/ inline const Aws::String& GetAdditionalInfo() const{ return m_additionalInfo; } /** *

A user-defined string.

*/ inline bool AdditionalInfoHasBeenSet() const { return m_additionalInfoHasBeenSet; } /** *

A user-defined string.

*/ inline void SetAdditionalInfo(const Aws::String& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo = value; } /** *

A user-defined string.

*/ inline void SetAdditionalInfo(Aws::String&& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo = std::move(value); } /** *

A user-defined string.

*/ inline void SetAdditionalInfo(const char* value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.assign(value); } /** *

A user-defined string.

*/ inline AssociationStatus& WithAdditionalInfo(const Aws::String& value) { SetAdditionalInfo(value); return *this;} /** *

A user-defined string.

*/ inline AssociationStatus& WithAdditionalInfo(Aws::String&& value) { SetAdditionalInfo(std::move(value)); return *this;} /** *

A user-defined string.

*/ inline AssociationStatus& WithAdditionalInfo(const char* value) { SetAdditionalInfo(value); return *this;} private: Aws::Utils::DateTime m_date; bool m_dateHasBeenSet = false; AssociationStatusName m_name; bool m_nameHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; Aws::String m_additionalInfo; bool m_additionalInfoHasBeenSet = false; }; } // namespace Model } // namespace SSM } // namespace Aws