AWS SDK for C++  1.9.160
AWS SDK for C++
Ec2Config.h
Go to the documentation of this file.
1 
6 #pragma once
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 DataSync
23 {
24 namespace Model
25 {
26 
37  {
38  public:
43 
44 
49  inline const Aws::String& GetSubnetArn() const{ return m_subnetArn; }
50 
55  inline bool SubnetArnHasBeenSet() const { return m_subnetArnHasBeenSet; }
56 
61  inline void SetSubnetArn(const Aws::String& value) { m_subnetArnHasBeenSet = true; m_subnetArn = value; }
62 
67  inline void SetSubnetArn(Aws::String&& value) { m_subnetArnHasBeenSet = true; m_subnetArn = std::move(value); }
68 
73  inline void SetSubnetArn(const char* value) { m_subnetArnHasBeenSet = true; m_subnetArn.assign(value); }
74 
79  inline Ec2Config& WithSubnetArn(const Aws::String& value) { SetSubnetArn(value); return *this;}
80 
85  inline Ec2Config& WithSubnetArn(Aws::String&& value) { SetSubnetArn(std::move(value)); return *this;}
86 
91  inline Ec2Config& WithSubnetArn(const char* value) { SetSubnetArn(value); return *this;}
92 
93 
98  inline const Aws::Vector<Aws::String>& GetSecurityGroupArns() const{ return m_securityGroupArns; }
99 
104  inline bool SecurityGroupArnsHasBeenSet() const { return m_securityGroupArnsHasBeenSet; }
105 
110  inline void SetSecurityGroupArns(const Aws::Vector<Aws::String>& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns = value; }
111 
116  inline void SetSecurityGroupArns(Aws::Vector<Aws::String>&& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns = std::move(value); }
117 
122  inline Ec2Config& WithSecurityGroupArns(const Aws::Vector<Aws::String>& value) { SetSecurityGroupArns(value); return *this;}
123 
128  inline Ec2Config& WithSecurityGroupArns(Aws::Vector<Aws::String>&& value) { SetSecurityGroupArns(std::move(value)); return *this;}
129 
134  inline Ec2Config& AddSecurityGroupArns(const Aws::String& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.push_back(value); return *this; }
135 
140  inline Ec2Config& AddSecurityGroupArns(Aws::String&& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.push_back(std::move(value)); return *this; }
141 
146  inline Ec2Config& AddSecurityGroupArns(const char* value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.push_back(value); return *this; }
147 
148  private:
149 
150  Aws::String m_subnetArn;
151  bool m_subnetArnHasBeenSet;
152 
153  Aws::Vector<Aws::String> m_securityGroupArns;
154  bool m_securityGroupArnsHasBeenSet;
155  };
156 
157 } // namespace Model
158 } // namespace DataSync
159 } // namespace Aws
Aws::DataSync::Model::Ec2Config::AddSecurityGroupArns
Ec2Config & AddSecurityGroupArns(const Aws::String &value)
Definition: Ec2Config.h:134
AWS_DATASYNC_API
#define AWS_DATASYNC_API
Definition: DataSync_EXPORTS.h:28
Aws::DataSync::Model::Ec2Config::WithSubnetArn
Ec2Config & WithSubnetArn(Aws::String &&value)
Definition: Ec2Config.h:85
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::DataSync::Model::Ec2Config::AddSecurityGroupArns
Ec2Config & AddSecurityGroupArns(const char *value)
Definition: Ec2Config.h:146
Aws::DataSync::Model::Ec2Config::SetSecurityGroupArns
void SetSecurityGroupArns(Aws::Vector< Aws::String > &&value)
Definition: Ec2Config.h:116
AWSVector.h
Aws::DataSync::Model::Ec2Config::SetSubnetArn
void SetSubnetArn(Aws::String &&value)
Definition: Ec2Config.h:67
Aws::DataSync::Model::Ec2Config::WithSubnetArn
Ec2Config & WithSubnetArn(const Aws::String &value)
Definition: Ec2Config.h:79
Aws::DataSync::Model::Ec2Config::SetSecurityGroupArns
void SetSecurityGroupArns(const Aws::Vector< Aws::String > &value)
Definition: Ec2Config.h:110
Aws::DataSync::Model::Ec2Config::AddSecurityGroupArns
Ec2Config & AddSecurityGroupArns(Aws::String &&value)
Definition: Ec2Config.h:140
Aws::DataSync::Model::Ec2Config::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::DataSync::Model::Ec2Config::GetSecurityGroupArns
const Aws::Vector< Aws::String > & GetSecurityGroupArns() const
Definition: Ec2Config.h:98
Aws::DataSync::Model::Ec2Config::WithSubnetArn
Ec2Config & WithSubnetArn(const char *value)
Definition: Ec2Config.h:91
Aws::DataSync::Model::Ec2Config::GetSubnetArn
const Aws::String & GetSubnetArn() const
Definition: Ec2Config.h:49
Aws::DataSync::Model::Ec2Config::Ec2Config
Ec2Config(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::DataSync::Model::Ec2Config::SetSubnetArn
void SetSubnetArn(const Aws::String &value)
Definition: Ec2Config.h:61
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
DataSync_EXPORTS.h
Aws::DataSync::Model::Ec2Config::operator=
Ec2Config & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::DataSync::Model::Ec2Config::WithSecurityGroupArns
Ec2Config & WithSecurityGroupArns(const Aws::Vector< Aws::String > &value)
Definition: Ec2Config.h:122
Aws::DataSync::Model::Ec2Config::Ec2Config
Ec2Config()
Aws::DataSync::Model::Ec2Config::SetSubnetArn
void SetSubnetArn(const char *value)
Definition: Ec2Config.h:73
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::DataSync::Model::Ec2Config::SubnetArnHasBeenSet
bool SubnetArnHasBeenSet() const
Definition: Ec2Config.h:55
Aws::DataSync::Model::Ec2Config
Definition: Ec2Config.h:37
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DataSync::Model::Ec2Config::WithSecurityGroupArns
Ec2Config & WithSecurityGroupArns(Aws::Vector< Aws::String > &&value)
Definition: Ec2Config.h:128
Aws::DataSync::Model::Ec2Config::SecurityGroupArnsHasBeenSet
bool SecurityGroupArnsHasBeenSet() const
Definition: Ec2Config.h:104