AWS SDK for C++  1.9.129
AWS SDK for C++
VpcDestinationProperties.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace IoT
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
46 
50  inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
51 
55  inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
56 
60  inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
61 
65  inline VpcDestinationProperties& WithSubnetIds(const Aws::Vector<Aws::String>& value) { SetSubnetIds(value); return *this;}
66 
70  inline VpcDestinationProperties& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
71 
75  inline VpcDestinationProperties& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
76 
80  inline VpcDestinationProperties& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
81 
85  inline VpcDestinationProperties& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
86 
87 
91  inline const Aws::Vector<Aws::String>& GetSecurityGroups() const{ return m_securityGroups; }
92 
96  inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
97 
101  inline void SetSecurityGroups(const Aws::Vector<Aws::String>& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = value; }
102 
106  inline void SetSecurityGroups(Aws::Vector<Aws::String>&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::move(value); }
107 
111  inline VpcDestinationProperties& WithSecurityGroups(const Aws::Vector<Aws::String>& value) { SetSecurityGroups(value); return *this;}
112 
116  inline VpcDestinationProperties& WithSecurityGroups(Aws::Vector<Aws::String>&& value) { SetSecurityGroups(std::move(value)); return *this;}
117 
121  inline VpcDestinationProperties& AddSecurityGroups(const Aws::String& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
122 
126  inline VpcDestinationProperties& AddSecurityGroups(Aws::String&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(std::move(value)); return *this; }
127 
131  inline VpcDestinationProperties& AddSecurityGroups(const char* value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
132 
133 
137  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
138 
142  inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
143 
147  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
148 
152  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
153 
157  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
158 
162  inline VpcDestinationProperties& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
163 
167  inline VpcDestinationProperties& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
168 
172  inline VpcDestinationProperties& WithVpcId(const char* value) { SetVpcId(value); return *this;}
173 
174 
179  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
180 
185  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
186 
191  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
192 
197  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
198 
203  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
204 
209  inline VpcDestinationProperties& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
210 
215  inline VpcDestinationProperties& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
216 
221  inline VpcDestinationProperties& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
222 
223  private:
224 
225  Aws::Vector<Aws::String> m_subnetIds;
226  bool m_subnetIdsHasBeenSet;
227 
228  Aws::Vector<Aws::String> m_securityGroups;
229  bool m_securityGroupsHasBeenSet;
230 
231  Aws::String m_vpcId;
232  bool m_vpcIdHasBeenSet;
233 
234  Aws::String m_roleArn;
235  bool m_roleArnHasBeenSet;
236  };
237 
238 } // namespace Model
239 } // namespace IoT
240 } // namespace Aws
Aws::IoT::Model::VpcDestinationProperties::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::VpcDestinationProperties::SetVpcId
void SetVpcId(const char *value)
Definition: VpcDestinationProperties.h:157
Aws::IoT::Model::VpcDestinationProperties::WithSecurityGroups
VpcDestinationProperties & WithSecurityGroups(Aws::Vector< Aws::String > &&value)
Definition: VpcDestinationProperties.h:116
Aws::IoT::Model::VpcDestinationProperties::SetRoleArn
void SetRoleArn(const char *value)
Definition: VpcDestinationProperties.h:203
Aws::IoT::Model::VpcDestinationProperties::SecurityGroupsHasBeenSet
bool SecurityGroupsHasBeenSet() const
Definition: VpcDestinationProperties.h:96
Aws::IoT::Model::VpcDestinationProperties::AddSecurityGroups
VpcDestinationProperties & AddSecurityGroups(const Aws::String &value)
Definition: VpcDestinationProperties.h:121
Aws::IoT::Model::VpcDestinationProperties::WithSecurityGroups
VpcDestinationProperties & WithSecurityGroups(const Aws::Vector< Aws::String > &value)
Definition: VpcDestinationProperties.h:111
Aws::IoT::Model::VpcDestinationProperties::WithRoleArn
VpcDestinationProperties & WithRoleArn(const char *value)
Definition: VpcDestinationProperties.h:221
Aws::IoT::Model::VpcDestinationProperties::WithRoleArn
VpcDestinationProperties & WithRoleArn(const Aws::String &value)
Definition: VpcDestinationProperties.h:209
Aws::IoT::Model::VpcDestinationProperties::GetSecurityGroups
const Aws::Vector< Aws::String > & GetSecurityGroups() const
Definition: VpcDestinationProperties.h:91
Aws::IoT::Model::VpcDestinationProperties::SetSecurityGroups
void SetSecurityGroups(const Aws::Vector< Aws::String > &value)
Definition: VpcDestinationProperties.h:101
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IoT::Model::VpcDestinationProperties::WithVpcId
VpcDestinationProperties & WithVpcId(Aws::String &&value)
Definition: VpcDestinationProperties.h:167
Aws::IoT::Model::VpcDestinationProperties::RoleArnHasBeenSet
bool RoleArnHasBeenSet() const
Definition: VpcDestinationProperties.h:185
Aws::IoT::Model::VpcDestinationProperties::WithVpcId
VpcDestinationProperties & WithVpcId(const Aws::String &value)
Definition: VpcDestinationProperties.h:162
AWSVector.h
Aws::IoT::Model::VpcDestinationProperties::VpcIdHasBeenSet
bool VpcIdHasBeenSet() const
Definition: VpcDestinationProperties.h:142
Aws::IoT::Model::VpcDestinationProperties::GetRoleArn
const Aws::String & GetRoleArn() const
Definition: VpcDestinationProperties.h:179
Aws::IoT::Model::VpcDestinationProperties::SetSubnetIds
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
Definition: VpcDestinationProperties.h:55
Aws::IoT::Model::VpcDestinationProperties::SetVpcId
void SetVpcId(Aws::String &&value)
Definition: VpcDestinationProperties.h:152
Aws::IoT::Model::VpcDestinationProperties::WithSubnetIds
VpcDestinationProperties & WithSubnetIds(Aws::Vector< Aws::String > &&value)
Definition: VpcDestinationProperties.h:70
Aws::IoT::Model::VpcDestinationProperties::GetVpcId
const Aws::String & GetVpcId() const
Definition: VpcDestinationProperties.h:137
Aws::IoT::Model::VpcDestinationProperties::SubnetIdsHasBeenSet
bool SubnetIdsHasBeenSet() const
Definition: VpcDestinationProperties.h:50
Aws::IoT::Model::VpcDestinationProperties::SetRoleArn
void SetRoleArn(const Aws::String &value)
Definition: VpcDestinationProperties.h:191
Aws::IoT::Model::VpcDestinationProperties::SetSubnetIds
void SetSubnetIds(Aws::Vector< Aws::String > &&value)
Definition: VpcDestinationProperties.h:60
Aws::IoT::Model::VpcDestinationProperties::WithSubnetIds
VpcDestinationProperties & WithSubnetIds(const Aws::Vector< Aws::String > &value)
Definition: VpcDestinationProperties.h:65
Aws::IoT::Model::VpcDestinationProperties::AddSubnetIds
VpcDestinationProperties & AddSubnetIds(const Aws::String &value)
Definition: VpcDestinationProperties.h:75
Aws::IoT::Model::VpcDestinationProperties::operator=
VpcDestinationProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::VpcDestinationProperties::SetSecurityGroups
void SetSecurityGroups(Aws::Vector< Aws::String > &&value)
Definition: VpcDestinationProperties.h:106
Aws::IoT::Model::VpcDestinationProperties::AddSecurityGroups
VpcDestinationProperties & AddSecurityGroups(Aws::String &&value)
Definition: VpcDestinationProperties.h:126
Aws::IoT::Model::VpcDestinationProperties::WithVpcId
VpcDestinationProperties & WithVpcId(const char *value)
Definition: VpcDestinationProperties.h:172
Aws::IoT::Model::VpcDestinationProperties::SetRoleArn
void SetRoleArn(Aws::String &&value)
Definition: VpcDestinationProperties.h:197
Aws::IoT::Model::VpcDestinationProperties::VpcDestinationProperties
VpcDestinationProperties()
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::VpcDestinationProperties::SetVpcId
void SetVpcId(const Aws::String &value)
Definition: VpcDestinationProperties.h:147
Aws::IoT::Model::VpcDestinationProperties::VpcDestinationProperties
VpcDestinationProperties(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::VpcDestinationProperties::AddSubnetIds
VpcDestinationProperties & AddSubnetIds(const char *value)
Definition: VpcDestinationProperties.h:85
Aws::IoT::Model::VpcDestinationProperties::GetSubnetIds
const Aws::Vector< Aws::String > & GetSubnetIds() const
Definition: VpcDestinationProperties.h:45
Aws::IoT::Model::VpcDestinationProperties::AddSecurityGroups
VpcDestinationProperties & AddSecurityGroups(const char *value)
Definition: VpcDestinationProperties.h:131
Aws::IoT::Model::VpcDestinationProperties::WithRoleArn
VpcDestinationProperties & WithRoleArn(Aws::String &&value)
Definition: VpcDestinationProperties.h:215
Aws::IoT::Model::VpcDestinationProperties
Definition: VpcDestinationProperties.h:34
IoT_EXPORTS.h
Aws::IoT::Model::VpcDestinationProperties::AddSubnetIds
VpcDestinationProperties & AddSubnetIds(Aws::String &&value)
Definition: VpcDestinationProperties.h:80