AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename SubnetArnT = Aws::String>
58 void SetSubnetArn(SubnetArnT&& value) { m_subnetArnHasBeenSet = true; m_subnetArn = std::forward<SubnetArnT>(value); }
59 template<typename SubnetArnT = Aws::String>
60 Ec2Config& WithSubnetArn(SubnetArnT&& value) { SetSubnetArn(std::forward<SubnetArnT>(value)); return *this;}
62
64
68 inline const Aws::Vector<Aws::String>& GetSecurityGroupArns() const { return m_securityGroupArns; }
69 inline bool SecurityGroupArnsHasBeenSet() const { return m_securityGroupArnsHasBeenSet; }
70 template<typename SecurityGroupArnsT = Aws::Vector<Aws::String>>
71 void SetSecurityGroupArns(SecurityGroupArnsT&& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns = std::forward<SecurityGroupArnsT>(value); }
72 template<typename SecurityGroupArnsT = Aws::Vector<Aws::String>>
73 Ec2Config& WithSecurityGroupArns(SecurityGroupArnsT&& value) { SetSecurityGroupArns(std::forward<SecurityGroupArnsT>(value)); return *this;}
74 template<typename SecurityGroupArnsT = Aws::String>
75 Ec2Config& AddSecurityGroupArns(SecurityGroupArnsT&& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.emplace_back(std::forward<SecurityGroupArnsT>(value)); return *this; }
77 private:
78
79 Aws::String m_subnetArn;
80 bool m_subnetArnHasBeenSet = false;
81
82 Aws::Vector<Aws::String> m_securityGroupArns;
83 bool m_securityGroupArnsHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace DataSync
88} // namespace Aws
AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const
Ec2Config & AddSecurityGroupArns(SecurityGroupArnsT &&value)
Definition Ec2Config.h:75
void SetSubnetArn(SubnetArnT &&value)
Definition Ec2Config.h:58
AWS_DATASYNC_API Ec2Config(Aws::Utils::Json::JsonView jsonValue)
bool SecurityGroupArnsHasBeenSet() const
Definition Ec2Config.h:69
const Aws::String & GetSubnetArn() const
Definition Ec2Config.h:55
Ec2Config & WithSecurityGroupArns(SecurityGroupArnsT &&value)
Definition Ec2Config.h:73
AWS_DATASYNC_API Ec2Config & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSecurityGroupArns(SecurityGroupArnsT &&value)
Definition Ec2Config.h:71
Ec2Config & WithSubnetArn(SubnetArnT &&value)
Definition Ec2Config.h:60
AWS_DATASYNC_API Ec2Config()=default
const Aws::Vector< Aws::String > & GetSecurityGroupArns() const
Definition Ec2Config.h:68
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue