AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
56 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
57 inline Host& WithName(const Aws::String& value) { SetName(value); return *this;}
58 inline Host& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
59 inline Host& WithName(const char* value) { SetName(value); return *this;}
61
63
66 inline const Aws::String& GetHostArn() const{ return m_hostArn; }
67 inline bool HostArnHasBeenSet() const { return m_hostArnHasBeenSet; }
68 inline void SetHostArn(const Aws::String& value) { m_hostArnHasBeenSet = true; m_hostArn = value; }
69 inline void SetHostArn(Aws::String&& value) { m_hostArnHasBeenSet = true; m_hostArn = std::move(value); }
70 inline void SetHostArn(const char* value) { m_hostArnHasBeenSet = true; m_hostArn.assign(value); }
71 inline Host& WithHostArn(const Aws::String& value) { SetHostArn(value); return *this;}
72 inline Host& WithHostArn(Aws::String&& value) { SetHostArn(std::move(value)); return *this;}
73 inline Host& WithHostArn(const char* value) { SetHostArn(value); return *this;}
75
77
82 inline const ProviderType& GetProviderType() const{ return m_providerType; }
83 inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
84 inline void SetProviderType(const ProviderType& value) { m_providerTypeHasBeenSet = true; m_providerType = value; }
85 inline void SetProviderType(ProviderType&& value) { m_providerTypeHasBeenSet = true; m_providerType = std::move(value); }
86 inline Host& WithProviderType(const ProviderType& value) { SetProviderType(value); return *this;}
87 inline Host& WithProviderType(ProviderType&& value) { SetProviderType(std::move(value)); return *this;}
89
91
94 inline const Aws::String& GetProviderEndpoint() const{ return m_providerEndpoint; }
95 inline bool ProviderEndpointHasBeenSet() const { return m_providerEndpointHasBeenSet; }
96 inline void SetProviderEndpoint(const Aws::String& value) { m_providerEndpointHasBeenSet = true; m_providerEndpoint = value; }
97 inline void SetProviderEndpoint(Aws::String&& value) { m_providerEndpointHasBeenSet = true; m_providerEndpoint = std::move(value); }
98 inline void SetProviderEndpoint(const char* value) { m_providerEndpointHasBeenSet = true; m_providerEndpoint.assign(value); }
99 inline Host& WithProviderEndpoint(const Aws::String& value) { SetProviderEndpoint(value); return *this;}
100 inline Host& WithProviderEndpoint(Aws::String&& value) { SetProviderEndpoint(std::move(value)); return *this;}
101 inline Host& WithProviderEndpoint(const char* value) { SetProviderEndpoint(value); return *this;}
103
105
108 inline const VpcConfiguration& GetVpcConfiguration() const{ return m_vpcConfiguration; }
109 inline bool VpcConfigurationHasBeenSet() const { return m_vpcConfigurationHasBeenSet; }
110 inline void SetVpcConfiguration(const VpcConfiguration& value) { m_vpcConfigurationHasBeenSet = true; m_vpcConfiguration = value; }
111 inline void SetVpcConfiguration(VpcConfiguration&& value) { m_vpcConfigurationHasBeenSet = true; m_vpcConfiguration = std::move(value); }
112 inline Host& WithVpcConfiguration(const VpcConfiguration& value) { SetVpcConfiguration(value); return *this;}
113 inline Host& WithVpcConfiguration(VpcConfiguration&& value) { SetVpcConfiguration(std::move(value)); return *this;}
115
117
121 inline const Aws::String& GetStatus() const{ return m_status; }
122 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
123 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
124 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
125 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
126 inline Host& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
127 inline Host& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
128 inline Host& WithStatus(const char* value) { SetStatus(value); return *this;}
130
132
135 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
136 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
137 inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
138 inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
139 inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
140 inline Host& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
141 inline Host& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
142 inline Host& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
144 private:
145
146 Aws::String m_name;
147 bool m_nameHasBeenSet = false;
148
149 Aws::String m_hostArn;
150 bool m_hostArnHasBeenSet = false;
151
152 ProviderType m_providerType;
153 bool m_providerTypeHasBeenSet = false;
154
155 Aws::String m_providerEndpoint;
156 bool m_providerEndpointHasBeenSet = false;
157
158 VpcConfiguration m_vpcConfiguration;
159 bool m_vpcConfigurationHasBeenSet = false;
160
161 Aws::String m_status;
162 bool m_statusHasBeenSet = false;
163
164 Aws::String m_statusMessage;
165 bool m_statusMessageHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace CodeConnections
170} // namespace Aws
Host & WithVpcConfiguration(const VpcConfiguration &value)
Definition Host.h:112
const ProviderType & GetProviderType() const
Definition Host.h:82
void SetName(const Aws::String &value)
Definition Host.h:54
Host & WithProviderType(ProviderType &&value)
Definition Host.h:87
void SetStatus(const char *value)
Definition Host.h:125
AWS_CODECONNECTIONS_API Host & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetProviderType(ProviderType &&value)
Definition Host.h:85
void SetVpcConfiguration(VpcConfiguration &&value)
Definition Host.h:111
void SetStatusMessage(Aws::String &&value)
Definition Host.h:138
void SetHostArn(const Aws::String &value)
Definition Host.h:68
Host & WithVpcConfiguration(VpcConfiguration &&value)
Definition Host.h:113
Host & WithStatusMessage(const char *value)
Definition Host.h:142
const Aws::String & GetHostArn() const
Definition Host.h:66
Host & WithProviderType(const ProviderType &value)
Definition Host.h:86
bool StatusMessageHasBeenSet() const
Definition Host.h:136
Host & WithHostArn(const char *value)
Definition Host.h:73
bool HostArnHasBeenSet() const
Definition Host.h:67
const Aws::String & GetStatus() const
Definition Host.h:121
void SetStatusMessage(const char *value)
Definition Host.h:139
void SetStatus(const Aws::String &value)
Definition Host.h:123
Host & WithName(const char *value)
Definition Host.h:59
Host & WithProviderEndpoint(const char *value)
Definition Host.h:101
Host & WithHostArn(const Aws::String &value)
Definition Host.h:71
void SetStatus(Aws::String &&value)
Definition Host.h:124
Host & WithStatus(const Aws::String &value)
Definition Host.h:126
AWS_CODECONNECTIONS_API Host(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetStatusMessage() const
Definition Host.h:135
Host & WithName(const Aws::String &value)
Definition Host.h:57
Host & WithStatus(Aws::String &&value)
Definition Host.h:127
void SetHostArn(Aws::String &&value)
Definition Host.h:69
Host & WithStatusMessage(const Aws::String &value)
Definition Host.h:140
const Aws::String & GetProviderEndpoint() const
Definition Host.h:94
Host & WithProviderEndpoint(Aws::String &&value)
Definition Host.h:100
Host & WithStatus(const char *value)
Definition Host.h:128
void SetName(const char *value)
Definition Host.h:56
void SetProviderEndpoint(const char *value)
Definition Host.h:98
Host & WithProviderEndpoint(const Aws::String &value)
Definition Host.h:99
Host & WithName(Aws::String &&value)
Definition Host.h:58
const Aws::String & GetName() const
Definition Host.h:52
Host & WithStatusMessage(Aws::String &&value)
Definition Host.h:141
void SetVpcConfiguration(const VpcConfiguration &value)
Definition Host.h:110
AWS_CODECONNECTIONS_API Host()
const VpcConfiguration & GetVpcConfiguration() const
Definition Host.h:108
void SetHostArn(const char *value)
Definition Host.h:70
bool ProviderEndpointHasBeenSet() const
Definition Host.h:95
void SetProviderType(const ProviderType &value)
Definition Host.h:84
void SetProviderEndpoint(Aws::String &&value)
Definition Host.h:97
bool VpcConfigurationHasBeenSet() const
Definition Host.h:109
AWS_CODECONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetProviderEndpoint(const Aws::String &value)
Definition Host.h:96
void SetName(Aws::String &&value)
Definition Host.h:55
void SetStatusMessage(const Aws::String &value)
Definition Host.h:137
bool ProviderTypeHasBeenSet() const
Definition Host.h:83
Host & WithHostArn(Aws::String &&value)
Definition Host.h:72
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue