/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { class ReplaceRouteTableAssociationResponse { public: AWS_EC2_API ReplaceRouteTableAssociationResponse(); AWS_EC2_API ReplaceRouteTableAssociationResponse(const Aws::AmazonWebServiceResult& result); AWS_EC2_API ReplaceRouteTableAssociationResponse& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ID of the new association.

*/ inline const Aws::String& GetNewAssociationId() const{ return m_newAssociationId; } /** *

The ID of the new association.

*/ inline void SetNewAssociationId(const Aws::String& value) { m_newAssociationId = value; } /** *

The ID of the new association.

*/ inline void SetNewAssociationId(Aws::String&& value) { m_newAssociationId = std::move(value); } /** *

The ID of the new association.

*/ inline void SetNewAssociationId(const char* value) { m_newAssociationId.assign(value); } /** *

The ID of the new association.

*/ inline ReplaceRouteTableAssociationResponse& WithNewAssociationId(const Aws::String& value) { SetNewAssociationId(value); return *this;} /** *

The ID of the new association.

*/ inline ReplaceRouteTableAssociationResponse& WithNewAssociationId(Aws::String&& value) { SetNewAssociationId(std::move(value)); return *this;} /** *

The ID of the new association.

*/ inline ReplaceRouteTableAssociationResponse& WithNewAssociationId(const char* value) { SetNewAssociationId(value); return *this;} /** *

The state of the association.

*/ inline const RouteTableAssociationState& GetAssociationState() const{ return m_associationState; } /** *

The state of the association.

*/ inline void SetAssociationState(const RouteTableAssociationState& value) { m_associationState = value; } /** *

The state of the association.

*/ inline void SetAssociationState(RouteTableAssociationState&& value) { m_associationState = std::move(value); } /** *

The state of the association.

*/ inline ReplaceRouteTableAssociationResponse& WithAssociationState(const RouteTableAssociationState& value) { SetAssociationState(value); return *this;} /** *

The state of the association.

*/ inline ReplaceRouteTableAssociationResponse& WithAssociationState(RouteTableAssociationState&& value) { SetAssociationState(std::move(value)); return *this;} inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } inline ReplaceRouteTableAssociationResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline ReplaceRouteTableAssociationResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Aws::String m_newAssociationId; RouteTableAssociationState m_associationState; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace EC2 } // namespace Aws