AWS SDK for C++  1.9.72
AWS SDK for C++
AssociatedTargetNetwork.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
47  inline const Aws::String& GetNetworkId() const{ return m_networkId; }
48 
52  inline bool NetworkIdHasBeenSet() const { return m_networkIdHasBeenSet; }
53 
57  inline void SetNetworkId(const Aws::String& value) { m_networkIdHasBeenSet = true; m_networkId = value; }
58 
62  inline void SetNetworkId(Aws::String&& value) { m_networkIdHasBeenSet = true; m_networkId = std::move(value); }
63 
67  inline void SetNetworkId(const char* value) { m_networkIdHasBeenSet = true; m_networkId.assign(value); }
68 
72  inline AssociatedTargetNetwork& WithNetworkId(const Aws::String& value) { SetNetworkId(value); return *this;}
73 
77  inline AssociatedTargetNetwork& WithNetworkId(Aws::String&& value) { SetNetworkId(std::move(value)); return *this;}
78 
82  inline AssociatedTargetNetwork& WithNetworkId(const char* value) { SetNetworkId(value); return *this;}
83 
84 
88  inline const AssociatedNetworkType& GetNetworkType() const{ return m_networkType; }
89 
93  inline bool NetworkTypeHasBeenSet() const { return m_networkTypeHasBeenSet; }
94 
98  inline void SetNetworkType(const AssociatedNetworkType& value) { m_networkTypeHasBeenSet = true; m_networkType = value; }
99 
103  inline void SetNetworkType(AssociatedNetworkType&& value) { m_networkTypeHasBeenSet = true; m_networkType = std::move(value); }
104 
108  inline AssociatedTargetNetwork& WithNetworkType(const AssociatedNetworkType& value) { SetNetworkType(value); return *this;}
109 
113  inline AssociatedTargetNetwork& WithNetworkType(AssociatedNetworkType&& value) { SetNetworkType(std::move(value)); return *this;}
114 
115  private:
116 
117  Aws::String m_networkId;
118  bool m_networkIdHasBeenSet;
119 
120  AssociatedNetworkType m_networkType;
121  bool m_networkTypeHasBeenSet;
122  };
123 
124 } // namespace Model
125 } // namespace EC2
126 } // namespace Aws
Aws::EC2::Model::AssociatedTargetNetwork::SetNetworkType
void SetNetworkType(AssociatedNetworkType &&value)
Definition: AssociatedTargetNetwork.h:103
Aws::EC2::Model::AssociatedTargetNetwork::AssociatedTargetNetwork
AssociatedTargetNetwork()
Aws::EC2::Model::AssociatedTargetNetwork
Definition: AssociatedTargetNetwork.h:34
Aws::EC2::Model::AssociatedTargetNetwork::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
AWSStreamFwd.h
AssociatedNetworkType.h
Aws::EC2::Model::AssociatedTargetNetwork::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::AssociatedTargetNetwork::AssociatedTargetNetwork
AssociatedTargetNetwork(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::AssociatedTargetNetwork::SetNetworkType
void SetNetworkType(const AssociatedNetworkType &value)
Definition: AssociatedTargetNetwork.h:98
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::AssociatedTargetNetwork::WithNetworkId
AssociatedTargetNetwork & WithNetworkId(Aws::String &&value)
Definition: AssociatedTargetNetwork.h:77
Aws::EC2::Model::AssociatedTargetNetwork::WithNetworkId
AssociatedTargetNetwork & WithNetworkId(const Aws::String &value)
Definition: AssociatedTargetNetwork.h:72
Aws::EC2::Model::AssociatedTargetNetwork::SetNetworkId
void SetNetworkId(const Aws::String &value)
Definition: AssociatedTargetNetwork.h:57
Aws::EC2::Model::AssociatedTargetNetwork::GetNetworkId
const Aws::String & GetNetworkId() const
Definition: AssociatedTargetNetwork.h:47
AWSString.h
Aws::EC2::Model::AssociatedTargetNetwork::SetNetworkId
void SetNetworkId(Aws::String &&value)
Definition: AssociatedTargetNetwork.h:62
Aws::EC2::Model::AssociatedTargetNetwork::WithNetworkType
AssociatedTargetNetwork & WithNetworkType(AssociatedNetworkType &&value)
Definition: AssociatedTargetNetwork.h:113
Aws::EC2::Model::AssociatedNetworkType
AssociatedNetworkType
Definition: AssociatedNetworkType.h:17
Aws::EC2::Model::AssociatedTargetNetwork::WithNetworkId
AssociatedTargetNetwork & WithNetworkId(const char *value)
Definition: AssociatedTargetNetwork.h:82
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::AssociatedTargetNetwork::NetworkIdHasBeenSet
bool NetworkIdHasBeenSet() const
Definition: AssociatedTargetNetwork.h:52
Aws::EC2::Model::AssociatedTargetNetwork::NetworkTypeHasBeenSet
bool NetworkTypeHasBeenSet() const
Definition: AssociatedTargetNetwork.h:93
Aws::EC2::Model::AssociatedTargetNetwork::operator=
AssociatedTargetNetwork & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::AssociatedTargetNetwork::GetNetworkType
const AssociatedNetworkType & GetNetworkType() const
Definition: AssociatedTargetNetwork.h:88
Aws::EC2::Model::AssociatedTargetNetwork::SetNetworkId
void SetNetworkId(const char *value)
Definition: AssociatedTargetNetwork.h:67
Aws::EC2::Model::AssociatedTargetNetwork::WithNetworkType
AssociatedTargetNetwork & WithNetworkType(const AssociatedNetworkType &value)
Definition: AssociatedTargetNetwork.h:108
EC2_EXPORTS.h