AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateHostRequest.h
1
6#pragma once
7#include <aws/codestar-connections/CodeStarconnections_EXPORTS.h>
8#include <aws/codestar-connections/CodeStarconnectionsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/codestar-connections/model/ProviderType.h>
11#include <aws/codestar-connections/model/VpcConfiguration.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/codestar-connections/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace CodeStarconnections
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_CODESTARCONNECTIONS_API CreateHostRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateHost"; }
35
36 AWS_CODESTARCONNECTIONS_API Aws::String SerializePayload() const override;
37
38 AWS_CODESTARCONNECTIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template<typename NameT = Aws::String>
48 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
49 template<typename NameT = Aws::String>
50 CreateHostRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
52
54
59 inline ProviderType GetProviderType() const { return m_providerType; }
60 inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
61 inline void SetProviderType(ProviderType value) { m_providerTypeHasBeenSet = true; m_providerType = value; }
62 inline CreateHostRequest& WithProviderType(ProviderType value) { SetProviderType(value); return *this;}
64
66
70 inline const Aws::String& GetProviderEndpoint() const { return m_providerEndpoint; }
71 inline bool ProviderEndpointHasBeenSet() const { return m_providerEndpointHasBeenSet; }
72 template<typename ProviderEndpointT = Aws::String>
73 void SetProviderEndpoint(ProviderEndpointT&& value) { m_providerEndpointHasBeenSet = true; m_providerEndpoint = std::forward<ProviderEndpointT>(value); }
74 template<typename ProviderEndpointT = Aws::String>
75 CreateHostRequest& WithProviderEndpoint(ProviderEndpointT&& value) { SetProviderEndpoint(std::forward<ProviderEndpointT>(value)); return *this;}
77
79
84 inline const VpcConfiguration& GetVpcConfiguration() const { return m_vpcConfiguration; }
85 inline bool VpcConfigurationHasBeenSet() const { return m_vpcConfigurationHasBeenSet; }
86 template<typename VpcConfigurationT = VpcConfiguration>
87 void SetVpcConfiguration(VpcConfigurationT&& value) { m_vpcConfigurationHasBeenSet = true; m_vpcConfiguration = std::forward<VpcConfigurationT>(value); }
88 template<typename VpcConfigurationT = VpcConfiguration>
89 CreateHostRequest& WithVpcConfiguration(VpcConfigurationT&& value) { SetVpcConfiguration(std::forward<VpcConfigurationT>(value)); return *this;}
91
93
96 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
97 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
98 template<typename TagsT = Aws::Vector<Tag>>
99 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
100 template<typename TagsT = Aws::Vector<Tag>>
101 CreateHostRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
102 template<typename TagsT = Tag>
103 CreateHostRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
105 private:
106
107 Aws::String m_name;
108 bool m_nameHasBeenSet = false;
109
110 ProviderType m_providerType{ProviderType::NOT_SET};
111 bool m_providerTypeHasBeenSet = false;
112
113 Aws::String m_providerEndpoint;
114 bool m_providerEndpointHasBeenSet = false;
115
116 VpcConfiguration m_vpcConfiguration;
117 bool m_vpcConfigurationHasBeenSet = false;
118
119 Aws::Vector<Tag> m_tags;
120 bool m_tagsHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace CodeStarconnections
125} // 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
void SetVpcConfiguration(VpcConfigurationT &&value)
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