AWS SDK for C++

AWS SDK for C++ Version 1.11.746

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