7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/TransitGatewayAttachmentResourceType.h>
11#include <aws/ec2/model/TransitGatewayAssociationState.h>
51 template<
typename TransitGatewayRouteTableIdT = Aws::String>
52 void SetTransitGatewayRouteTableId(TransitGatewayRouteTableIdT&& value) { m_transitGatewayRouteTableIdHasBeenSet =
true; m_transitGatewayRouteTableId = std::forward<TransitGatewayRouteTableIdT>(value); }
53 template<
typename TransitGatewayRouteTableIdT = Aws::String>
63 template<
typename TransitGatewayAttachmentIdT = Aws::String>
64 void SetTransitGatewayAttachmentId(TransitGatewayAttachmentIdT&& value) { m_transitGatewayAttachmentIdHasBeenSet =
true; m_transitGatewayAttachmentId = std::forward<TransitGatewayAttachmentIdT>(value); }
65 template<
typename TransitGatewayAttachmentIdT = Aws::String>
75 template<
typename ResourceIdT = Aws::String>
76 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet =
true; m_resourceId = std::forward<ResourceIdT>(value); }
77 template<
typename ResourceIdT = Aws::String>
104 bool m_transitGatewayRouteTableIdHasBeenSet =
false;
107 bool m_transitGatewayAttachmentIdHasBeenSet =
false;
110 bool m_resourceIdHasBeenSet =
false;
113 bool m_resourceTypeHasBeenSet =
false;
116 bool m_stateHasBeenSet =
false;
TransitGatewayAssociation & WithTransitGatewayAttachmentId(TransitGatewayAttachmentIdT &&value)
void SetResourceType(TransitGatewayAttachmentResourceType value)
void SetState(TransitGatewayAssociationState value)
void SetTransitGatewayAttachmentId(TransitGatewayAttachmentIdT &&value)
const Aws::String & GetResourceId() const
bool StateHasBeenSet() const
TransitGatewayAssociation & WithTransitGatewayRouteTableId(TransitGatewayRouteTableIdT &&value)
const Aws::String & GetTransitGatewayRouteTableId() const
TransitGatewayAttachmentResourceType GetResourceType() const
AWS_EC2_API TransitGatewayAssociation()=default
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool TransitGatewayRouteTableIdHasBeenSet() const
void SetTransitGatewayRouteTableId(TransitGatewayRouteTableIdT &&value)
AWS_EC2_API TransitGatewayAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TransitGatewayAssociationState GetState() const
const Aws::String & GetTransitGatewayAttachmentId() const
TransitGatewayAssociation & WithResourceId(ResourceIdT &&value)
TransitGatewayAssociation & WithResourceType(TransitGatewayAttachmentResourceType value)
bool ResourceTypeHasBeenSet() const
bool TransitGatewayAttachmentIdHasBeenSet() const
TransitGatewayAssociation & WithState(TransitGatewayAssociationState value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool ResourceIdHasBeenSet() const
void SetResourceId(ResourceIdT &&value)
AWS_EC2_API TransitGatewayAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
TransitGatewayAssociationState
TransitGatewayAttachmentResourceType
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream