AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
Ec2Config.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/datasync/DataSync_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DataSync {
21namespace Model {
22
31class Ec2Config {
32 public:
33 AWS_DATASYNC_API Ec2Config() = default;
34 AWS_DATASYNC_API Ec2Config(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DATASYNC_API Ec2Config& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
49 inline const Aws::String& GetSubnetArn() const { return m_subnetArn; }
50 inline bool SubnetArnHasBeenSet() const { return m_subnetArnHasBeenSet; }
51 template <typename SubnetArnT = Aws::String>
52 void SetSubnetArn(SubnetArnT&& value) {
53 m_subnetArnHasBeenSet = true;
54 m_subnetArn = std::forward<SubnetArnT>(value);
55 }
56 template <typename SubnetArnT = Aws::String>
57 Ec2Config& WithSubnetArn(SubnetArnT&& value) {
58 SetSubnetArn(std::forward<SubnetArnT>(value));
59 return *this;
60 }
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) {
72 m_securityGroupArnsHasBeenSet = true;
73 m_securityGroupArns = std::forward<SecurityGroupArnsT>(value);
74 }
75 template <typename SecurityGroupArnsT = Aws::Vector<Aws::String>>
76 Ec2Config& WithSecurityGroupArns(SecurityGroupArnsT&& value) {
77 SetSecurityGroupArns(std::forward<SecurityGroupArnsT>(value));
78 return *this;
79 }
80 template <typename SecurityGroupArnsT = Aws::String>
81 Ec2Config& AddSecurityGroupArns(SecurityGroupArnsT&& value) {
82 m_securityGroupArnsHasBeenSet = true;
83 m_securityGroupArns.emplace_back(std::forward<SecurityGroupArnsT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_subnetArn;
89
90 Aws::Vector<Aws::String> m_securityGroupArns;
91 bool m_subnetArnHasBeenSet = false;
92 bool m_securityGroupArnsHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace DataSync
97} // namespace Aws
AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const
Ec2Config & AddSecurityGroupArns(SecurityGroupArnsT &&value)
Definition Ec2Config.h:81
void SetSubnetArn(SubnetArnT &&value)
Definition Ec2Config.h:52
AWS_DATASYNC_API Ec2Config(Aws::Utils::Json::JsonView jsonValue)
bool SecurityGroupArnsHasBeenSet() const
Definition Ec2Config.h:69
const Aws::String & GetSubnetArn() const
Definition Ec2Config.h:49
Ec2Config & WithSecurityGroupArns(SecurityGroupArnsT &&value)
Definition Ec2Config.h:76
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:57
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