/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a request to enable, modify, or disable an add-on for an Amazon
* Lightsail resource. An additional cost may be associated with
* enabling add-ons. For more information, see the Lightsail pricing page.See Also:
AWS
* API Reference
The add-on type.
*/ inline const AddOnType& GetAddOnType() const{ return m_addOnType; } /** *The add-on type.
*/ inline bool AddOnTypeHasBeenSet() const { return m_addOnTypeHasBeenSet; } /** *The add-on type.
*/ inline void SetAddOnType(const AddOnType& value) { m_addOnTypeHasBeenSet = true; m_addOnType = value; } /** *The add-on type.
*/ inline void SetAddOnType(AddOnType&& value) { m_addOnTypeHasBeenSet = true; m_addOnType = std::move(value); } /** *The add-on type.
*/ inline AddOnRequest& WithAddOnType(const AddOnType& value) { SetAddOnType(value); return *this;} /** *The add-on type.
*/ inline AddOnRequest& WithAddOnType(AddOnType&& value) { SetAddOnType(std::move(value)); return *this;} /** *An object that represents additional parameters when enabling or modifying * the automatic snapshot add-on.
*/ inline const AutoSnapshotAddOnRequest& GetAutoSnapshotAddOnRequest() const{ return m_autoSnapshotAddOnRequest; } /** *An object that represents additional parameters when enabling or modifying * the automatic snapshot add-on.
*/ inline bool AutoSnapshotAddOnRequestHasBeenSet() const { return m_autoSnapshotAddOnRequestHasBeenSet; } /** *An object that represents additional parameters when enabling or modifying * the automatic snapshot add-on.
*/ inline void SetAutoSnapshotAddOnRequest(const AutoSnapshotAddOnRequest& value) { m_autoSnapshotAddOnRequestHasBeenSet = true; m_autoSnapshotAddOnRequest = value; } /** *An object that represents additional parameters when enabling or modifying * the automatic snapshot add-on.
*/ inline void SetAutoSnapshotAddOnRequest(AutoSnapshotAddOnRequest&& value) { m_autoSnapshotAddOnRequestHasBeenSet = true; m_autoSnapshotAddOnRequest = std::move(value); } /** *An object that represents additional parameters when enabling or modifying * the automatic snapshot add-on.
*/ inline AddOnRequest& WithAutoSnapshotAddOnRequest(const AutoSnapshotAddOnRequest& value) { SetAutoSnapshotAddOnRequest(value); return *this;} /** *An object that represents additional parameters when enabling or modifying * the automatic snapshot add-on.
*/ inline AddOnRequest& WithAutoSnapshotAddOnRequest(AutoSnapshotAddOnRequest&& value) { SetAutoSnapshotAddOnRequest(std::move(value)); return *this;} /** *An object that represents additional parameters when enabling or modifying
* the StopInstanceOnIdle
add-on.
This object only * applies to Lightsail for Research resources.
*/ inline const StopInstanceOnIdleRequest& GetStopInstanceOnIdleRequest() const{ return m_stopInstanceOnIdleRequest; } /** *An object that represents additional parameters when enabling or modifying
* the StopInstanceOnIdle
add-on.
This object only * applies to Lightsail for Research resources.
*/ inline bool StopInstanceOnIdleRequestHasBeenSet() const { return m_stopInstanceOnIdleRequestHasBeenSet; } /** *An object that represents additional parameters when enabling or modifying
* the StopInstanceOnIdle
add-on.
This object only * applies to Lightsail for Research resources.
*/ inline void SetStopInstanceOnIdleRequest(const StopInstanceOnIdleRequest& value) { m_stopInstanceOnIdleRequestHasBeenSet = true; m_stopInstanceOnIdleRequest = value; } /** *An object that represents additional parameters when enabling or modifying
* the StopInstanceOnIdle
add-on.
This object only * applies to Lightsail for Research resources.
*/ inline void SetStopInstanceOnIdleRequest(StopInstanceOnIdleRequest&& value) { m_stopInstanceOnIdleRequestHasBeenSet = true; m_stopInstanceOnIdleRequest = std::move(value); } /** *An object that represents additional parameters when enabling or modifying
* the StopInstanceOnIdle
add-on.
This object only * applies to Lightsail for Research resources.
*/ inline AddOnRequest& WithStopInstanceOnIdleRequest(const StopInstanceOnIdleRequest& value) { SetStopInstanceOnIdleRequest(value); return *this;} /** *An object that represents additional parameters when enabling or modifying
* the StopInstanceOnIdle
add-on.
This object only * applies to Lightsail for Research resources.
*/ inline AddOnRequest& WithStopInstanceOnIdleRequest(StopInstanceOnIdleRequest&& value) { SetStopInstanceOnIdleRequest(std::move(value)); return *this;} private: AddOnType m_addOnType; bool m_addOnTypeHasBeenSet = false; AutoSnapshotAddOnRequest m_autoSnapshotAddOnRequest; bool m_autoSnapshotAddOnRequestHasBeenSet = false; StopInstanceOnIdleRequest m_stopInstanceOnIdleRequest; bool m_stopInstanceOnIdleRequestHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws