AWS SDK for C++  1.9.104
AWS SDK for C++
UpdateInstanceCustomHealthStatusRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace ServiceDiscovery
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "UpdateInstanceCustomHealthStatus"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
42  inline const Aws::String& GetServiceId() const{ return m_serviceId; }
43 
48  inline bool ServiceIdHasBeenSet() const { return m_serviceIdHasBeenSet; }
49 
54  inline void SetServiceId(const Aws::String& value) { m_serviceIdHasBeenSet = true; m_serviceId = value; }
55 
60  inline void SetServiceId(Aws::String&& value) { m_serviceIdHasBeenSet = true; m_serviceId = std::move(value); }
61 
66  inline void SetServiceId(const char* value) { m_serviceIdHasBeenSet = true; m_serviceId.assign(value); }
67 
72  inline UpdateInstanceCustomHealthStatusRequest& WithServiceId(const Aws::String& value) { SetServiceId(value); return *this;}
73 
78  inline UpdateInstanceCustomHealthStatusRequest& WithServiceId(Aws::String&& value) { SetServiceId(std::move(value)); return *this;}
79 
84  inline UpdateInstanceCustomHealthStatusRequest& WithServiceId(const char* value) { SetServiceId(value); return *this;}
85 
86 
90  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
91 
95  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
96 
100  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
101 
105  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
106 
110  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
111 
115  inline UpdateInstanceCustomHealthStatusRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
116 
120  inline UpdateInstanceCustomHealthStatusRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
121 
125  inline UpdateInstanceCustomHealthStatusRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
126 
127 
132  inline const CustomHealthStatus& GetStatus() const{ return m_status; }
133 
138  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
139 
144  inline void SetStatus(const CustomHealthStatus& value) { m_statusHasBeenSet = true; m_status = value; }
145 
150  inline void SetStatus(CustomHealthStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
151 
156  inline UpdateInstanceCustomHealthStatusRequest& WithStatus(const CustomHealthStatus& value) { SetStatus(value); return *this;}
157 
162  inline UpdateInstanceCustomHealthStatusRequest& WithStatus(CustomHealthStatus&& value) { SetStatus(std::move(value)); return *this;}
163 
164  private:
165 
166  Aws::String m_serviceId;
167  bool m_serviceIdHasBeenSet;
168 
169  Aws::String m_instanceId;
170  bool m_instanceIdHasBeenSet;
171 
172  CustomHealthStatus m_status;
173  bool m_statusHasBeenSet;
174  };
175 
176 } // namespace Model
177 } // namespace ServiceDiscovery
178 } // namespace Aws
ServiceDiscoveryRequest.h
AWS_SERVICEDISCOVERY_API
#define AWS_SERVICEDISCOVERY_API
Definition: ServiceDiscovery_EXPORTS.h:28
Aws::ServiceDiscovery::Model::UpdateInstanceCustomHealthStatusRequest::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: UpdateInstanceCustomHealthStatusRequest.h:138
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ServiceDiscovery::Model::UpdateInstanceCustomHealthStatusRequest::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: UpdateInstanceCustomHealthStatusRequest.h:90
Aws::ServiceDiscovery::Model::UpdateInstanceCustomHealthStatusRequest::SetStatus
void SetStatus(CustomHealthStatus &&value)
Definition: UpdateInstanceCustomHealthStatusRequest.h:150
Aws::ServiceDiscovery::Model::UpdateInstanceCustomHealthStatusRequest::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: UpdateInstanceCustomHealthStatusRequest.h:95
Aws::ServiceDiscovery::Model::UpdateInstanceCustomHealthStatusRequest::SetStatus
void SetStatus(const CustomHealthStatus &value)
Definition: UpdateInstanceCustomHealthStatusRequest.h:144
Aws::ServiceDiscovery::Model::UpdateInstanceCustomHealthStatusRequest
Definition: UpdateInstanceCustomHealthStatusRequest.h:23
ServiceDiscovery_EXPORTS.h
Aws::ServiceDiscovery::Model::UpdateInstanceCustomHealthStatusRequest::WithStatus
UpdateInstanceCustomHealthStatusRequest & WithStatus(CustomHealthStatus &&value)
Definition: UpdateInstanceCustomHealthStatusRequest.h:162
Aws::ServiceDiscovery::Model::UpdateInstanceCustomHealthStatusRequest::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: UpdateInstanceCustomHealthStatusRequest.h:105
Aws::ServiceDiscovery::Model::UpdateInstanceCustomHealthStatusRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateInstanceCustomHealthStatusRequest.h:31
Aws::ServiceDiscovery::Model::UpdateInstanceCustomHealthStatusRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ServiceDiscovery::Model::UpdateInstanceCustomHealthStatusRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ServiceDiscovery::Model::UpdateInstanceCustomHealthStatusRequest::ServiceIdHasBeenSet
bool ServiceIdHasBeenSet() const
Definition: UpdateInstanceCustomHealthStatusRequest.h:48
Aws::ServiceDiscovery::Model::UpdateInstanceCustomHealthStatusRequest::SetInstanceId
void SetInstanceId(const char *value)
Definition: UpdateInstanceCustomHealthStatusRequest.h:110
Aws::ServiceDiscovery::Model::CustomHealthStatus
CustomHealthStatus
Definition: CustomHealthStatus.h:17
Aws::ServiceDiscovery::ServiceDiscoveryRequest
Definition: ServiceDiscoveryRequest.h:17
AWSString.h
Aws::ServiceDiscovery::Model::UpdateInstanceCustomHealthStatusRequest::UpdateInstanceCustomHealthStatusRequest
UpdateInstanceCustomHealthStatusRequest()
Aws::ServiceDiscovery::Model::UpdateInstanceCustomHealthStatusRequest::WithInstanceId
UpdateInstanceCustomHealthStatusRequest & WithInstanceId(const char *value)
Definition: UpdateInstanceCustomHealthStatusRequest.h:125
Aws::ServiceDiscovery::Model::UpdateInstanceCustomHealthStatusRequest::WithServiceId
UpdateInstanceCustomHealthStatusRequest & WithServiceId(Aws::String &&value)
Definition: UpdateInstanceCustomHealthStatusRequest.h:78
Aws::ServiceDiscovery::Model::UpdateInstanceCustomHealthStatusRequest::WithInstanceId
UpdateInstanceCustomHealthStatusRequest & WithInstanceId(const Aws::String &value)
Definition: UpdateInstanceCustomHealthStatusRequest.h:115
Aws::ServiceDiscovery::Model::UpdateInstanceCustomHealthStatusRequest::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: UpdateInstanceCustomHealthStatusRequest.h:100
Aws::ServiceDiscovery::Model::UpdateInstanceCustomHealthStatusRequest::SetServiceId
void SetServiceId(const Aws::String &value)
Definition: UpdateInstanceCustomHealthStatusRequest.h:54
CustomHealthStatus.h
Aws::ServiceDiscovery::Model::UpdateInstanceCustomHealthStatusRequest::SetServiceId
void SetServiceId(const char *value)
Definition: UpdateInstanceCustomHealthStatusRequest.h:66
Aws::ServiceDiscovery::Model::UpdateInstanceCustomHealthStatusRequest::WithServiceId
UpdateInstanceCustomHealthStatusRequest & WithServiceId(const Aws::String &value)
Definition: UpdateInstanceCustomHealthStatusRequest.h:72
Aws::ServiceDiscovery::Model::UpdateInstanceCustomHealthStatusRequest::GetServiceId
const Aws::String & GetServiceId() const
Definition: UpdateInstanceCustomHealthStatusRequest.h:42
Aws
Definition: AccessManagementClient.h:15
Aws::ServiceDiscovery::Model::UpdateInstanceCustomHealthStatusRequest::GetStatus
const CustomHealthStatus & GetStatus() const
Definition: UpdateInstanceCustomHealthStatusRequest.h:132
Aws::ServiceDiscovery::Model::UpdateInstanceCustomHealthStatusRequest::WithStatus
UpdateInstanceCustomHealthStatusRequest & WithStatus(const CustomHealthStatus &value)
Definition: UpdateInstanceCustomHealthStatusRequest.h:156
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ServiceDiscovery::Model::UpdateInstanceCustomHealthStatusRequest::SetServiceId
void SetServiceId(Aws::String &&value)
Definition: UpdateInstanceCustomHealthStatusRequest.h:60
Aws::ServiceDiscovery::Model::UpdateInstanceCustomHealthStatusRequest::WithServiceId
UpdateInstanceCustomHealthStatusRequest & WithServiceId(const char *value)
Definition: UpdateInstanceCustomHealthStatusRequest.h:84
Aws::ServiceDiscovery::Model::UpdateInstanceCustomHealthStatusRequest::WithInstanceId
UpdateInstanceCustomHealthStatusRequest & WithInstanceId(Aws::String &&value)
Definition: UpdateInstanceCustomHealthStatusRequest.h:120