/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes the state of an association between a route table and a subnet or
* gateway.See Also:
AWS
* API Reference
The state of the association.
*/ inline const RouteTableAssociationStateCode& 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 RouteTableAssociationStateCode& value) { m_stateHasBeenSet = true; m_state = value; } /** *The state of the association.
*/ inline void SetState(RouteTableAssociationStateCode&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *The state of the association.
*/ inline RouteTableAssociationState& WithState(const RouteTableAssociationStateCode& value) { SetState(value); return *this;} /** *The state of the association.
*/ inline RouteTableAssociationState& WithState(RouteTableAssociationStateCode&& value) { SetState(std::move(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 RouteTableAssociationState& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;} /** *The status message, if applicable.
*/ inline RouteTableAssociationState& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;} /** *The status message, if applicable.
*/ inline RouteTableAssociationState& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;} private: RouteTableAssociationStateCode m_state; bool m_stateHasBeenSet = false; Aws::String m_statusMessage; bool m_statusMessageHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws