AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
CreateVpcLinkRequest.h
1
6#pragma once
7#include <aws/apigatewayv2/ApiGatewayV2Request.h>
8#include <aws/apigatewayv2/ApiGatewayV2_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ApiGatewayV2 {
17namespace Model {
18
25 public:
26 AWS_APIGATEWAYV2_API CreateVpcLinkRequest() = 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 "CreateVpcLink"; }
33
34 AWS_APIGATEWAYV2_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
59 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
60 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
61 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
62 m_securityGroupIdsHasBeenSet = true;
63 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
64 }
65 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
66 CreateVpcLinkRequest& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
67 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
68 return *this;
69 }
70 template <typename SecurityGroupIdsT = Aws::String>
71 CreateVpcLinkRequest& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
72 m_securityGroupIdsHasBeenSet = true;
73 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
83 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
84 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
85 void SetSubnetIds(SubnetIdsT&& value) {
86 m_subnetIdsHasBeenSet = true;
87 m_subnetIds = std::forward<SubnetIdsT>(value);
88 }
89 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
90 CreateVpcLinkRequest& WithSubnetIds(SubnetIdsT&& value) {
91 SetSubnetIds(std::forward<SubnetIdsT>(value));
92 return *this;
93 }
94 template <typename SubnetIdsT = Aws::String>
95 CreateVpcLinkRequest& AddSubnetIds(SubnetIdsT&& value) {
96 m_subnetIdsHasBeenSet = true;
97 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
98 return *this;
99 }
101
103
106 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
107 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
108 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
109 void SetTags(TagsT&& value) {
110 m_tagsHasBeenSet = true;
111 m_tags = std::forward<TagsT>(value);
112 }
113 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
115 SetTags(std::forward<TagsT>(value));
116 return *this;
117 }
118 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
119 CreateVpcLinkRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
120 m_tagsHasBeenSet = true;
121 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
122 return *this;
123 }
125 private:
126 Aws::String m_name;
127
128 Aws::Vector<Aws::String> m_securityGroupIds;
129
130 Aws::Vector<Aws::String> m_subnetIds;
131
133 bool m_nameHasBeenSet = false;
134 bool m_securityGroupIdsHasBeenSet = false;
135 bool m_subnetIdsHasBeenSet = false;
136 bool m_tagsHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace ApiGatewayV2
141} // namespace Aws
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector