AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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
58 inline const Aws::Vector<Aws::String>& GetSubnets() const { return m_subnets; }
59 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
60 template<typename SubnetsT = Aws::Vector<Aws::String>>
61 void SetSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets = std::forward<SubnetsT>(value); }
62 template<typename SubnetsT = Aws::Vector<Aws::String>>
63 CreateVpcConnectorRequest& WithSubnets(SubnetsT&& value) { SetSubnets(std::forward<SubnetsT>(value)); return *this;}
64 template<typename SubnetsT = Aws::String>
65 CreateVpcConnectorRequest& AddSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets.emplace_back(std::forward<SubnetsT>(value)); return *this; }
67
69
75 inline const Aws::Vector<Aws::String>& GetSecurityGroups() const { return m_securityGroups; }
76 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
77 template<typename SecurityGroupsT = Aws::Vector<Aws::String>>
78 void SetSecurityGroups(SecurityGroupsT&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::forward<SecurityGroupsT>(value); }
79 template<typename SecurityGroupsT = Aws::Vector<Aws::String>>
80 CreateVpcConnectorRequest& WithSecurityGroups(SecurityGroupsT&& value) { SetSecurityGroups(std::forward<SecurityGroupsT>(value)); return *this;}
81 template<typename SecurityGroupsT = Aws::String>
82 CreateVpcConnectorRequest& AddSecurityGroups(SecurityGroupsT&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.emplace_back(std::forward<SecurityGroupsT>(value)); return *this; }
84
86
90 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
91 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
92 template<typename TagsT = Aws::Vector<Tag>>
93 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
94 template<typename TagsT = Aws::Vector<Tag>>
95 CreateVpcConnectorRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
96 template<typename TagsT = Tag>
97 CreateVpcConnectorRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
99 private:
100
101 Aws::String m_vpcConnectorName;
102 bool m_vpcConnectorNameHasBeenSet = false;
103
104 Aws::Vector<Aws::String> m_subnets;
105 bool m_subnetsHasBeenSet = false;
106
107 Aws::Vector<Aws::String> m_securityGroups;
108 bool m_securityGroupsHasBeenSet = false;
109
110 Aws::Vector<Tag> m_tags;
111 bool m_tagsHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace AppRunner
116} // 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