AWS SDK for C++  1.9.71
AWS SDK for C++
CreateTransitGatewayConnectRequestOptions.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 CreateTransitGatewayConnectRequestOptions& WithProtocol(const ProtocolValue& value) { SetProtocol(value); return *this;}
66 
70  inline CreateTransitGatewayConnectRequestOptions& 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::CreateTransitGatewayConnectRequestOptions::ProtocolHasBeenSet
bool ProtocolHasBeenSet() const
Definition: CreateTransitGatewayConnectRequestOptions.h:50
Aws::EC2::Model::CreateTransitGatewayConnectRequestOptions::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::CreateTransitGatewayConnectRequestOptions::GetProtocol
const ProtocolValue & GetProtocol() const
Definition: CreateTransitGatewayConnectRequestOptions.h:45
Aws::EC2::Model::CreateTransitGatewayConnectRequestOptions::WithProtocol
CreateTransitGatewayConnectRequestOptions & WithProtocol(ProtocolValue &&value)
Definition: CreateTransitGatewayConnectRequestOptions.h:70
Aws::EC2::Model::CreateTransitGatewayConnectRequestOptions::WithProtocol
CreateTransitGatewayConnectRequestOptions & WithProtocol(const ProtocolValue &value)
Definition: CreateTransitGatewayConnectRequestOptions.h:65
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
AWSStreamFwd.h
Aws::EC2::Model::CreateTransitGatewayConnectRequestOptions
Definition: CreateTransitGatewayConnectRequestOptions.h:32
Aws::EC2::Model::CreateTransitGatewayConnectRequestOptions::CreateTransitGatewayConnectRequestOptions
CreateTransitGatewayConnectRequestOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::CreateTransitGatewayConnectRequestOptions::CreateTransitGatewayConnectRequestOptions
CreateTransitGatewayConnectRequestOptions()
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::CreateTransitGatewayConnectRequestOptions::operator=
CreateTransitGatewayConnectRequestOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::CreateTransitGatewayConnectRequestOptions::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::ProtocolValue
ProtocolValue
Definition: ProtocolValue.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CreateTransitGatewayConnectRequestOptions::SetProtocol
void SetProtocol(ProtocolValue &&value)
Definition: CreateTransitGatewayConnectRequestOptions.h:60
Aws::EC2::Model::CreateTransitGatewayConnectRequestOptions::SetProtocol
void SetProtocol(const ProtocolValue &value)
Definition: CreateTransitGatewayConnectRequestOptions.h:55
ProtocolValue.h
index
int index
Definition: cJSON.h:181
EC2_EXPORTS.h