AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateVPCConnectionRequest.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/quicksight/QuickSightRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/quicksight/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace QuickSight
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_QUICKSIGHT_API CreateVPCConnectionRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateVPCConnection"; }
33
34 AWS_QUICKSIGHT_API Aws::String SerializePayload() const override;
35
36
38
42 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
43 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
44 template<typename AwsAccountIdT = Aws::String>
45 void SetAwsAccountId(AwsAccountIdT&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::forward<AwsAccountIdT>(value); }
46 template<typename AwsAccountIdT = Aws::String>
47 CreateVPCConnectionRequest& WithAwsAccountId(AwsAccountIdT&& value) { SetAwsAccountId(std::forward<AwsAccountIdT>(value)); return *this;}
49
51
56 inline const Aws::String& GetVPCConnectionId() const { return m_vPCConnectionId; }
57 inline bool VPCConnectionIdHasBeenSet() const { return m_vPCConnectionIdHasBeenSet; }
58 template<typename VPCConnectionIdT = Aws::String>
59 void SetVPCConnectionId(VPCConnectionIdT&& value) { m_vPCConnectionIdHasBeenSet = true; m_vPCConnectionId = std::forward<VPCConnectionIdT>(value); }
60 template<typename VPCConnectionIdT = Aws::String>
61 CreateVPCConnectionRequest& WithVPCConnectionId(VPCConnectionIdT&& value) { SetVPCConnectionId(std::forward<VPCConnectionIdT>(value)); return *this;}
63
65
68 inline const Aws::String& GetName() const { return m_name; }
69 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
70 template<typename NameT = Aws::String>
71 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
72 template<typename NameT = Aws::String>
73 CreateVPCConnectionRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
75
77
80 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
81 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
82 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
83 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
84 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
85 CreateVPCConnectionRequest& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
86 template<typename SubnetIdsT = Aws::String>
87 CreateVPCConnectionRequest& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
89
91
94 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
95 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
96 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
97 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
98 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
99 CreateVPCConnectionRequest& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
100 template<typename SecurityGroupIdsT = Aws::String>
101 CreateVPCConnectionRequest& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
103
105
108 inline const Aws::Vector<Aws::String>& GetDnsResolvers() const { return m_dnsResolvers; }
109 inline bool DnsResolversHasBeenSet() const { return m_dnsResolversHasBeenSet; }
110 template<typename DnsResolversT = Aws::Vector<Aws::String>>
111 void SetDnsResolvers(DnsResolversT&& value) { m_dnsResolversHasBeenSet = true; m_dnsResolvers = std::forward<DnsResolversT>(value); }
112 template<typename DnsResolversT = Aws::Vector<Aws::String>>
113 CreateVPCConnectionRequest& WithDnsResolvers(DnsResolversT&& value) { SetDnsResolvers(std::forward<DnsResolversT>(value)); return *this;}
114 template<typename DnsResolversT = Aws::String>
115 CreateVPCConnectionRequest& AddDnsResolvers(DnsResolversT&& value) { m_dnsResolversHasBeenSet = true; m_dnsResolvers.emplace_back(std::forward<DnsResolversT>(value)); return *this; }
117
119
122 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
123 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
124 template<typename RoleArnT = Aws::String>
125 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
126 template<typename RoleArnT = Aws::String>
127 CreateVPCConnectionRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
129
131
135 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
136 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
137 template<typename TagsT = Aws::Vector<Tag>>
138 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
139 template<typename TagsT = Aws::Vector<Tag>>
140 CreateVPCConnectionRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
141 template<typename TagsT = Tag>
142 CreateVPCConnectionRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
144 private:
145
146 Aws::String m_awsAccountId;
147 bool m_awsAccountIdHasBeenSet = false;
148
149 Aws::String m_vPCConnectionId;
150 bool m_vPCConnectionIdHasBeenSet = false;
151
152 Aws::String m_name;
153 bool m_nameHasBeenSet = false;
154
155 Aws::Vector<Aws::String> m_subnetIds;
156 bool m_subnetIdsHasBeenSet = false;
157
158 Aws::Vector<Aws::String> m_securityGroupIds;
159 bool m_securityGroupIdsHasBeenSet = false;
160
161 Aws::Vector<Aws::String> m_dnsResolvers;
162 bool m_dnsResolversHasBeenSet = false;
163
164 Aws::String m_roleArn;
165 bool m_roleArnHasBeenSet = false;
166
167 Aws::Vector<Tag> m_tags;
168 bool m_tagsHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace QuickSight
173} // namespace Aws
CreateVPCConnectionRequest & WithAwsAccountId(AwsAccountIdT &&value)
const Aws::Vector< Aws::String > & GetDnsResolvers() const
CreateVPCConnectionRequest & WithDnsResolvers(DnsResolversT &&value)
CreateVPCConnectionRequest & WithName(NameT &&value)
CreateVPCConnectionRequest & WithSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_QUICKSIGHT_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
CreateVPCConnectionRequest & WithVPCConnectionId(VPCConnectionIdT &&value)
CreateVPCConnectionRequest & AddTags(TagsT &&value)
CreateVPCConnectionRequest & WithTags(TagsT &&value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
AWS_QUICKSIGHT_API CreateVPCConnectionRequest()=default
CreateVPCConnectionRequest & WithSubnetIds(SubnetIdsT &&value)
CreateVPCConnectionRequest & WithRoleArn(RoleArnT &&value)
CreateVPCConnectionRequest & AddDnsResolvers(DnsResolversT &&value)
CreateVPCConnectionRequest & AddSubnetIds(SubnetIdsT &&value)
CreateVPCConnectionRequest & AddSecurityGroupIds(SecurityGroupIdsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector