AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
VpcDestinationConfiguration.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:
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); }
51 inline VpcDestinationConfiguration& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
52 inline VpcDestinationConfiguration& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
53 inline VpcDestinationConfiguration& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
54 inline VpcDestinationConfiguration& 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); }
67 inline VpcDestinationConfiguration& AddSecurityGroups(const Aws::String& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
68 inline VpcDestinationConfiguration& AddSecurityGroups(Aws::String&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(std::move(value)); return *this; }
69 inline VpcDestinationConfiguration& 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 VpcDestinationConfiguration& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
82 inline VpcDestinationConfiguration& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
83 inline VpcDestinationConfiguration& 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 VpcDestinationConfiguration& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
97 inline VpcDestinationConfiguration& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
98 inline VpcDestinationConfiguration& 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
VpcDestinationConfiguration & WithSubnetIds(const Aws::Vector< Aws::String > &value)
VpcDestinationConfiguration & AddSubnetIds(const Aws::String &value)
const Aws::Vector< Aws::String > & GetSecurityGroups() const
VpcDestinationConfiguration & WithRoleArn(Aws::String &&value)
void SetSecurityGroups(Aws::Vector< Aws::String > &&value)
VpcDestinationConfiguration & AddSubnetIds(Aws::String &&value)
AWS_IOT_API VpcDestinationConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
VpcDestinationConfiguration & WithSecurityGroups(Aws::Vector< Aws::String > &&value)
VpcDestinationConfiguration & WithVpcId(const char *value)
VpcDestinationConfiguration & WithSubnetIds(Aws::Vector< Aws::String > &&value)
VpcDestinationConfiguration & WithSecurityGroups(const Aws::Vector< Aws::String > &value)
void SetSubnetIds(Aws::Vector< Aws::String > &&value)
VpcDestinationConfiguration & WithRoleArn(const Aws::String &value)
VpcDestinationConfiguration & WithVpcId(Aws::String &&value)
VpcDestinationConfiguration & AddSecurityGroups(const Aws::String &value)
VpcDestinationConfiguration & AddSecurityGroups(const char *value)
VpcDestinationConfiguration & WithRoleArn(const char *value)
void SetSecurityGroups(const Aws::Vector< Aws::String > &value)
VpcDestinationConfiguration & AddSubnetIds(const char *value)
AWS_IOT_API VpcDestinationConfiguration(Aws::Utils::Json::JsonView jsonValue)
VpcDestinationConfiguration & AddSecurityGroups(Aws::String &&value)
VpcDestinationConfiguration & WithVpcId(const Aws::String &value)
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