AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
VpcDestinationConfiguration.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/iot/IoT_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoT {
21namespace Model {
22
30 public:
31 AWS_IOT_API VpcDestinationConfiguration() = default;
35
37
40 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
41 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
42 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
43 void SetSubnetIds(SubnetIdsT&& value) {
44 m_subnetIdsHasBeenSet = true;
45 m_subnetIds = std::forward<SubnetIdsT>(value);
46 }
47 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
49 SetSubnetIds(std::forward<SubnetIdsT>(value));
50 return *this;
51 }
52 template <typename SubnetIdsT = Aws::String>
54 m_subnetIdsHasBeenSet = true;
55 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::Vector<Aws::String>& GetSecurityGroups() const { return m_securityGroups; }
65 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
66 template <typename SecurityGroupsT = Aws::Vector<Aws::String>>
67 void SetSecurityGroups(SecurityGroupsT&& value) {
68 m_securityGroupsHasBeenSet = true;
69 m_securityGroups = std::forward<SecurityGroupsT>(value);
70 }
71 template <typename SecurityGroupsT = Aws::Vector<Aws::String>>
73 SetSecurityGroups(std::forward<SecurityGroupsT>(value));
74 return *this;
75 }
76 template <typename SecurityGroupsT = Aws::String>
78 m_securityGroupsHasBeenSet = true;
79 m_securityGroups.emplace_back(std::forward<SecurityGroupsT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::String& GetVpcId() const { return m_vpcId; }
89 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
90 template <typename VpcIdT = Aws::String>
91 void SetVpcId(VpcIdT&& value) {
92 m_vpcIdHasBeenSet = true;
93 m_vpcId = std::forward<VpcIdT>(value);
94 }
95 template <typename VpcIdT = Aws::String>
97 SetVpcId(std::forward<VpcIdT>(value));
98 return *this;
99 }
101
103
107 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
108 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
109 template <typename RoleArnT = Aws::String>
110 void SetRoleArn(RoleArnT&& value) {
111 m_roleArnHasBeenSet = true;
112 m_roleArn = std::forward<RoleArnT>(value);
113 }
114 template <typename RoleArnT = Aws::String>
116 SetRoleArn(std::forward<RoleArnT>(value));
117 return *this;
118 }
120 private:
121 Aws::Vector<Aws::String> m_subnetIds;
122
123 Aws::Vector<Aws::String> m_securityGroups;
124
125 Aws::String m_vpcId;
126
127 Aws::String m_roleArn;
128 bool m_subnetIdsHasBeenSet = false;
129 bool m_securityGroupsHasBeenSet = false;
130 bool m_vpcIdHasBeenSet = false;
131 bool m_roleArnHasBeenSet = false;
132};
133
134} // namespace Model
135} // namespace IoT
136} // namespace Aws
VpcDestinationConfiguration & WithSecurityGroups(SecurityGroupsT &&value)
const Aws::Vector< Aws::String > & GetSecurityGroups() const
VpcDestinationConfiguration & AddSubnetIds(SubnetIdsT &&value)
AWS_IOT_API VpcDestinationConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
VpcDestinationConfiguration & WithVpcId(VpcIdT &&value)
VpcDestinationConfiguration & AddSecurityGroups(SecurityGroupsT &&value)
AWS_IOT_API VpcDestinationConfiguration()=default
VpcDestinationConfiguration & WithRoleArn(RoleArnT &&value)
VpcDestinationConfiguration & WithSubnetIds(SubnetIdsT &&value)
AWS_IOT_API VpcDestinationConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetSubnetIds() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue