AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateHostRequest.h
1
6#pragma once
7#include <aws/codeconnections/CodeConnections_EXPORTS.h>
8#include <aws/codeconnections/CodeConnectionsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/codeconnections/model/ProviderType.h>
11#include <aws/codeconnections/model/VpcConfiguration.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/codeconnections/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace CodeConnections
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_CODECONNECTIONS_API CreateHostRequest();
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_CODECONNECTIONS_API Aws::String SerializePayload() const override;
37
38 AWS_CODECONNECTIONS_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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
48 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
49 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
50 inline CreateHostRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
51 inline CreateHostRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
52 inline CreateHostRequest& WithName(const char* value) { SetName(value); return *this;}
54
56
61 inline const ProviderType& GetProviderType() const{ return m_providerType; }
62 inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
63 inline void SetProviderType(const ProviderType& value) { m_providerTypeHasBeenSet = true; m_providerType = value; }
64 inline void SetProviderType(ProviderType&& value) { m_providerTypeHasBeenSet = true; m_providerType = std::move(value); }
65 inline CreateHostRequest& WithProviderType(const ProviderType& value) { SetProviderType(value); return *this;}
66 inline CreateHostRequest& WithProviderType(ProviderType&& value) { SetProviderType(std::move(value)); return *this;}
68
70
74 inline const Aws::String& GetProviderEndpoint() const{ return m_providerEndpoint; }
75 inline bool ProviderEndpointHasBeenSet() const { return m_providerEndpointHasBeenSet; }
76 inline void SetProviderEndpoint(const Aws::String& value) { m_providerEndpointHasBeenSet = true; m_providerEndpoint = value; }
77 inline void SetProviderEndpoint(Aws::String&& value) { m_providerEndpointHasBeenSet = true; m_providerEndpoint = std::move(value); }
78 inline void SetProviderEndpoint(const char* value) { m_providerEndpointHasBeenSet = true; m_providerEndpoint.assign(value); }
79 inline CreateHostRequest& WithProviderEndpoint(const Aws::String& value) { SetProviderEndpoint(value); return *this;}
80 inline CreateHostRequest& WithProviderEndpoint(Aws::String&& value) { SetProviderEndpoint(std::move(value)); return *this;}
81 inline CreateHostRequest& WithProviderEndpoint(const char* value) { SetProviderEndpoint(value); return *this;}
83
85
90 inline const VpcConfiguration& GetVpcConfiguration() const{ return m_vpcConfiguration; }
91 inline bool VpcConfigurationHasBeenSet() const { return m_vpcConfigurationHasBeenSet; }
92 inline void SetVpcConfiguration(const VpcConfiguration& value) { m_vpcConfigurationHasBeenSet = true; m_vpcConfiguration = value; }
93 inline void SetVpcConfiguration(VpcConfiguration&& value) { m_vpcConfigurationHasBeenSet = true; m_vpcConfiguration = std::move(value); }
94 inline CreateHostRequest& WithVpcConfiguration(const VpcConfiguration& value) { SetVpcConfiguration(value); return *this;}
95 inline CreateHostRequest& WithVpcConfiguration(VpcConfiguration&& value) { SetVpcConfiguration(std::move(value)); return *this;}
97
99
102 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
103 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
104 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
105 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
106 inline CreateHostRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
107 inline CreateHostRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
108 inline CreateHostRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
109 inline CreateHostRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
111 private:
112
113 Aws::String m_name;
114 bool m_nameHasBeenSet = false;
115
116 ProviderType m_providerType;
117 bool m_providerTypeHasBeenSet = false;
118
119 Aws::String m_providerEndpoint;
120 bool m_providerEndpointHasBeenSet = false;
121
122 VpcConfiguration m_vpcConfiguration;
123 bool m_vpcConfigurationHasBeenSet = false;
124
125 Aws::Vector<Tag> m_tags;
126 bool m_tagsHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace CodeConnections
131} // namespace Aws
CreateHostRequest & WithProviderEndpoint(Aws::String &&value)
CreateHostRequest & WithTags(const Aws::Vector< Tag > &value)
void SetTags(const Aws::Vector< Tag > &value)
void SetVpcConfiguration(const VpcConfiguration &value)
void SetProviderType(const ProviderType &value)
AWS_CODECONNECTIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetVpcConfiguration(VpcConfiguration &&value)
CreateHostRequest & WithProviderEndpoint(const Aws::String &value)
const VpcConfiguration & GetVpcConfiguration() const
const Aws::Vector< Tag > & GetTags() const
CreateHostRequest & WithVpcConfiguration(const VpcConfiguration &value)
CreateHostRequest & WithProviderType(ProviderType &&value)
CreateHostRequest & WithName(Aws::String &&value)
CreateHostRequest & WithName(const Aws::String &value)
CreateHostRequest & WithName(const char *value)
CreateHostRequest & WithTags(Aws::Vector< Tag > &&value)
void SetProviderEndpoint(const Aws::String &value)
CreateHostRequest & WithVpcConfiguration(VpcConfiguration &&value)
virtual const char * GetServiceRequestName() const override
CreateHostRequest & AddTags(const Tag &value)
CreateHostRequest & WithProviderType(const ProviderType &value)
CreateHostRequest & WithProviderEndpoint(const char *value)
AWS_CODECONNECTIONS_API Aws::String SerializePayload() 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