AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SetInstanceHealthRequest.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/autoscaling/AutoScalingRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace AutoScaling
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_AUTOSCALING_API SetInstanceHealthRequest();
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "SetInstanceHealth"; }
31
32 AWS_AUTOSCALING_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36
37 public:
38
40
43 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
44 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
45 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
46 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
47 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
48 inline SetInstanceHealthRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
49 inline SetInstanceHealthRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
50 inline SetInstanceHealthRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
52
54
60 inline const Aws::String& GetHealthStatus() const{ return m_healthStatus; }
61 inline bool HealthStatusHasBeenSet() const { return m_healthStatusHasBeenSet; }
62 inline void SetHealthStatus(const Aws::String& value) { m_healthStatusHasBeenSet = true; m_healthStatus = value; }
63 inline void SetHealthStatus(Aws::String&& value) { m_healthStatusHasBeenSet = true; m_healthStatus = std::move(value); }
64 inline void SetHealthStatus(const char* value) { m_healthStatusHasBeenSet = true; m_healthStatus.assign(value); }
65 inline SetInstanceHealthRequest& WithHealthStatus(const Aws::String& value) { SetHealthStatus(value); return *this;}
66 inline SetInstanceHealthRequest& WithHealthStatus(Aws::String&& value) { SetHealthStatus(std::move(value)); return *this;}
67 inline SetInstanceHealthRequest& WithHealthStatus(const char* value) { SetHealthStatus(value); return *this;}
69
71
81 inline bool GetShouldRespectGracePeriod() const{ return m_shouldRespectGracePeriod; }
82 inline bool ShouldRespectGracePeriodHasBeenSet() const { return m_shouldRespectGracePeriodHasBeenSet; }
83 inline void SetShouldRespectGracePeriod(bool value) { m_shouldRespectGracePeriodHasBeenSet = true; m_shouldRespectGracePeriod = value; }
86 private:
87
88 Aws::String m_instanceId;
89 bool m_instanceIdHasBeenSet = false;
90
91 Aws::String m_healthStatus;
92 bool m_healthStatusHasBeenSet = false;
93
94 bool m_shouldRespectGracePeriod;
95 bool m_shouldRespectGracePeriodHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace AutoScaling
100} // namespace Aws
AWS_AUTOSCALING_API Aws::String SerializePayload() const override
SetInstanceHealthRequest & WithHealthStatus(const Aws::String &value)
SetInstanceHealthRequest & WithHealthStatus(const char *value)
SetInstanceHealthRequest & WithInstanceId(const char *value)
SetInstanceHealthRequest & WithInstanceId(Aws::String &&value)
SetInstanceHealthRequest & WithInstanceId(const Aws::String &value)
AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
SetInstanceHealthRequest & WithShouldRespectGracePeriod(bool value)
SetInstanceHealthRequest & WithHealthStatus(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String