AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename ThresholdT = Aws::String>
49 void SetThreshold(ThresholdT&& value) { m_thresholdHasBeenSet = true; m_threshold = std::forward<ThresholdT>(value); }
50 template<typename ThresholdT = Aws::String>
51 StopInstanceOnIdleRequest& WithThreshold(ThresholdT&& value) { SetThreshold(std::forward<ThresholdT>(value)); return *this;}
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) { m_durationHasBeenSet = true; m_duration = std::forward<DurationT>(value); }
63 template<typename DurationT = Aws::String>
64 StopInstanceOnIdleRequest& WithDuration(DurationT&& value) { SetDuration(std::forward<DurationT>(value)); return *this;}
66 private:
67
68 Aws::String m_threshold;
69 bool m_thresholdHasBeenSet = false;
70
71 Aws::String m_duration;
72 bool m_durationHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace Lightsail
77} // 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