AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StopInstanceOnIdleRequest.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Lightsail
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_LIGHTSAIL_API StopInstanceOnIdleRequest();
39 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetThreshold() const{ return m_threshold; }
47 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
48 inline void SetThreshold(const Aws::String& value) { m_thresholdHasBeenSet = true; m_threshold = value; }
49 inline void SetThreshold(Aws::String&& value) { m_thresholdHasBeenSet = true; m_threshold = std::move(value); }
50 inline void SetThreshold(const char* value) { m_thresholdHasBeenSet = true; m_threshold.assign(value); }
51 inline StopInstanceOnIdleRequest& WithThreshold(const Aws::String& value) { SetThreshold(value); return *this;}
52 inline StopInstanceOnIdleRequest& WithThreshold(Aws::String&& value) { SetThreshold(std::move(value)); return *this;}
53 inline StopInstanceOnIdleRequest& WithThreshold(const char* value) { SetThreshold(value); return *this;}
55
57
61 inline const Aws::String& GetDuration() const{ return m_duration; }
62 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
63 inline void SetDuration(const Aws::String& value) { m_durationHasBeenSet = true; m_duration = value; }
64 inline void SetDuration(Aws::String&& value) { m_durationHasBeenSet = true; m_duration = std::move(value); }
65 inline void SetDuration(const char* value) { m_durationHasBeenSet = true; m_duration.assign(value); }
66 inline StopInstanceOnIdleRequest& WithDuration(const Aws::String& value) { SetDuration(value); return *this;}
67 inline StopInstanceOnIdleRequest& WithDuration(Aws::String&& value) { SetDuration(std::move(value)); return *this;}
68 inline StopInstanceOnIdleRequest& WithDuration(const char* value) { SetDuration(value); return *this;}
70 private:
71
72 Aws::String m_threshold;
73 bool m_thresholdHasBeenSet = false;
74
75 Aws::String m_duration;
76 bool m_durationHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace Lightsail
81} // namespace Aws
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LIGHTSAIL_API StopInstanceOnIdleRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
StopInstanceOnIdleRequest & WithDuration(const Aws::String &value)
StopInstanceOnIdleRequest & WithThreshold(const char *value)
StopInstanceOnIdleRequest & WithDuration(const char *value)
StopInstanceOnIdleRequest & WithThreshold(const Aws::String &value)
StopInstanceOnIdleRequest & WithDuration(Aws::String &&value)
StopInstanceOnIdleRequest & WithThreshold(Aws::String &&value)
AWS_LIGHTSAIL_API StopInstanceOnIdleRequest(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue