/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Lightsail { namespace Model { /** *

Describes an add-on that is enabled for an Amazon Lightsail * resource.

See Also:

AWS API * Reference

*/ class AddOn { public: AWS_LIGHTSAIL_API AddOn(); AWS_LIGHTSAIL_API AddOn(Aws::Utils::Json::JsonView jsonValue); AWS_LIGHTSAIL_API AddOn& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the add-on.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the add-on.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the add-on.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the add-on.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the add-on.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the add-on.

*/ inline AddOn& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the add-on.

*/ inline AddOn& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the add-on.

*/ inline AddOn& WithName(const char* value) { SetName(value); return *this;} /** *

The status of the add-on.

*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *

The status of the add-on.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the add-on.

*/ inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the add-on.

*/ inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the add-on.

*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *

The status of the add-on.

*/ inline AddOn& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *

The status of the add-on.

*/ inline AddOn& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *

The status of the add-on.

*/ inline AddOn& WithStatus(const char* value) { SetStatus(value); return *this;} /** *

The daily time when an automatic snapshot is created.

The time shown * is in HH:00 format, and in Coordinated Universal Time (UTC).

*

The snapshot is automatically created between the time shown and up to 45 * minutes after.

*/ inline const Aws::String& GetSnapshotTimeOfDay() const{ return m_snapshotTimeOfDay; } /** *

The daily time when an automatic snapshot is created.

The time shown * is in HH:00 format, and in Coordinated Universal Time (UTC).

*

The snapshot is automatically created between the time shown and up to 45 * minutes after.

*/ inline bool SnapshotTimeOfDayHasBeenSet() const { return m_snapshotTimeOfDayHasBeenSet; } /** *

The daily time when an automatic snapshot is created.

The time shown * is in HH:00 format, and in Coordinated Universal Time (UTC).

*

The snapshot is automatically created between the time shown and up to 45 * minutes after.

*/ inline void SetSnapshotTimeOfDay(const Aws::String& value) { m_snapshotTimeOfDayHasBeenSet = true; m_snapshotTimeOfDay = value; } /** *

The daily time when an automatic snapshot is created.

The time shown * is in HH:00 format, and in Coordinated Universal Time (UTC).

*

The snapshot is automatically created between the time shown and up to 45 * minutes after.

*/ inline void SetSnapshotTimeOfDay(Aws::String&& value) { m_snapshotTimeOfDayHasBeenSet = true; m_snapshotTimeOfDay = std::move(value); } /** *

The daily time when an automatic snapshot is created.

The time shown * is in HH:00 format, and in Coordinated Universal Time (UTC).

*

The snapshot is automatically created between the time shown and up to 45 * minutes after.

*/ inline void SetSnapshotTimeOfDay(const char* value) { m_snapshotTimeOfDayHasBeenSet = true; m_snapshotTimeOfDay.assign(value); } /** *

The daily time when an automatic snapshot is created.

The time shown * is in HH:00 format, and in Coordinated Universal Time (UTC).

*

The snapshot is automatically created between the time shown and up to 45 * minutes after.

*/ inline AddOn& WithSnapshotTimeOfDay(const Aws::String& value) { SetSnapshotTimeOfDay(value); return *this;} /** *

The daily time when an automatic snapshot is created.

The time shown * is in HH:00 format, and in Coordinated Universal Time (UTC).

*

The snapshot is automatically created between the time shown and up to 45 * minutes after.

*/ inline AddOn& WithSnapshotTimeOfDay(Aws::String&& value) { SetSnapshotTimeOfDay(std::move(value)); return *this;} /** *

The daily time when an automatic snapshot is created.

The time shown * is in HH:00 format, and in Coordinated Universal Time (UTC).

*

The snapshot is automatically created between the time shown and up to 45 * minutes after.

*/ inline AddOn& WithSnapshotTimeOfDay(const char* value) { SetSnapshotTimeOfDay(value); return *this;} /** *

The next daily time an automatic snapshot will be created.

The time * shown is in HH:00 format, and in Coordinated Universal Time * (UTC).

The snapshot is automatically created between the time shown and * up to 45 minutes after.

*/ inline const Aws::String& GetNextSnapshotTimeOfDay() const{ return m_nextSnapshotTimeOfDay; } /** *

The next daily time an automatic snapshot will be created.

The time * shown is in HH:00 format, and in Coordinated Universal Time * (UTC).

The snapshot is automatically created between the time shown and * up to 45 minutes after.

*/ inline bool NextSnapshotTimeOfDayHasBeenSet() const { return m_nextSnapshotTimeOfDayHasBeenSet; } /** *

The next daily time an automatic snapshot will be created.

The time * shown is in HH:00 format, and in Coordinated Universal Time * (UTC).

The snapshot is automatically created between the time shown and * up to 45 minutes after.

*/ inline void SetNextSnapshotTimeOfDay(const Aws::String& value) { m_nextSnapshotTimeOfDayHasBeenSet = true; m_nextSnapshotTimeOfDay = value; } /** *

The next daily time an automatic snapshot will be created.

The time * shown is in HH:00 format, and in Coordinated Universal Time * (UTC).

The snapshot is automatically created between the time shown and * up to 45 minutes after.

*/ inline void SetNextSnapshotTimeOfDay(Aws::String&& value) { m_nextSnapshotTimeOfDayHasBeenSet = true; m_nextSnapshotTimeOfDay = std::move(value); } /** *

The next daily time an automatic snapshot will be created.

The time * shown is in HH:00 format, and in Coordinated Universal Time * (UTC).

The snapshot is automatically created between the time shown and * up to 45 minutes after.

*/ inline void SetNextSnapshotTimeOfDay(const char* value) { m_nextSnapshotTimeOfDayHasBeenSet = true; m_nextSnapshotTimeOfDay.assign(value); } /** *

The next daily time an automatic snapshot will be created.

The time * shown is in HH:00 format, and in Coordinated Universal Time * (UTC).

The snapshot is automatically created between the time shown and * up to 45 minutes after.

*/ inline AddOn& WithNextSnapshotTimeOfDay(const Aws::String& value) { SetNextSnapshotTimeOfDay(value); return *this;} /** *

The next daily time an automatic snapshot will be created.

The time * shown is in HH:00 format, and in Coordinated Universal Time * (UTC).

The snapshot is automatically created between the time shown and * up to 45 minutes after.

*/ inline AddOn& WithNextSnapshotTimeOfDay(Aws::String&& value) { SetNextSnapshotTimeOfDay(std::move(value)); return *this;} /** *

The next daily time an automatic snapshot will be created.

The time * shown is in HH:00 format, and in Coordinated Universal Time * (UTC).

The snapshot is automatically created between the time shown and * up to 45 minutes after.

*/ inline AddOn& WithNextSnapshotTimeOfDay(const char* value) { SetNextSnapshotTimeOfDay(value); return *this;} /** *

The trigger threshold of the action.

This add-on only * applies to Lightsail for Research resources.

*/ inline const Aws::String& GetThreshold() const{ return m_threshold; } /** *

The trigger threshold of the action.

This add-on only * applies to Lightsail for Research resources.

*/ inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; } /** *

The trigger threshold of the action.

This add-on only * applies to Lightsail for Research resources.

*/ inline void SetThreshold(const Aws::String& value) { m_thresholdHasBeenSet = true; m_threshold = value; } /** *

The trigger threshold of the action.

This add-on only * applies to Lightsail for Research resources.

*/ inline void SetThreshold(Aws::String&& value) { m_thresholdHasBeenSet = true; m_threshold = std::move(value); } /** *

The trigger threshold of the action.

This add-on only * applies to Lightsail for Research resources.

*/ inline void SetThreshold(const char* value) { m_thresholdHasBeenSet = true; m_threshold.assign(value); } /** *

The trigger threshold of the action.

This add-on only * applies to Lightsail for Research resources.

*/ inline AddOn& WithThreshold(const Aws::String& value) { SetThreshold(value); return *this;} /** *

The trigger threshold of the action.

This add-on only * applies to Lightsail for Research resources.

*/ inline AddOn& WithThreshold(Aws::String&& value) { SetThreshold(std::move(value)); return *this;} /** *

The trigger threshold of the action.

This add-on only * applies to Lightsail for Research resources.

*/ inline AddOn& WithThreshold(const char* value) { SetThreshold(value); return *this;} /** *

The amount of idle time in minutes after which your virtual computer will * automatically stop.

This add-on only applies to Lightsail for * Research resources.

*/ inline const Aws::String& GetDuration() const{ return m_duration; } /** *

The amount of idle time in minutes after which your virtual computer will * automatically stop.

This add-on only applies to Lightsail for * Research resources.

*/ inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; } /** *

The amount of idle time in minutes after which your virtual computer will * automatically stop.

This add-on only applies to Lightsail for * Research resources.

*/ inline void SetDuration(const Aws::String& value) { m_durationHasBeenSet = true; m_duration = value; } /** *

The amount of idle time in minutes after which your virtual computer will * automatically stop.

This add-on only applies to Lightsail for * Research resources.

*/ inline void SetDuration(Aws::String&& value) { m_durationHasBeenSet = true; m_duration = std::move(value); } /** *

The amount of idle time in minutes after which your virtual computer will * automatically stop.

This add-on only applies to Lightsail for * Research resources.

*/ inline void SetDuration(const char* value) { m_durationHasBeenSet = true; m_duration.assign(value); } /** *

The amount of idle time in minutes after which your virtual computer will * automatically stop.

This add-on only applies to Lightsail for * Research resources.

*/ inline AddOn& WithDuration(const Aws::String& value) { SetDuration(value); return *this;} /** *

The amount of idle time in minutes after which your virtual computer will * automatically stop.

This add-on only applies to Lightsail for * Research resources.

*/ inline AddOn& WithDuration(Aws::String&& value) { SetDuration(std::move(value)); return *this;} /** *

The amount of idle time in minutes after which your virtual computer will * automatically stop.

This add-on only applies to Lightsail for * Research resources.

*/ inline AddOn& WithDuration(const char* value) { SetDuration(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; Aws::String m_snapshotTimeOfDay; bool m_snapshotTimeOfDayHasBeenSet = false; Aws::String m_nextSnapshotTimeOfDay; bool m_nextSnapshotTimeOfDayHasBeenSet = false; Aws::String m_threshold; bool m_thresholdHasBeenSet = false; Aws::String m_duration; bool m_durationHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws