7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
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>
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>
69 bool m_thresholdHasBeenSet =
false;
72 bool m_durationHasBeenSet =
false;
bool DurationHasBeenSet() const
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LIGHTSAIL_API StopInstanceOnIdleRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDuration(DurationT &&value)
const Aws::String & GetThreshold() const
StopInstanceOnIdleRequest & WithThreshold(ThresholdT &&value)
const Aws::String & GetDuration() const
StopInstanceOnIdleRequest & WithDuration(DurationT &&value)
AWS_LIGHTSAIL_API StopInstanceOnIdleRequest(Aws::Utils::Json::JsonView jsonValue)
bool ThresholdHasBeenSet() const
void SetThreshold(ThresholdT &&value)
AWS_LIGHTSAIL_API StopInstanceOnIdleRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue