AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateInstanceCustomHealthStatusRequest.h
1
6#pragma once
7#include <aws/servicediscovery/ServiceDiscovery_EXPORTS.h>
8#include <aws/servicediscovery/ServiceDiscoveryRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/servicediscovery/model/CustomHealthStatus.h>
11#include <utility>
12
13namespace Aws
14{
15namespace ServiceDiscovery
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_SERVICEDISCOVERY_API UpdateInstanceCustomHealthStatusRequest();
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_SERVICEDISCOVERY_API Aws::String SerializePayload() const override;
34
35 AWS_SERVICEDISCOVERY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
43 inline const Aws::String& GetServiceId() const{ return m_serviceId; }
44 inline bool ServiceIdHasBeenSet() const { return m_serviceIdHasBeenSet; }
45 inline void SetServiceId(const Aws::String& value) { m_serviceIdHasBeenSet = true; m_serviceId = value; }
46 inline void SetServiceId(Aws::String&& value) { m_serviceIdHasBeenSet = true; m_serviceId = std::move(value); }
47 inline void SetServiceId(const char* value) { m_serviceIdHasBeenSet = true; m_serviceId.assign(value); }
49 inline UpdateInstanceCustomHealthStatusRequest& WithServiceId(Aws::String&& value) { SetServiceId(std::move(value)); return *this;}
50 inline UpdateInstanceCustomHealthStatusRequest& WithServiceId(const char* value) { SetServiceId(value); return *this;}
52
54
57 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
58 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
59 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
60 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
61 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
63 inline UpdateInstanceCustomHealthStatusRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
64 inline UpdateInstanceCustomHealthStatusRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
66
68
72 inline const CustomHealthStatus& GetStatus() const{ return m_status; }
73 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
74 inline void SetStatus(const CustomHealthStatus& value) { m_statusHasBeenSet = true; m_status = value; }
75 inline void SetStatus(CustomHealthStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
77 inline UpdateInstanceCustomHealthStatusRequest& WithStatus(CustomHealthStatus&& value) { SetStatus(std::move(value)); return *this;}
79 private:
80
81 Aws::String m_serviceId;
82 bool m_serviceIdHasBeenSet = false;
83
84 Aws::String m_instanceId;
85 bool m_instanceIdHasBeenSet = false;
86
87 CustomHealthStatus m_status;
88 bool m_statusHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace ServiceDiscovery
93} // namespace Aws
UpdateInstanceCustomHealthStatusRequest & WithStatus(CustomHealthStatus &&value)
UpdateInstanceCustomHealthStatusRequest & WithInstanceId(const Aws::String &value)
UpdateInstanceCustomHealthStatusRequest & WithServiceId(const Aws::String &value)
AWS_SERVICEDISCOVERY_API Aws::String SerializePayload() const override
UpdateInstanceCustomHealthStatusRequest & WithInstanceId(Aws::String &&value)
UpdateInstanceCustomHealthStatusRequest & WithInstanceId(const char *value)
UpdateInstanceCustomHealthStatusRequest & WithServiceId(Aws::String &&value)
UpdateInstanceCustomHealthStatusRequest & WithStatus(const CustomHealthStatus &value)
AWS_SERVICEDISCOVERY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String