AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Host.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 {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CodeStarconnections {
22namespace Model {
23
35class Host {
36 public:
37 AWS_CODESTARCONNECTIONS_API Host() = default;
38 AWS_CODESTARCONNECTIONS_API Host(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODESTARCONNECTIONS_API Host& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CODESTARCONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template <typename NameT = Aws::String>
49 void SetName(NameT&& value) {
50 m_nameHasBeenSet = true;
51 m_name = std::forward<NameT>(value);
52 }
53 template <typename NameT = Aws::String>
54 Host& WithName(NameT&& value) {
55 SetName(std::forward<NameT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetHostArn() const { return m_hostArn; }
65 inline bool HostArnHasBeenSet() const { return m_hostArnHasBeenSet; }
66 template <typename HostArnT = Aws::String>
67 void SetHostArn(HostArnT&& value) {
68 m_hostArnHasBeenSet = true;
69 m_hostArn = std::forward<HostArnT>(value);
70 }
71 template <typename HostArnT = Aws::String>
72 Host& WithHostArn(HostArnT&& value) {
73 SetHostArn(std::forward<HostArnT>(value));
74 return *this;
75 }
77
79
84 inline ProviderType GetProviderType() const { return m_providerType; }
85 inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
86 inline void SetProviderType(ProviderType value) {
87 m_providerTypeHasBeenSet = true;
88 m_providerType = value;
89 }
91 SetProviderType(value);
92 return *this;
93 }
95
97
100 inline const Aws::String& GetProviderEndpoint() const { return m_providerEndpoint; }
101 inline bool ProviderEndpointHasBeenSet() const { return m_providerEndpointHasBeenSet; }
102 template <typename ProviderEndpointT = Aws::String>
103 void SetProviderEndpoint(ProviderEndpointT&& value) {
104 m_providerEndpointHasBeenSet = true;
105 m_providerEndpoint = std::forward<ProviderEndpointT>(value);
106 }
107 template <typename ProviderEndpointT = Aws::String>
108 Host& WithProviderEndpoint(ProviderEndpointT&& value) {
109 SetProviderEndpoint(std::forward<ProviderEndpointT>(value));
110 return *this;
111 }
113
115
118 inline const VpcConfiguration& GetVpcConfiguration() const { return m_vpcConfiguration; }
119 inline bool VpcConfigurationHasBeenSet() const { return m_vpcConfigurationHasBeenSet; }
120 template <typename VpcConfigurationT = VpcConfiguration>
121 void SetVpcConfiguration(VpcConfigurationT&& value) {
122 m_vpcConfigurationHasBeenSet = true;
123 m_vpcConfiguration = std::forward<VpcConfigurationT>(value);
124 }
125 template <typename VpcConfigurationT = VpcConfiguration>
126 Host& WithVpcConfiguration(VpcConfigurationT&& value) {
127 SetVpcConfiguration(std::forward<VpcConfigurationT>(value));
128 return *this;
129 }
131
133
137 inline const Aws::String& GetStatus() const { return m_status; }
138 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
139 template <typename StatusT = Aws::String>
140 void SetStatus(StatusT&& value) {
141 m_statusHasBeenSet = true;
142 m_status = std::forward<StatusT>(value);
143 }
144 template <typename StatusT = Aws::String>
145 Host& WithStatus(StatusT&& value) {
146 SetStatus(std::forward<StatusT>(value));
147 return *this;
148 }
150
152
155 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
156 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
157 template <typename StatusMessageT = Aws::String>
158 void SetStatusMessage(StatusMessageT&& value) {
159 m_statusMessageHasBeenSet = true;
160 m_statusMessage = std::forward<StatusMessageT>(value);
161 }
162 template <typename StatusMessageT = Aws::String>
163 Host& WithStatusMessage(StatusMessageT&& value) {
164 SetStatusMessage(std::forward<StatusMessageT>(value));
165 return *this;
166 }
168 private:
169 Aws::String m_name;
170
171 Aws::String m_hostArn;
172
173 ProviderType m_providerType{ProviderType::NOT_SET};
174
175 Aws::String m_providerEndpoint;
176
177 VpcConfiguration m_vpcConfiguration;
178
179 Aws::String m_status;
180
181 Aws::String m_statusMessage;
182 bool m_nameHasBeenSet = false;
183 bool m_hostArnHasBeenSet = false;
184 bool m_providerTypeHasBeenSet = false;
185 bool m_providerEndpointHasBeenSet = false;
186 bool m_vpcConfigurationHasBeenSet = false;
187 bool m_statusHasBeenSet = false;
188 bool m_statusMessageHasBeenSet = false;
189};
190
191} // namespace Model
192} // namespace CodeStarconnections
193} // namespace Aws
ProviderType GetProviderType() const
Definition Host.h:84
bool ProviderEndpointHasBeenSet() const
Definition Host.h:101
Host & WithVpcConfiguration(VpcConfigurationT &&value)
Definition Host.h:126
const Aws::String & GetStatus() const
Definition Host.h:137
void SetName(NameT &&value)
Definition Host.h:49
void SetProviderEndpoint(ProviderEndpointT &&value)
Definition Host.h:103
const Aws::String & GetHostArn() const
Definition Host.h:64
AWS_CODESTARCONNECTIONS_API Host()=default
AWS_CODESTARCONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const
Host & WithHostArn(HostArnT &&value)
Definition Host.h:72
Host & WithName(NameT &&value)
Definition Host.h:54
const VpcConfiguration & GetVpcConfiguration() const
Definition Host.h:118
void SetStatusMessage(StatusMessageT &&value)
Definition Host.h:158
Host & WithStatus(StatusT &&value)
Definition Host.h:145
Host & WithProviderType(ProviderType value)
Definition Host.h:90
Host & WithStatusMessage(StatusMessageT &&value)
Definition Host.h:163
const Aws::String & GetStatusMessage() const
Definition Host.h:155
const Aws::String & GetName() const
Definition Host.h:46
Host & WithProviderEndpoint(ProviderEndpointT &&value)
Definition Host.h:108
void SetHostArn(HostArnT &&value)
Definition Host.h:67
AWS_CODESTARCONNECTIONS_API Host & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetProviderEndpoint() const
Definition Host.h:100
void SetStatus(StatusT &&value)
Definition Host.h:140
void SetVpcConfiguration(VpcConfigurationT &&value)
Definition Host.h:121
bool VpcConfigurationHasBeenSet() const
Definition Host.h:119
AWS_CODESTARCONNECTIONS_API Host(Aws::Utils::Json::JsonView jsonValue)
void SetProviderType(ProviderType value)
Definition Host.h:86
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue