AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
GetHostResult.h
1
6#pragma once
7#include <aws/codestar-connections/CodeStarconnections_EXPORTS.h>
8#include <aws/codestar-connections/model/ProviderType.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 {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace CodeStarconnections {
24namespace Model {
26 public:
27 AWS_CODESTARCONNECTIONS_API GetHostResult() = default;
30
32
35 inline const Aws::String& GetName() const { return m_name; }
36 template <typename NameT = Aws::String>
37 void SetName(NameT&& value) {
38 m_nameHasBeenSet = true;
39 m_name = std::forward<NameT>(value);
40 }
41 template <typename NameT = Aws::String>
42 GetHostResult& WithName(NameT&& value) {
43 SetName(std::forward<NameT>(value));
44 return *this;
45 }
47
49
52 inline const Aws::String& GetStatus() const { return m_status; }
53 template <typename StatusT = Aws::String>
54 void SetStatus(StatusT&& value) {
55 m_statusHasBeenSet = true;
56 m_status = std::forward<StatusT>(value);
57 }
58 template <typename StatusT = Aws::String>
59 GetHostResult& WithStatus(StatusT&& value) {
60 SetStatus(std::forward<StatusT>(value));
61 return *this;
62 }
64
66
70 inline ProviderType GetProviderType() const { return m_providerType; }
71 inline void SetProviderType(ProviderType value) {
72 m_providerTypeHasBeenSet = true;
73 m_providerType = value;
74 }
76 SetProviderType(value);
77 return *this;
78 }
80
82
85 inline const Aws::String& GetProviderEndpoint() const { return m_providerEndpoint; }
86 template <typename ProviderEndpointT = Aws::String>
87 void SetProviderEndpoint(ProviderEndpointT&& value) {
88 m_providerEndpointHasBeenSet = true;
89 m_providerEndpoint = std::forward<ProviderEndpointT>(value);
90 }
91 template <typename ProviderEndpointT = Aws::String>
92 GetHostResult& WithProviderEndpoint(ProviderEndpointT&& value) {
93 SetProviderEndpoint(std::forward<ProviderEndpointT>(value));
94 return *this;
95 }
97
99
102 inline const VpcConfiguration& GetVpcConfiguration() const { return m_vpcConfiguration; }
103 template <typename VpcConfigurationT = VpcConfiguration>
104 void SetVpcConfiguration(VpcConfigurationT&& value) {
105 m_vpcConfigurationHasBeenSet = true;
106 m_vpcConfiguration = std::forward<VpcConfigurationT>(value);
107 }
108 template <typename VpcConfigurationT = VpcConfiguration>
109 GetHostResult& WithVpcConfiguration(VpcConfigurationT&& value) {
110 SetVpcConfiguration(std::forward<VpcConfigurationT>(value));
111 return *this;
112 }
114
116
117 inline const Aws::String& GetRequestId() const { return m_requestId; }
118 template <typename RequestIdT = Aws::String>
119 void SetRequestId(RequestIdT&& value) {
120 m_requestIdHasBeenSet = true;
121 m_requestId = std::forward<RequestIdT>(value);
122 }
123 template <typename RequestIdT = Aws::String>
124 GetHostResult& WithRequestId(RequestIdT&& value) {
125 SetRequestId(std::forward<RequestIdT>(value));
126 return *this;
127 }
129 private:
130 Aws::String m_name;
131
132 Aws::String m_status;
133
134 ProviderType m_providerType{ProviderType::NOT_SET};
135
136 Aws::String m_providerEndpoint;
137
138 VpcConfiguration m_vpcConfiguration;
139
140 Aws::String m_requestId;
141 bool m_nameHasBeenSet = false;
142 bool m_statusHasBeenSet = false;
143 bool m_providerTypeHasBeenSet = false;
144 bool m_providerEndpointHasBeenSet = false;
145 bool m_vpcConfigurationHasBeenSet = false;
146 bool m_requestIdHasBeenSet = false;
147};
148
149} // namespace Model
150} // namespace CodeStarconnections
151} // namespace Aws
GetHostResult & WithRequestId(RequestIdT &&value)
void SetProviderEndpoint(ProviderEndpointT &&value)
AWS_CODESTARCONNECTIONS_API GetHostResult()=default
AWS_CODESTARCONNECTIONS_API GetHostResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetHostResult & WithProviderEndpoint(ProviderEndpointT &&value)
GetHostResult & WithName(NameT &&value)
const Aws::String & GetProviderEndpoint() const
AWS_CODESTARCONNECTIONS_API GetHostResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetHostResult & WithStatus(StatusT &&value)
const VpcConfiguration & GetVpcConfiguration() const
GetHostResult & WithProviderType(ProviderType value)
void SetVpcConfiguration(VpcConfigurationT &&value)
GetHostResult & WithVpcConfiguration(VpcConfigurationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue