/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the lightsail-2016-11-28.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Lightsail.Model
{
///
/// 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.
///
///
///
public partial class AddOnRequest
{
private AddOnType _addOnType;
private AutoSnapshotAddOnRequest _autoSnapshotAddOnRequest;
private StopInstanceOnIdleRequest _stopInstanceOnIdleRequest;
///
/// Gets and sets the property AddOnType.
///
/// The add-on type.
///
///
[AWSProperty(Required=true)]
public AddOnType AddOnType
{
get { return this._addOnType; }
set { this._addOnType = value; }
}
// Check to see if AddOnType property is set
internal bool IsSetAddOnType()
{
return this._addOnType != null;
}
///
/// Gets and sets the property AutoSnapshotAddOnRequest.
///
/// An object that represents additional parameters when enabling or modifying the automatic
/// snapshot add-on.
///
///
public AutoSnapshotAddOnRequest AutoSnapshotAddOnRequest
{
get { return this._autoSnapshotAddOnRequest; }
set { this._autoSnapshotAddOnRequest = value; }
}
// Check to see if AutoSnapshotAddOnRequest property is set
internal bool IsSetAutoSnapshotAddOnRequest()
{
return this._autoSnapshotAddOnRequest != null;
}
///
/// Gets and sets the property StopInstanceOnIdleRequest.
///
/// An object that represents additional parameters when enabling or modifying the StopInstanceOnIdle
/// add-on.
///
///
///
/// This object only applies to Lightsail for Research resources.
///
///
///
public StopInstanceOnIdleRequest StopInstanceOnIdleRequest
{
get { return this._stopInstanceOnIdleRequest; }
set { this._stopInstanceOnIdleRequest = value; }
}
// Check to see if StopInstanceOnIdleRequest property is set
internal bool IsSetStopInstanceOnIdleRequest()
{
return this._stopInstanceOnIdleRequest != null;
}
}
}