7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/TransitGatewayAttachmentResourceType.h>
44 template <
typename SourceTransitGatewayAttachmentIdT = Aws::String>
46 m_sourceTransitGatewayAttachmentIdHasBeenSet =
true;
47 m_sourceTransitGatewayAttachmentId = std::forward<SourceTransitGatewayAttachmentIdT>(value);
49 template <
typename SourceTransitGatewayAttachmentIdT = Aws::String>
65 m_sourceTransitGatewayAttachmentTypeHasBeenSet =
true;
66 m_sourceTransitGatewayAttachmentType = value;
80 template <
typename SourceC
idrBlockT = Aws::String>
82 m_sourceCidrBlockHasBeenSet =
true;
83 m_sourceCidrBlock = std::forward<SourceCidrBlockT>(value);
85 template <
typename SourceC
idrBlockT = Aws::String>
98 template <
typename SourcePortRangeT = Aws::String>
100 m_sourcePortRangeHasBeenSet =
true;
101 m_sourcePortRange = std::forward<SourcePortRangeT>(value);
103 template <
typename SourcePortRangeT = Aws::String>
116 template <
typename DestinationTransitGatewayAttachmentIdT = Aws::String>
118 m_destinationTransitGatewayAttachmentIdHasBeenSet =
true;
119 m_destinationTransitGatewayAttachmentId = std::forward<DestinationTransitGatewayAttachmentIdT>(value);
121 template <
typename DestinationTransitGatewayAttachmentIdT = Aws::String>
135 return m_destinationTransitGatewayAttachmentType;
139 m_destinationTransitGatewayAttachmentTypeHasBeenSet =
true;
140 m_destinationTransitGatewayAttachmentType = value;
154 template <
typename DestinationC
idrBlockT = Aws::String>
156 m_destinationCidrBlockHasBeenSet =
true;
157 m_destinationCidrBlock = std::forward<DestinationCidrBlockT>(value);
159 template <
typename DestinationC
idrBlockT = Aws::String>
172 template <
typename DestinationPortRangeT = Aws::String>
174 m_destinationPortRangeHasBeenSet =
true;
175 m_destinationPortRange = std::forward<DestinationPortRangeT>(value);
177 template <
typename DestinationPortRangeT = Aws::String>
190 template <
typename ProtocolT = Aws::String>
192 m_protocolHasBeenSet =
true;
193 m_protocol = std::forward<ProtocolT>(value);
195 template <
typename ProtocolT = Aws::String>
210 Aws::String m_destinationTransitGatewayAttachmentId;
219 bool m_sourceTransitGatewayAttachmentIdHasBeenSet =
false;
220 bool m_sourceTransitGatewayAttachmentTypeHasBeenSet =
false;
221 bool m_sourceCidrBlockHasBeenSet =
false;
222 bool m_sourcePortRangeHasBeenSet =
false;
223 bool m_destinationTransitGatewayAttachmentIdHasBeenSet =
false;
224 bool m_destinationTransitGatewayAttachmentTypeHasBeenSet =
false;
225 bool m_destinationCidrBlockHasBeenSet =
false;
226 bool m_destinationPortRangeHasBeenSet =
false;
227 bool m_protocolHasBeenSet =
false;
AWS_EC2_API TransitGatewayMeteringPolicyRule()=default
TransitGatewayMeteringPolicyRule & WithSourcePortRange(SourcePortRangeT &&value)
bool DestinationPortRangeHasBeenSet() const
const Aws::String & GetSourceTransitGatewayAttachmentId() const
TransitGatewayMeteringPolicyRule & WithDestinationTransitGatewayAttachmentId(DestinationTransitGatewayAttachmentIdT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetSourceTransitGatewayAttachmentId(SourceTransitGatewayAttachmentIdT &&value)
bool SourceTransitGatewayAttachmentTypeHasBeenSet() const
TransitGatewayAttachmentResourceType GetSourceTransitGatewayAttachmentType() const
const Aws::String & GetDestinationTransitGatewayAttachmentId() const
TransitGatewayMeteringPolicyRule & WithSourceTransitGatewayAttachmentType(TransitGatewayAttachmentResourceType value)
const Aws::String & GetProtocol() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetSourceCidrBlock() const
void SetProtocol(ProtocolT &&value)
TransitGatewayMeteringPolicyRule & WithDestinationCidrBlock(DestinationCidrBlockT &&value)
void SetDestinationTransitGatewayAttachmentId(DestinationTransitGatewayAttachmentIdT &&value)
bool ProtocolHasBeenSet() const
void SetSourceTransitGatewayAttachmentType(TransitGatewayAttachmentResourceType value)
TransitGatewayMeteringPolicyRule & WithSourceTransitGatewayAttachmentId(SourceTransitGatewayAttachmentIdT &&value)
void SetSourceCidrBlock(SourceCidrBlockT &&value)
AWS_EC2_API TransitGatewayMeteringPolicyRule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool SourcePortRangeHasBeenSet() const
const Aws::String & GetSourcePortRange() const
const Aws::String & GetDestinationCidrBlock() const
void SetDestinationTransitGatewayAttachmentType(TransitGatewayAttachmentResourceType value)
TransitGatewayMeteringPolicyRule & WithProtocol(ProtocolT &&value)
bool SourceCidrBlockHasBeenSet() const
void SetDestinationCidrBlock(DestinationCidrBlockT &&value)
TransitGatewayAttachmentResourceType GetDestinationTransitGatewayAttachmentType() const
TransitGatewayMeteringPolicyRule & WithDestinationTransitGatewayAttachmentType(TransitGatewayAttachmentResourceType value)
void SetDestinationPortRange(DestinationPortRangeT &&value)
bool DestinationCidrBlockHasBeenSet() const
const Aws::String & GetDestinationPortRange() const
AWS_EC2_API TransitGatewayMeteringPolicyRule(const Aws::Utils::Xml::XmlNode &xmlNode)
TransitGatewayMeteringPolicyRule & WithDestinationPortRange(DestinationPortRangeT &&value)
void SetSourcePortRange(SourcePortRangeT &&value)
TransitGatewayMeteringPolicyRule & WithSourceCidrBlock(SourceCidrBlockT &&value)
bool DestinationTransitGatewayAttachmentTypeHasBeenSet() const
bool DestinationTransitGatewayAttachmentIdHasBeenSet() const
bool SourceTransitGatewayAttachmentIdHasBeenSet() const
TransitGatewayAttachmentResourceType
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream