AWS SDK for C++

AWS SDK for C++ Version 1.11.760

Loading...
Searching...
No Matches
GetHostResult.h
1
6#pragma once
7#include <aws/codeconnections/CodeConnections_EXPORTS.h>
8#include <aws/codeconnections/model/ProviderType.h>
9#include <aws/codeconnections/model/VpcConfiguration.h>
10#include <aws/core/http/HttpResponse.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace CodeConnections {
25namespace Model {
27 public:
28 AWS_CODECONNECTIONS_API GetHostResult() = default;
31
33
36 inline const Aws::String& GetName() const { return m_name; }
37 template <typename NameT = Aws::String>
38 void SetName(NameT&& value) {
39 m_nameHasBeenSet = true;
40 m_name = std::forward<NameT>(value);
41 }
42 template <typename NameT = Aws::String>
43 GetHostResult& WithName(NameT&& value) {
44 SetName(std::forward<NameT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetStatus() const { return m_status; }
54 template <typename StatusT = Aws::String>
55 void SetStatus(StatusT&& value) {
56 m_statusHasBeenSet = true;
57 m_status = std::forward<StatusT>(value);
58 }
59 template <typename StatusT = Aws::String>
60 GetHostResult& WithStatus(StatusT&& value) {
61 SetStatus(std::forward<StatusT>(value));
62 return *this;
63 }
65
67
71 inline ProviderType GetProviderType() const { return m_providerType; }
72 inline void SetProviderType(ProviderType value) {
73 m_providerTypeHasBeenSet = true;
74 m_providerType = value;
75 }
77 SetProviderType(value);
78 return *this;
79 }
81
83
86 inline const Aws::String& GetProviderEndpoint() const { return m_providerEndpoint; }
87 template <typename ProviderEndpointT = Aws::String>
88 void SetProviderEndpoint(ProviderEndpointT&& value) {
89 m_providerEndpointHasBeenSet = true;
90 m_providerEndpoint = std::forward<ProviderEndpointT>(value);
91 }
92 template <typename ProviderEndpointT = Aws::String>
93 GetHostResult& WithProviderEndpoint(ProviderEndpointT&& value) {
94 SetProviderEndpoint(std::forward<ProviderEndpointT>(value));
95 return *this;
96 }
98
100
103 inline const VpcConfiguration& GetVpcConfiguration() const { return m_vpcConfiguration; }
104 template <typename VpcConfigurationT = VpcConfiguration>
105 void SetVpcConfiguration(VpcConfigurationT&& value) {
106 m_vpcConfigurationHasBeenSet = true;
107 m_vpcConfiguration = std::forward<VpcConfigurationT>(value);
108 }
109 template <typename VpcConfigurationT = VpcConfiguration>
110 GetHostResult& WithVpcConfiguration(VpcConfigurationT&& value) {
111 SetVpcConfiguration(std::forward<VpcConfigurationT>(value));
112 return *this;
113 }
115
117
118 inline const Aws::String& GetRequestId() const { return m_requestId; }
119 template <typename RequestIdT = Aws::String>
120 void SetRequestId(RequestIdT&& value) {
121 m_requestIdHasBeenSet = true;
122 m_requestId = std::forward<RequestIdT>(value);
123 }
124 template <typename RequestIdT = Aws::String>
125 GetHostResult& WithRequestId(RequestIdT&& value) {
126 SetRequestId(std::forward<RequestIdT>(value));
127 return *this;
128 }
130 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
131
132 private:
133 Aws::String m_name;
134
135 Aws::String m_status;
136
137 ProviderType m_providerType{ProviderType::NOT_SET};
138
139 Aws::String m_providerEndpoint;
140
141 VpcConfiguration m_vpcConfiguration;
142
143 Aws::String m_requestId;
144 Aws::Http::HttpResponseCode m_HttpResponseCode;
145 bool m_nameHasBeenSet = false;
146 bool m_statusHasBeenSet = false;
147 bool m_providerTypeHasBeenSet = false;
148 bool m_providerEndpointHasBeenSet = false;
149 bool m_vpcConfigurationHasBeenSet = false;
150 bool m_requestIdHasBeenSet = false;
151};
152
153} // namespace Model
154} // namespace CodeConnections
155} // namespace Aws
const VpcConfiguration & GetVpcConfiguration() const
GetHostResult & WithProviderType(ProviderType value)
AWS_CODECONNECTIONS_API GetHostResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetHostResult & WithStatus(StatusT &&value)
void SetVpcConfiguration(VpcConfigurationT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetHostResult & WithProviderEndpoint(ProviderEndpointT &&value)
void SetProviderEndpoint(ProviderEndpointT &&value)
const Aws::String & GetStatus() const
GetHostResult & WithName(NameT &&value)
AWS_CODECONNECTIONS_API GetHostResult()=default
const Aws::String & GetProviderEndpoint() const
GetHostResult & WithVpcConfiguration(VpcConfigurationT &&value)
GetHostResult & WithRequestId(RequestIdT &&value)
const Aws::String & GetRequestId() const
const Aws::String & GetName() const
AWS_CODECONNECTIONS_API GetHostResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue