AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
VpcDestinationProperties.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.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 IoT
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_IOT_API VpcDestinationProperties() = default;
40
41
43
46 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
47 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
48 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
49 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
50 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
51 VpcDestinationProperties& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
52 template<typename SubnetIdsT = Aws::String>
53 VpcDestinationProperties& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
55
57
60 inline const Aws::Vector<Aws::String>& GetSecurityGroups() const { return m_securityGroups; }
61 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
62 template<typename SecurityGroupsT = Aws::Vector<Aws::String>>
63 void SetSecurityGroups(SecurityGroupsT&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::forward<SecurityGroupsT>(value); }
64 template<typename SecurityGroupsT = Aws::Vector<Aws::String>>
65 VpcDestinationProperties& WithSecurityGroups(SecurityGroupsT&& value) { SetSecurityGroups(std::forward<SecurityGroupsT>(value)); return *this;}
66 template<typename SecurityGroupsT = Aws::String>
67 VpcDestinationProperties& AddSecurityGroups(SecurityGroupsT&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.emplace_back(std::forward<SecurityGroupsT>(value)); return *this; }
69
71
74 inline const Aws::String& GetVpcId() const { return m_vpcId; }
75 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
76 template<typename VpcIdT = Aws::String>
77 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
78 template<typename VpcIdT = Aws::String>
79 VpcDestinationProperties& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
81
83
87 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
88 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
89 template<typename RoleArnT = Aws::String>
90 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
91 template<typename RoleArnT = Aws::String>
92 VpcDestinationProperties& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
94 private:
95
96 Aws::Vector<Aws::String> m_subnetIds;
97 bool m_subnetIdsHasBeenSet = false;
98
99 Aws::Vector<Aws::String> m_securityGroups;
100 bool m_securityGroupsHasBeenSet = false;
101
102 Aws::String m_vpcId;
103 bool m_vpcIdHasBeenSet = false;
104
105 Aws::String m_roleArn;
106 bool m_roleArnHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace IoT
111} // namespace Aws
const Aws::Vector< Aws::String > & GetSubnetIds() const
VpcDestinationProperties & AddSecurityGroups(SecurityGroupsT &&value)
VpcDestinationProperties & WithSecurityGroups(SecurityGroupsT &&value)
VpcDestinationProperties & WithSubnetIds(SubnetIdsT &&value)
const Aws::Vector< Aws::String > & GetSecurityGroups() const
AWS_IOT_API VpcDestinationProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API VpcDestinationProperties()=default
AWS_IOT_API VpcDestinationProperties(Aws::Utils::Json::JsonView jsonValue)
VpcDestinationProperties & AddSubnetIds(SubnetIdsT &&value)
VpcDestinationProperties & WithVpcId(VpcIdT &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
VpcDestinationProperties & WithRoleArn(RoleArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue