AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Host.h
1
6#pragma once
7#include <aws/codeconnections/CodeConnections_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codeconnections/model/ProviderType.h>
10#include <aws/codeconnections/model/VpcConfiguration.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CodeConnections
24{
25namespace Model
26{
27
39 class Host
40 {
41 public:
42 AWS_CODECONNECTIONS_API Host() = default;
43 AWS_CODECONNECTIONS_API Host(Aws::Utils::Json::JsonView jsonValue);
44 AWS_CODECONNECTIONS_API Host& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_CODECONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetName() const { return m_name; }
53 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 template<typename NameT = Aws::String>
55 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
56 template<typename NameT = Aws::String>
57 Host& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_hostArnHasBeenSet = true; m_hostArn = std::forward<HostArnT>(value); }
68 template<typename HostArnT = Aws::String>
69 Host& WithHostArn(HostArnT&& value) { SetHostArn(std::forward<HostArnT>(value)); return *this;}
71
73
78 inline ProviderType GetProviderType() const { return m_providerType; }
79 inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
80 inline void SetProviderType(ProviderType value) { m_providerTypeHasBeenSet = true; m_providerType = value; }
81 inline Host& WithProviderType(ProviderType value) { SetProviderType(value); return *this;}
83
85
88 inline const Aws::String& GetProviderEndpoint() const { return m_providerEndpoint; }
89 inline bool ProviderEndpointHasBeenSet() const { return m_providerEndpointHasBeenSet; }
90 template<typename ProviderEndpointT = Aws::String>
91 void SetProviderEndpoint(ProviderEndpointT&& value) { m_providerEndpointHasBeenSet = true; m_providerEndpoint = std::forward<ProviderEndpointT>(value); }
92 template<typename ProviderEndpointT = Aws::String>
93 Host& WithProviderEndpoint(ProviderEndpointT&& value) { SetProviderEndpoint(std::forward<ProviderEndpointT>(value)); return *this;}
95
97
100 inline const VpcConfiguration& GetVpcConfiguration() const { return m_vpcConfiguration; }
101 inline bool VpcConfigurationHasBeenSet() const { return m_vpcConfigurationHasBeenSet; }
102 template<typename VpcConfigurationT = VpcConfiguration>
103 void SetVpcConfiguration(VpcConfigurationT&& value) { m_vpcConfigurationHasBeenSet = true; m_vpcConfiguration = std::forward<VpcConfigurationT>(value); }
104 template<typename VpcConfigurationT = VpcConfiguration>
105 Host& WithVpcConfiguration(VpcConfigurationT&& value) { SetVpcConfiguration(std::forward<VpcConfigurationT>(value)); return *this;}
107
109
113 inline const Aws::String& GetStatus() const { return m_status; }
114 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
115 template<typename StatusT = Aws::String>
116 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
117 template<typename StatusT = Aws::String>
118 Host& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
120
122
125 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
126 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
127 template<typename StatusMessageT = Aws::String>
128 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::forward<StatusMessageT>(value); }
129 template<typename StatusMessageT = Aws::String>
130 Host& WithStatusMessage(StatusMessageT&& value) { SetStatusMessage(std::forward<StatusMessageT>(value)); return *this;}
132 private:
133
134 Aws::String m_name;
135 bool m_nameHasBeenSet = false;
136
137 Aws::String m_hostArn;
138 bool m_hostArnHasBeenSet = false;
139
140 ProviderType m_providerType{ProviderType::NOT_SET};
141 bool m_providerTypeHasBeenSet = false;
142
143 Aws::String m_providerEndpoint;
144 bool m_providerEndpointHasBeenSet = false;
145
146 VpcConfiguration m_vpcConfiguration;
147 bool m_vpcConfigurationHasBeenSet = false;
148
149 Aws::String m_status;
150 bool m_statusHasBeenSet = false;
151
152 Aws::String m_statusMessage;
153 bool m_statusMessageHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace CodeConnections
158} // namespace Aws
void SetProviderType(ProviderType value)
Definition Host.h:80
AWS_CODECONNECTIONS_API Host & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetName(NameT &&value)
Definition Host.h:55
Host & WithStatusMessage(StatusMessageT &&value)
Definition Host.h:130
Host & WithHostArn(HostArnT &&value)
Definition Host.h:69
const Aws::String & GetHostArn() const
Definition Host.h:64
Host & WithStatus(StatusT &&value)
Definition Host.h:118
Host & WithProviderEndpoint(ProviderEndpointT &&value)
Definition Host.h:93
bool StatusMessageHasBeenSet() const
Definition Host.h:126
void SetProviderEndpoint(ProviderEndpointT &&value)
Definition Host.h:91
bool HostArnHasBeenSet() const
Definition Host.h:65
const Aws::String & GetStatus() const
Definition Host.h:113
Host & WithName(NameT &&value)
Definition Host.h:57
AWS_CODECONNECTIONS_API Host(Aws::Utils::Json::JsonView jsonValue)
Host & WithProviderType(ProviderType value)
Definition Host.h:81
void SetVpcConfiguration(VpcConfigurationT &&value)
Definition Host.h:103
const Aws::String & GetStatusMessage() const
Definition Host.h:125
const Aws::String & GetProviderEndpoint() const
Definition Host.h:88
void SetHostArn(HostArnT &&value)
Definition Host.h:67
Host & WithVpcConfiguration(VpcConfigurationT &&value)
Definition Host.h:105
AWS_CODECONNECTIONS_API Host()=default
const Aws::String & GetName() const
Definition Host.h:52
ProviderType GetProviderType() const
Definition Host.h:78
void SetStatusMessage(StatusMessageT &&value)
Definition Host.h:128
const VpcConfiguration & GetVpcConfiguration() const
Definition Host.h:100
void SetStatus(StatusT &&value)
Definition Host.h:116
bool ProviderEndpointHasBeenSet() const
Definition Host.h:89
bool VpcConfigurationHasBeenSet() const
Definition Host.h:101
AWS_CODECONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const
bool ProviderTypeHasBeenSet() const
Definition Host.h:79
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue