AWS SDK for C++

AWS SDK for C++ Version 1.11.643

Loading...
Searching...
No Matches
CreateVpcConnectorRequest.h
1
6#pragma once
7#include <aws/apprunner/AppRunner_EXPORTS.h>
8#include <aws/apprunner/AppRunnerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/apprunner/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace AppRunner
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_APPRUNNER_API CreateVpcConnectorRequest() = 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 "CreateVpcConnector"; }
33
34 AWS_APPRUNNER_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetVpcConnectorName() const { return m_vpcConnectorName; }
44 inline bool VpcConnectorNameHasBeenSet() const { return m_vpcConnectorNameHasBeenSet; }
45 template<typename VpcConnectorNameT = Aws::String>
46 void SetVpcConnectorName(VpcConnectorNameT&& value) { m_vpcConnectorNameHasBeenSet = true; m_vpcConnectorName = std::forward<VpcConnectorNameT>(value); }
47 template<typename VpcConnectorNameT = Aws::String>
48 CreateVpcConnectorRequest& WithVpcConnectorName(VpcConnectorNameT&& value) { SetVpcConnectorName(std::forward<VpcConnectorNameT>(value)); return *this;}
50
52
59 inline const Aws::Vector<Aws::String>& GetSubnets() const { return m_subnets; }
60 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
61 template<typename SubnetsT = Aws::Vector<Aws::String>>
62 void SetSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets = std::forward<SubnetsT>(value); }
63 template<typename SubnetsT = Aws::Vector<Aws::String>>
64 CreateVpcConnectorRequest& WithSubnets(SubnetsT&& value) { SetSubnets(std::forward<SubnetsT>(value)); return *this;}
65 template<typename SubnetsT = Aws::String>
66 CreateVpcConnectorRequest& AddSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets.emplace_back(std::forward<SubnetsT>(value)); return *this; }
68
70
76 inline const Aws::Vector<Aws::String>& GetSecurityGroups() const { return m_securityGroups; }
77 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
78 template<typename SecurityGroupsT = Aws::Vector<Aws::String>>
79 void SetSecurityGroups(SecurityGroupsT&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::forward<SecurityGroupsT>(value); }
80 template<typename SecurityGroupsT = Aws::Vector<Aws::String>>
81 CreateVpcConnectorRequest& WithSecurityGroups(SecurityGroupsT&& value) { SetSecurityGroups(std::forward<SecurityGroupsT>(value)); return *this;}
82 template<typename SecurityGroupsT = Aws::String>
83 CreateVpcConnectorRequest& AddSecurityGroups(SecurityGroupsT&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.emplace_back(std::forward<SecurityGroupsT>(value)); return *this; }
85
87
91 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
92 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
93 template<typename TagsT = Aws::Vector<Tag>>
94 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
95 template<typename TagsT = Aws::Vector<Tag>>
96 CreateVpcConnectorRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
97 template<typename TagsT = Tag>
98 CreateVpcConnectorRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
100 private:
101
102 Aws::String m_vpcConnectorName;
103 bool m_vpcConnectorNameHasBeenSet = false;
104
105 Aws::Vector<Aws::String> m_subnets;
106 bool m_subnetsHasBeenSet = false;
107
108 Aws::Vector<Aws::String> m_securityGroups;
109 bool m_securityGroupsHasBeenSet = false;
110
111 Aws::Vector<Tag> m_tags;
112 bool m_tagsHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace AppRunner
117} // 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