7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
35 AWS_LIGHTSAIL_API
AddOn() =
default;
47 template<
typename NameT = Aws::String>
48 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
49 template<
typename NameT = Aws::String>
59 template<
typename StatusT = Aws::String>
60 void SetStatus(StatusT&& value) { m_statusHasBeenSet =
true; m_status = std::forward<StatusT>(value); }
61 template<
typename StatusT = Aws::String>
74 template<
typename SnapshotTimeOfDayT = Aws::String>
75 void SetSnapshotTimeOfDay(SnapshotTimeOfDayT&& value) { m_snapshotTimeOfDayHasBeenSet =
true; m_snapshotTimeOfDay = std::forward<SnapshotTimeOfDayT>(value); }
76 template<
typename SnapshotTimeOfDayT = Aws::String>
89 template<
typename NextSnapshotTimeOfDayT = Aws::String>
90 void SetNextSnapshotTimeOfDay(NextSnapshotTimeOfDayT&& value) { m_nextSnapshotTimeOfDayHasBeenSet =
true; m_nextSnapshotTimeOfDay = std::forward<NextSnapshotTimeOfDayT>(value); }
91 template<
typename NextSnapshotTimeOfDayT = Aws::String>
102 template<
typename ThresholdT = Aws::String>
103 void SetThreshold(ThresholdT&& value) { m_thresholdHasBeenSet =
true; m_threshold = std::forward<ThresholdT>(value); }
104 template<
typename ThresholdT = Aws::String>
116 template<
typename DurationT = Aws::String>
117 void SetDuration(DurationT&& value) { m_durationHasBeenSet =
true; m_duration = std::forward<DurationT>(value); }
118 template<
typename DurationT = Aws::String>
124 bool m_nameHasBeenSet =
false;
127 bool m_statusHasBeenSet =
false;
130 bool m_snapshotTimeOfDayHasBeenSet =
false;
133 bool m_nextSnapshotTimeOfDayHasBeenSet =
false;
136 bool m_thresholdHasBeenSet =
false;
139 bool m_durationHasBeenSet =
false;
AddOn & WithSnapshotTimeOfDay(SnapshotTimeOfDayT &&value)
const Aws::String & GetDuration() const
bool DurationHasBeenSet() const
void SetSnapshotTimeOfDay(SnapshotTimeOfDayT &&value)
AddOn & WithThreshold(ThresholdT &&value)
AddOn & WithName(NameT &&value)
AddOn & WithNextSnapshotTimeOfDay(NextSnapshotTimeOfDayT &&value)
void SetName(NameT &&value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetThreshold(ThresholdT &&value)
bool StatusHasBeenSet() const
void SetDuration(DurationT &&value)
void SetStatus(StatusT &&value)
const Aws::String & GetSnapshotTimeOfDay() const
AWS_LIGHTSAIL_API AddOn(Aws::Utils::Json::JsonView jsonValue)
bool ThresholdHasBeenSet() const
const Aws::String & GetStatus() const
AddOn & WithStatus(StatusT &&value)
bool SnapshotTimeOfDayHasBeenSet() const
const Aws::String & GetThreshold() const
const Aws::String & GetName() const
void SetNextSnapshotTimeOfDay(NextSnapshotTimeOfDayT &&value)
AWS_LIGHTSAIL_API AddOn()=default
const Aws::String & GetNextSnapshotTimeOfDay() const
AWS_LIGHTSAIL_API AddOn & operator=(Aws::Utils::Json::JsonView jsonValue)
AddOn & WithDuration(DurationT &&value)
bool NameHasBeenSet() const
bool NextSnapshotTimeOfDayHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue