AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UpdateHostRequest.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/VpcConfiguration.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace CodeStarconnections {
16namespace Model {
17
21 public:
22 AWS_CODESTARCONNECTIONS_API UpdateHostRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateHost"; }
29
30 AWS_CODESTARCONNECTIONS_API Aws::String SerializePayload() const override;
31
32 AWS_CODESTARCONNECTIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
38 inline const Aws::String& GetHostArn() const { return m_hostArn; }
39 inline bool HostArnHasBeenSet() const { return m_hostArnHasBeenSet; }
40 template <typename HostArnT = Aws::String>
41 void SetHostArn(HostArnT&& value) {
42 m_hostArnHasBeenSet = true;
43 m_hostArn = std::forward<HostArnT>(value);
44 }
45 template <typename HostArnT = Aws::String>
46 UpdateHostRequest& WithHostArn(HostArnT&& value) {
47 SetHostArn(std::forward<HostArnT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetProviderEndpoint() const { return m_providerEndpoint; }
57 inline bool ProviderEndpointHasBeenSet() const { return m_providerEndpointHasBeenSet; }
58 template <typename ProviderEndpointT = Aws::String>
59 void SetProviderEndpoint(ProviderEndpointT&& value) {
60 m_providerEndpointHasBeenSet = true;
61 m_providerEndpoint = std::forward<ProviderEndpointT>(value);
62 }
63 template <typename ProviderEndpointT = Aws::String>
64 UpdateHostRequest& WithProviderEndpoint(ProviderEndpointT&& value) {
65 SetProviderEndpoint(std::forward<ProviderEndpointT>(value));
66 return *this;
67 }
69
71
76 inline const VpcConfiguration& GetVpcConfiguration() const { return m_vpcConfiguration; }
77 inline bool VpcConfigurationHasBeenSet() const { return m_vpcConfigurationHasBeenSet; }
78 template <typename VpcConfigurationT = VpcConfiguration>
79 void SetVpcConfiguration(VpcConfigurationT&& value) {
80 m_vpcConfigurationHasBeenSet = true;
81 m_vpcConfiguration = std::forward<VpcConfigurationT>(value);
82 }
83 template <typename VpcConfigurationT = VpcConfiguration>
84 UpdateHostRequest& WithVpcConfiguration(VpcConfigurationT&& value) {
85 SetVpcConfiguration(std::forward<VpcConfigurationT>(value));
86 return *this;
87 }
89 private:
90 Aws::String m_hostArn;
91
92 Aws::String m_providerEndpoint;
93
94 VpcConfiguration m_vpcConfiguration;
95 bool m_hostArnHasBeenSet = false;
96 bool m_providerEndpointHasBeenSet = false;
97 bool m_vpcConfigurationHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace CodeStarconnections
102} // namespace Aws
UpdateHostRequest & WithProviderEndpoint(ProviderEndpointT &&value)
void SetProviderEndpoint(ProviderEndpointT &&value)
const VpcConfiguration & GetVpcConfiguration() const
AWS_CODESTARCONNECTIONS_API UpdateHostRequest()=default
UpdateHostRequest & WithVpcConfiguration(VpcConfigurationT &&value)
void SetVpcConfiguration(VpcConfigurationT &&value)
AWS_CODESTARCONNECTIONS_API Aws::String SerializePayload() const override
AWS_CODESTARCONNECTIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateHostRequest & WithHostArn(HostArnT &&value)
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String