AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateVpcConnectorRequest.h
1
6#pragma once
7#include <aws/apprunner/AppRunnerRequest.h>
8#include <aws/apprunner/AppRunner_EXPORTS.h>
9#include <aws/apprunner/model/Tag.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 AppRunner {
17namespace Model {
18
22 public:
23 AWS_APPRUNNER_API CreateVpcConnectorRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateVpcConnector"; }
30
31 AWS_APPRUNNER_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetVpcConnectorName() const { return m_vpcConnectorName; }
40 inline bool VpcConnectorNameHasBeenSet() const { return m_vpcConnectorNameHasBeenSet; }
41 template <typename VpcConnectorNameT = Aws::String>
42 void SetVpcConnectorName(VpcConnectorNameT&& value) {
43 m_vpcConnectorNameHasBeenSet = true;
44 m_vpcConnectorName = std::forward<VpcConnectorNameT>(value);
45 }
46 template <typename VpcConnectorNameT = Aws::String>
47 CreateVpcConnectorRequest& WithVpcConnectorName(VpcConnectorNameT&& value) {
48 SetVpcConnectorName(std::forward<VpcConnectorNameT>(value));
49 return *this;
50 }
52
54
61 inline const Aws::Vector<Aws::String>& GetSubnets() const { return m_subnets; }
62 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
63 template <typename SubnetsT = Aws::Vector<Aws::String>>
64 void SetSubnets(SubnetsT&& value) {
65 m_subnetsHasBeenSet = true;
66 m_subnets = std::forward<SubnetsT>(value);
67 }
68 template <typename SubnetsT = Aws::Vector<Aws::String>>
70 SetSubnets(std::forward<SubnetsT>(value));
71 return *this;
72 }
73 template <typename SubnetsT = Aws::String>
75 m_subnetsHasBeenSet = true;
76 m_subnets.emplace_back(std::forward<SubnetsT>(value));
77 return *this;
78 }
80
82
88 inline const Aws::Vector<Aws::String>& GetSecurityGroups() const { return m_securityGroups; }
89 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
90 template <typename SecurityGroupsT = Aws::Vector<Aws::String>>
91 void SetSecurityGroups(SecurityGroupsT&& value) {
92 m_securityGroupsHasBeenSet = true;
93 m_securityGroups = std::forward<SecurityGroupsT>(value);
94 }
95 template <typename SecurityGroupsT = Aws::Vector<Aws::String>>
97 SetSecurityGroups(std::forward<SecurityGroupsT>(value));
98 return *this;
99 }
100 template <typename SecurityGroupsT = Aws::String>
102 m_securityGroupsHasBeenSet = true;
103 m_securityGroups.emplace_back(std::forward<SecurityGroupsT>(value));
104 return *this;
105 }
107
109
113 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
114 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
115 template <typename TagsT = Aws::Vector<Tag>>
116 void SetTags(TagsT&& value) {
117 m_tagsHasBeenSet = true;
118 m_tags = std::forward<TagsT>(value);
119 }
120 template <typename TagsT = Aws::Vector<Tag>>
122 SetTags(std::forward<TagsT>(value));
123 return *this;
124 }
125 template <typename TagsT = Tag>
127 m_tagsHasBeenSet = true;
128 m_tags.emplace_back(std::forward<TagsT>(value));
129 return *this;
130 }
132 private:
133 Aws::String m_vpcConnectorName;
134
135 Aws::Vector<Aws::String> m_subnets;
136
137 Aws::Vector<Aws::String> m_securityGroups;
138
139 Aws::Vector<Tag> m_tags;
140 bool m_vpcConnectorNameHasBeenSet = false;
141 bool m_subnetsHasBeenSet = false;
142 bool m_securityGroupsHasBeenSet = false;
143 bool m_tagsHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace AppRunner
148} // namespace Aws
virtual const char * GetServiceRequestName() const override
CreateVpcConnectorRequest & AddTags(TagsT &&value)
const Aws::Vector< Aws::String > & GetSecurityGroups() const
CreateVpcConnectorRequest & WithSecurityGroups(SecurityGroupsT &&value)
AWS_APPRUNNER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateVpcConnectorRequest & AddSecurityGroups(SecurityGroupsT &&value)
CreateVpcConnectorRequest & AddSubnets(SubnetsT &&value)
CreateVpcConnectorRequest & WithTags(TagsT &&value)
AWS_APPRUNNER_API CreateVpcConnectorRequest()=default
AWS_APPRUNNER_API Aws::String SerializePayload() const override
CreateVpcConnectorRequest & WithSubnets(SubnetsT &&value)
CreateVpcConnectorRequest & WithVpcConnectorName(VpcConnectorNameT &&value)
const Aws::Vector< Aws::String > & GetSubnets() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector