/*
* 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 ec2-2016-11-15.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.EC2.Model
{
///
/// Describes the recurring schedule for a Scheduled Instance.
///
public partial class ScheduledInstanceRecurrence
{
private string _frequency;
private int? _interval;
private List _occurrenceDaySet = new List();
private bool? _occurrenceRelativeToEnd;
private string _occurrenceUnit;
///
/// Gets and sets the property Frequency.
///
/// The frequency (Daily
, Weekly
, or Monthly
).
///
///
public string Frequency
{
get { return this._frequency; }
set { this._frequency = value; }
}
// Check to see if Frequency property is set
internal bool IsSetFrequency()
{
return this._frequency != null;
}
///
/// Gets and sets the property Interval.
///
/// The interval quantity. The interval unit depends on the value of frequency
.
/// For example, every 2 weeks or every 2 months.
///
///
public int Interval
{
get { return this._interval.GetValueOrDefault(); }
set { this._interval = value; }
}
// Check to see if Interval property is set
internal bool IsSetInterval()
{
return this._interval.HasValue;
}
///
/// Gets and sets the property OccurrenceDaySet.
///
/// The days. For a monthly schedule, this is one or more days of the month (1-31). For
/// a weekly schedule, this is one or more days of the week (1-7, where 1 is Sunday).
///
///
public List OccurrenceDaySet
{
get { return this._occurrenceDaySet; }
set { this._occurrenceDaySet = value; }
}
// Check to see if OccurrenceDaySet property is set
internal bool IsSetOccurrenceDaySet()
{
return this._occurrenceDaySet != null && this._occurrenceDaySet.Count > 0;
}
///
/// Gets and sets the property OccurrenceRelativeToEnd.
///
/// Indicates whether the occurrence is relative to the end of the specified week or month.
///
///
public bool OccurrenceRelativeToEnd
{
get { return this._occurrenceRelativeToEnd.GetValueOrDefault(); }
set { this._occurrenceRelativeToEnd = value; }
}
// Check to see if OccurrenceRelativeToEnd property is set
internal bool IsSetOccurrenceRelativeToEnd()
{
return this._occurrenceRelativeToEnd.HasValue;
}
///
/// Gets and sets the property OccurrenceUnit.
///
/// The unit for occurrenceDaySet
(DayOfWeek
or DayOfMonth
).
///
///
public string OccurrenceUnit
{
get { return this._occurrenceUnit; }
set { this._occurrenceUnit = value; }
}
// Check to see if OccurrenceUnit property is set
internal bool IsSetOccurrenceUnit()
{
return this._occurrenceUnit != null;
}
}
}