AWS SDK for C++  1.9.71
AWS SDK for C++
TransitGatewayConnectOptions.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace EC2
22 {
23 namespace Model
24 {
25 
32  {
33  public:
37 
38  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39  void OutputToStream(Aws::OStream& oStream, const char* location) const;
40 
41 
45  inline const ProtocolValue& GetProtocol() const{ return m_protocol; }
46 
50  inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
51 
55  inline void SetProtocol(const ProtocolValue& value) { m_protocolHasBeenSet = true; m_protocol = value; }
56 
60  inline void SetProtocol(ProtocolValue&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
61 
65  inline TransitGatewayConnectOptions& WithProtocol(const ProtocolValue& value) { SetProtocol(value); return *this;}
66 
70  inline TransitGatewayConnectOptions& WithProtocol(ProtocolValue&& value) { SetProtocol(std::move(value)); return *this;}
71 
72  private:
73 
74  ProtocolValue m_protocol;
75  bool m_protocolHasBeenSet;
76  };
77 
78 } // namespace Model
79 } // namespace EC2
80 } // namespace Aws
Aws::EC2::Model::TransitGatewayConnectOptions::WithProtocol
TransitGatewayConnectOptions & WithProtocol(ProtocolValue &&value)
Definition: TransitGatewayConnectOptions.h:70
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::TransitGatewayConnectOptions::ProtocolHasBeenSet
bool ProtocolHasBeenSet() const
Definition: TransitGatewayConnectOptions.h:50
Aws::EC2::Model::TransitGatewayConnectOptions::SetProtocol
void SetProtocol(ProtocolValue &&value)
Definition: TransitGatewayConnectOptions.h:60
AWSStreamFwd.h
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::TransitGatewayConnectOptions::SetProtocol
void SetProtocol(const ProtocolValue &value)
Definition: TransitGatewayConnectOptions.h:55
Aws::EC2::Model::TransitGatewayConnectOptions::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::TransitGatewayConnectOptions::operator=
TransitGatewayConnectOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ProtocolValue
ProtocolValue
Definition: ProtocolValue.h:17
Aws::EC2::Model::TransitGatewayConnectOptions::GetProtocol
const ProtocolValue & GetProtocol() const
Definition: TransitGatewayConnectOptions.h:45
Aws::EC2::Model::TransitGatewayConnectOptions::TransitGatewayConnectOptions
TransitGatewayConnectOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::TransitGatewayConnectOptions::TransitGatewayConnectOptions
TransitGatewayConnectOptions()
ProtocolValue.h
Aws::EC2::Model::TransitGatewayConnectOptions
Definition: TransitGatewayConnectOptions.h:32
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::TransitGatewayConnectOptions::WithProtocol
TransitGatewayConnectOptions & WithProtocol(const ProtocolValue &value)
Definition: TransitGatewayConnectOptions.h:65
EC2_EXPORTS.h
Aws::EC2::Model::TransitGatewayConnectOptions::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const