AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Ec2Config.h
1
6#pragma once
7#include <aws/datasync/DataSync_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DataSync
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_DATASYNC_API Ec2Config();
39 AWS_DATASYNC_API Ec2Config(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DATASYNC_API Ec2Config& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
55 inline const Aws::String& GetSubnetArn() const{ return m_subnetArn; }
56 inline bool SubnetArnHasBeenSet() const { return m_subnetArnHasBeenSet; }
57 inline void SetSubnetArn(const Aws::String& value) { m_subnetArnHasBeenSet = true; m_subnetArn = value; }
58 inline void SetSubnetArn(Aws::String&& value) { m_subnetArnHasBeenSet = true; m_subnetArn = std::move(value); }
59 inline void SetSubnetArn(const char* value) { m_subnetArnHasBeenSet = true; m_subnetArn.assign(value); }
60 inline Ec2Config& WithSubnetArn(const Aws::String& value) { SetSubnetArn(value); return *this;}
61 inline Ec2Config& WithSubnetArn(Aws::String&& value) { SetSubnetArn(std::move(value)); return *this;}
62 inline Ec2Config& WithSubnetArn(const char* value) { SetSubnetArn(value); return *this;}
64
66
70 inline const Aws::Vector<Aws::String>& GetSecurityGroupArns() const{ return m_securityGroupArns; }
71 inline bool SecurityGroupArnsHasBeenSet() const { return m_securityGroupArnsHasBeenSet; }
72 inline void SetSecurityGroupArns(const Aws::Vector<Aws::String>& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns = value; }
73 inline void SetSecurityGroupArns(Aws::Vector<Aws::String>&& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns = std::move(value); }
75 inline Ec2Config& WithSecurityGroupArns(Aws::Vector<Aws::String>&& value) { SetSecurityGroupArns(std::move(value)); return *this;}
76 inline Ec2Config& AddSecurityGroupArns(const Aws::String& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.push_back(value); return *this; }
77 inline Ec2Config& AddSecurityGroupArns(Aws::String&& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.push_back(std::move(value)); return *this; }
78 inline Ec2Config& AddSecurityGroupArns(const char* value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.push_back(value); return *this; }
80 private:
81
82 Aws::String m_subnetArn;
83 bool m_subnetArnHasBeenSet = false;
84
85 Aws::Vector<Aws::String> m_securityGroupArns;
86 bool m_securityGroupArnsHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace DataSync
91} // namespace Aws
void SetSecurityGroupArns(Aws::Vector< Aws::String > &&value)
Definition Ec2Config.h:73
AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSubnetArn(Aws::String &&value)
Definition Ec2Config.h:58
Ec2Config & WithSecurityGroupArns(Aws::Vector< Aws::String > &&value)
Definition Ec2Config.h:75
AWS_DATASYNC_API Ec2Config()
void SetSecurityGroupArns(const Aws::Vector< Aws::String > &value)
Definition Ec2Config.h:72
Ec2Config & WithSecurityGroupArns(const Aws::Vector< Aws::String > &value)
Definition Ec2Config.h:74
AWS_DATASYNC_API Ec2Config(Aws::Utils::Json::JsonView jsonValue)
Ec2Config & AddSecurityGroupArns(const char *value)
Definition Ec2Config.h:78
bool SecurityGroupArnsHasBeenSet() const
Definition Ec2Config.h:71
void SetSubnetArn(const Aws::String &value)
Definition Ec2Config.h:57
const Aws::String & GetSubnetArn() const
Definition Ec2Config.h:55
Ec2Config & WithSubnetArn(Aws::String &&value)
Definition Ec2Config.h:61
Ec2Config & AddSecurityGroupArns(const Aws::String &value)
Definition Ec2Config.h:76
AWS_DATASYNC_API Ec2Config & operator=(Aws::Utils::Json::JsonView jsonValue)
Ec2Config & WithSubnetArn(const char *value)
Definition Ec2Config.h:62
void SetSubnetArn(const char *value)
Definition Ec2Config.h:59
Ec2Config & AddSecurityGroupArns(Aws::String &&value)
Definition Ec2Config.h:77
Ec2Config & WithSubnetArn(const Aws::String &value)
Definition Ec2Config.h:60
const Aws::Vector< Aws::String > & GetSecurityGroupArns() const
Definition Ec2Config.h:70
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue