AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
VpcDestinationSummary.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 VpcDestinationSummary();
40
41
43
46 inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
47 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
48 inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
49 inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
50 inline VpcDestinationSummary& WithSubnetIds(const Aws::Vector<Aws::String>& value) { SetSubnetIds(value); return *this;}
51 inline VpcDestinationSummary& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
52 inline VpcDestinationSummary& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
53 inline VpcDestinationSummary& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
54 inline VpcDestinationSummary& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
56
58
61 inline const Aws::Vector<Aws::String>& GetSecurityGroups() const{ return m_securityGroups; }
62 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
63 inline void SetSecurityGroups(const Aws::Vector<Aws::String>& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = value; }
64 inline void SetSecurityGroups(Aws::Vector<Aws::String>&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::move(value); }
66 inline VpcDestinationSummary& WithSecurityGroups(Aws::Vector<Aws::String>&& value) { SetSecurityGroups(std::move(value)); return *this;}
67 inline VpcDestinationSummary& AddSecurityGroups(const Aws::String& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
68 inline VpcDestinationSummary& AddSecurityGroups(Aws::String&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(std::move(value)); return *this; }
69 inline VpcDestinationSummary& AddSecurityGroups(const char* value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
71
73
76 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
77 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
78 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
79 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
80 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
81 inline VpcDestinationSummary& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
82 inline VpcDestinationSummary& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
83 inline VpcDestinationSummary& WithVpcId(const char* value) { SetVpcId(value); return *this;}
85
87
91 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
92 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
93 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
94 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
95 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
96 inline VpcDestinationSummary& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
97 inline VpcDestinationSummary& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
98 inline VpcDestinationSummary& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
100 private:
101
102 Aws::Vector<Aws::String> m_subnetIds;
103 bool m_subnetIdsHasBeenSet = false;
104
105 Aws::Vector<Aws::String> m_securityGroups;
106 bool m_securityGroupsHasBeenSet = false;
107
108 Aws::String m_vpcId;
109 bool m_vpcIdHasBeenSet = false;
110
111 Aws::String m_roleArn;
112 bool m_roleArnHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace IoT
117} // namespace Aws
VpcDestinationSummary & AddSubnetIds(Aws::String &&value)
VpcDestinationSummary & WithVpcId(const Aws::String &value)
AWS_IOT_API VpcDestinationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetVpcId(const Aws::String &value)
void SetRoleArn(const Aws::String &value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
VpcDestinationSummary & AddSecurityGroups(const Aws::String &value)
void SetSecurityGroups(Aws::Vector< Aws::String > &&value)
VpcDestinationSummary & WithRoleArn(Aws::String &&value)
VpcDestinationSummary & WithRoleArn(const char *value)
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
VpcDestinationSummary & WithSecurityGroups(Aws::Vector< Aws::String > &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
VpcDestinationSummary & WithSecurityGroups(const Aws::Vector< Aws::String > &value)
VpcDestinationSummary & AddSubnetIds(const Aws::String &value)
VpcDestinationSummary & WithVpcId(const char *value)
VpcDestinationSummary & AddSecurityGroups(Aws::String &&value)
VpcDestinationSummary & WithSubnetIds(const Aws::Vector< Aws::String > &value)
VpcDestinationSummary & WithRoleArn(const Aws::String &value)
void SetSubnetIds(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetSecurityGroups() const
VpcDestinationSummary & AddSecurityGroups(const char *value)
VpcDestinationSummary & AddSubnetIds(const char *value)
VpcDestinationSummary & WithSubnetIds(Aws::Vector< Aws::String > &&value)
void SetSecurityGroups(const Aws::Vector< Aws::String > &value)
VpcDestinationSummary & WithVpcId(Aws::String &&value)
AWS_IOT_API VpcDestinationSummary(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue