AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetVpcConnectorName(const Aws::String& value) { m_vpcConnectorNameHasBeenSet = true; m_vpcConnectorName = value; }
46 inline void SetVpcConnectorName(Aws::String&& value) { m_vpcConnectorNameHasBeenSet = true; m_vpcConnectorName = std::move(value); }
47 inline void SetVpcConnectorName(const char* value) { m_vpcConnectorNameHasBeenSet = true; m_vpcConnectorName.assign(value); }
49 inline CreateVpcConnectorRequest& WithVpcConnectorName(Aws::String&& value) { SetVpcConnectorName(std::move(value)); return *this;}
50 inline CreateVpcConnectorRequest& WithVpcConnectorName(const char* value) { SetVpcConnectorName(value); return *this;}
52
54
60 inline const Aws::Vector<Aws::String>& GetSubnets() const{ return m_subnets; }
61 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
62 inline void SetSubnets(const Aws::Vector<Aws::String>& value) { m_subnetsHasBeenSet = true; m_subnets = value; }
63 inline void SetSubnets(Aws::Vector<Aws::String>&& value) { m_subnetsHasBeenSet = true; m_subnets = std::move(value); }
64 inline CreateVpcConnectorRequest& WithSubnets(const Aws::Vector<Aws::String>& value) { SetSubnets(value); return *this;}
65 inline CreateVpcConnectorRequest& WithSubnets(Aws::Vector<Aws::String>&& value) { SetSubnets(std::move(value)); return *this;}
66 inline CreateVpcConnectorRequest& AddSubnets(const Aws::String& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
67 inline CreateVpcConnectorRequest& AddSubnets(Aws::String&& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(std::move(value)); return *this; }
68 inline CreateVpcConnectorRequest& AddSubnets(const char* value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
70
72
78 inline const Aws::Vector<Aws::String>& GetSecurityGroups() const{ return m_securityGroups; }
79 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
80 inline void SetSecurityGroups(const Aws::Vector<Aws::String>& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = value; }
81 inline void SetSecurityGroups(Aws::Vector<Aws::String>&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::move(value); }
84 inline CreateVpcConnectorRequest& AddSecurityGroups(const Aws::String& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
85 inline CreateVpcConnectorRequest& AddSecurityGroups(Aws::String&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(std::move(value)); return *this; }
86 inline CreateVpcConnectorRequest& AddSecurityGroups(const char* value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
88
90
94 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
95 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
96 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
97 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
98 inline CreateVpcConnectorRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
99 inline CreateVpcConnectorRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
100 inline CreateVpcConnectorRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
101 inline CreateVpcConnectorRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
103 private:
104
105 Aws::String m_vpcConnectorName;
106 bool m_vpcConnectorNameHasBeenSet = false;
107
108 Aws::Vector<Aws::String> m_subnets;
109 bool m_subnetsHasBeenSet = false;
110
111 Aws::Vector<Aws::String> m_securityGroups;
112 bool m_securityGroupsHasBeenSet = false;
113
114 Aws::Vector<Tag> m_tags;
115 bool m_tagsHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace AppRunner
120} // namespace Aws
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Aws::String > & GetSecurityGroups() const
CreateVpcConnectorRequest & AddTags(Tag &&value)
CreateVpcConnectorRequest & AddSecurityGroups(const Aws::String &value)
AWS_APPRUNNER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateVpcConnectorRequest & WithSubnets(const Aws::Vector< Aws::String > &value)
void SetSubnets(const Aws::Vector< Aws::String > &value)
CreateVpcConnectorRequest & WithSecurityGroups(Aws::Vector< Aws::String > &&value)
CreateVpcConnectorRequest & WithVpcConnectorName(Aws::String &&value)
CreateVpcConnectorRequest & WithVpcConnectorName(const Aws::String &value)
AWS_APPRUNNER_API Aws::String SerializePayload() const override
void SetSecurityGroups(Aws::Vector< Aws::String > &&value)
CreateVpcConnectorRequest & AddSubnets(Aws::String &&value)
CreateVpcConnectorRequest & WithVpcConnectorName(const char *value)
CreateVpcConnectorRequest & WithSecurityGroups(const Aws::Vector< Aws::String > &value)
CreateVpcConnectorRequest & AddTags(const Tag &value)
CreateVpcConnectorRequest & AddSubnets(const Aws::String &value)
CreateVpcConnectorRequest & WithSubnets(Aws::Vector< Aws::String > &&value)
CreateVpcConnectorRequest & AddSubnets(const char *value)
void SetSecurityGroups(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetSubnets() const
CreateVpcConnectorRequest & AddSecurityGroups(Aws::String &&value)
void SetSubnets(Aws::Vector< Aws::String > &&value)
CreateVpcConnectorRequest & AddSecurityGroups(const char *value)
CreateVpcConnectorRequest & WithTags(Aws::Vector< Tag > &&value)
CreateVpcConnectorRequest & WithTags(const Aws::Vector< Tag > &value)
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