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

Describes the state of an association between a route table and a subnet or * gateway.

See Also:

AWS * API Reference

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

The state of the association.

*/ inline const Aws::String& GetState() const{ return m_state; } /** *

The state of the association.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The state of the association.

*/ inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The state of the association.

*/ inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The state of the association.

*/ inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); } /** *

The state of the association.

*/ inline AssociationStateDetails& WithState(const Aws::String& value) { SetState(value); return *this;} /** *

The state of the association.

*/ inline AssociationStateDetails& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;} /** *

The state of the association.

*/ inline AssociationStateDetails& WithState(const char* value) { SetState(value); return *this;} /** *

The status message, if applicable.

*/ inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; } /** *

The status message, if applicable.

*/ inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; } /** *

The status message, if applicable.

*/ inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; } /** *

The status message, if applicable.

*/ inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); } /** *

The status message, if applicable.

*/ inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); } /** *

The status message, if applicable.

*/ inline AssociationStateDetails& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;} /** *

The status message, if applicable.

*/ inline AssociationStateDetails& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;} /** *

The status message, if applicable.

*/ inline AssociationStateDetails& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;} private: Aws::String m_state; bool m_stateHasBeenSet = false; Aws::String m_statusMessage; bool m_statusMessageHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws