AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateHostRequest.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/VpcConfiguration.h>
11#include <utility>
12
13namespace Aws
14{
15namespace CodeStarconnections
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CODESTARCONNECTIONS_API UpdateHostRequest() = 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 "UpdateHost"; }
32
33 AWS_CODESTARCONNECTIONS_API Aws::String SerializePayload() const override;
34
35 AWS_CODESTARCONNECTIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
42 inline const Aws::String& GetHostArn() const { return m_hostArn; }
43 inline bool HostArnHasBeenSet() const { return m_hostArnHasBeenSet; }
44 template<typename HostArnT = Aws::String>
45 void SetHostArn(HostArnT&& value) { m_hostArnHasBeenSet = true; m_hostArn = std::forward<HostArnT>(value); }
46 template<typename HostArnT = Aws::String>
47 UpdateHostRequest& WithHostArn(HostArnT&& value) { SetHostArn(std::forward<HostArnT>(value)); return *this;}
49
51
54 inline const Aws::String& GetProviderEndpoint() const { return m_providerEndpoint; }
55 inline bool ProviderEndpointHasBeenSet() const { return m_providerEndpointHasBeenSet; }
56 template<typename ProviderEndpointT = Aws::String>
57 void SetProviderEndpoint(ProviderEndpointT&& value) { m_providerEndpointHasBeenSet = true; m_providerEndpoint = std::forward<ProviderEndpointT>(value); }
58 template<typename ProviderEndpointT = Aws::String>
59 UpdateHostRequest& WithProviderEndpoint(ProviderEndpointT&& value) { SetProviderEndpoint(std::forward<ProviderEndpointT>(value)); return *this;}
61
63
68 inline const VpcConfiguration& GetVpcConfiguration() const { return m_vpcConfiguration; }
69 inline bool VpcConfigurationHasBeenSet() const { return m_vpcConfigurationHasBeenSet; }
70 template<typename VpcConfigurationT = VpcConfiguration>
71 void SetVpcConfiguration(VpcConfigurationT&& value) { m_vpcConfigurationHasBeenSet = true; m_vpcConfiguration = std::forward<VpcConfigurationT>(value); }
72 template<typename VpcConfigurationT = VpcConfiguration>
73 UpdateHostRequest& WithVpcConfiguration(VpcConfigurationT&& value) { SetVpcConfiguration(std::forward<VpcConfigurationT>(value)); return *this;}
75 private:
76
77 Aws::String m_hostArn;
78 bool m_hostArnHasBeenSet = false;
79
80 Aws::String m_providerEndpoint;
81 bool m_providerEndpointHasBeenSet = false;
82
83 VpcConfiguration m_vpcConfiguration;
84 bool m_vpcConfigurationHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace CodeStarconnections
89} // 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