AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateHostRequest.h
1
6#pragma once
7#include <aws/codestar-connections/CodeStarconnectionsRequest.h>
8#include <aws/codestar-connections/CodeStarconnections_EXPORTS.h>
9#include <aws/codestar-connections/model/ProviderType.h>
10#include <aws/codestar-connections/model/Tag.h>
11#include <aws/codestar-connections/model/VpcConfiguration.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace CodeStarconnections {
19namespace Model {
20
24 public:
25 AWS_CODESTARCONNECTIONS_API CreateHostRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateHost"; }
32
33 AWS_CODESTARCONNECTIONS_API Aws::String SerializePayload() const override;
34
35 AWS_CODESTARCONNECTIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
49 CreateHostRequest& WithName(NameT&& value) {
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
61 inline ProviderType GetProviderType() const { return m_providerType; }
62 inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
63 inline void SetProviderType(ProviderType value) {
64 m_providerTypeHasBeenSet = true;
65 m_providerType = value;
66 }
68 SetProviderType(value);
69 return *this;
70 }
72
74
78 inline const Aws::String& GetProviderEndpoint() const { return m_providerEndpoint; }
79 inline bool ProviderEndpointHasBeenSet() const { return m_providerEndpointHasBeenSet; }
80 template <typename ProviderEndpointT = Aws::String>
81 void SetProviderEndpoint(ProviderEndpointT&& value) {
82 m_providerEndpointHasBeenSet = true;
83 m_providerEndpoint = std::forward<ProviderEndpointT>(value);
84 }
85 template <typename ProviderEndpointT = Aws::String>
86 CreateHostRequest& WithProviderEndpoint(ProviderEndpointT&& value) {
87 SetProviderEndpoint(std::forward<ProviderEndpointT>(value));
88 return *this;
89 }
91
93
98 inline const VpcConfiguration& GetVpcConfiguration() const { return m_vpcConfiguration; }
99 inline bool VpcConfigurationHasBeenSet() const { return m_vpcConfigurationHasBeenSet; }
100 template <typename VpcConfigurationT = VpcConfiguration>
101 void SetVpcConfiguration(VpcConfigurationT&& value) {
102 m_vpcConfigurationHasBeenSet = true;
103 m_vpcConfiguration = std::forward<VpcConfigurationT>(value);
104 }
105 template <typename VpcConfigurationT = VpcConfiguration>
106 CreateHostRequest& WithVpcConfiguration(VpcConfigurationT&& value) {
107 SetVpcConfiguration(std::forward<VpcConfigurationT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
117 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
118 template <typename TagsT = Aws::Vector<Tag>>
119 void SetTags(TagsT&& value) {
120 m_tagsHasBeenSet = true;
121 m_tags = std::forward<TagsT>(value);
122 }
123 template <typename TagsT = Aws::Vector<Tag>>
124 CreateHostRequest& WithTags(TagsT&& value) {
125 SetTags(std::forward<TagsT>(value));
126 return *this;
127 }
128 template <typename TagsT = Tag>
129 CreateHostRequest& AddTags(TagsT&& value) {
130 m_tagsHasBeenSet = true;
131 m_tags.emplace_back(std::forward<TagsT>(value));
132 return *this;
133 }
135 private:
136 Aws::String m_name;
137
138 ProviderType m_providerType{ProviderType::NOT_SET};
139
140 Aws::String m_providerEndpoint;
141
142 VpcConfiguration m_vpcConfiguration;
143
144 Aws::Vector<Tag> m_tags;
145 bool m_nameHasBeenSet = false;
146 bool m_providerTypeHasBeenSet = false;
147 bool m_providerEndpointHasBeenSet = false;
148 bool m_vpcConfigurationHasBeenSet = false;
149 bool m_tagsHasBeenSet = false;
150};
151
152} // namespace Model
153} // namespace CodeStarconnections
154} // namespace Aws
CreateHostRequest & WithVpcConfiguration(VpcConfigurationT &&value)
CreateHostRequest & WithProviderType(ProviderType value)
CreateHostRequest & WithProviderEndpoint(ProviderEndpointT &&value)
AWS_CODESTARCONNECTIONS_API Aws::String SerializePayload() const override
void SetProviderEndpoint(ProviderEndpointT &&value)
const VpcConfiguration & GetVpcConfiguration() const
virtual const char * GetServiceRequestName() const override
AWS_CODESTARCONNECTIONS_API CreateHostRequest()=default
AWS_CODESTARCONNECTIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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