/*
* 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 ssm-contacts-2021-05-03.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.SSMContacts.Model
{
///
/// Information about when an on-call rotation is in effect and how long the rotation
/// period lasts.
///
public partial class RecurrenceSettings
{
private List _dailySettings = new List();
private List _monthlySettings = new List();
private int? _numberOfOnCalls;
private int? _recurrenceMultiplier;
private Dictionary> _shiftCoverages = new Dictionary>();
private List _weeklySettings = new List();
///
/// Gets and sets the property DailySettings.
///
/// Information about on-call rotations that recur daily.
///
///
public List DailySettings
{
get { return this._dailySettings; }
set { this._dailySettings = value; }
}
// Check to see if DailySettings property is set
internal bool IsSetDailySettings()
{
return this._dailySettings != null && this._dailySettings.Count > 0;
}
///
/// Gets and sets the property MonthlySettings.
///
/// Information about on-call rotations that recur monthly.
///
///
public List MonthlySettings
{
get { return this._monthlySettings; }
set { this._monthlySettings = value; }
}
// Check to see if MonthlySettings property is set
internal bool IsSetMonthlySettings()
{
return this._monthlySettings != null && this._monthlySettings.Count > 0;
}
///
/// Gets and sets the property NumberOfOnCalls.
///
/// The number of contacts, or shift team members designated to be on call concurrently
/// during a shift. For example, in an on-call schedule containing ten contacts, a value
/// of 2
designates that two of them are on call at any given time.
///
///
[AWSProperty(Required=true, Min=1)]
public int NumberOfOnCalls
{
get { return this._numberOfOnCalls.GetValueOrDefault(); }
set { this._numberOfOnCalls = value; }
}
// Check to see if NumberOfOnCalls property is set
internal bool IsSetNumberOfOnCalls()
{
return this._numberOfOnCalls.HasValue;
}
///
/// Gets and sets the property RecurrenceMultiplier.
///
/// The number of days, weeks, or months a single rotation lasts.
///
///
[AWSProperty(Required=true, Min=1, Max=100)]
public int RecurrenceMultiplier
{
get { return this._recurrenceMultiplier.GetValueOrDefault(); }
set { this._recurrenceMultiplier = value; }
}
// Check to see if RecurrenceMultiplier property is set
internal bool IsSetRecurrenceMultiplier()
{
return this._recurrenceMultiplier.HasValue;
}
///
/// Gets and sets the property ShiftCoverages.
///
/// Information about the days of the week included in on-call rotation coverage.
///
///
public Dictionary> ShiftCoverages
{
get { return this._shiftCoverages; }
set { this._shiftCoverages = value; }
}
// Check to see if ShiftCoverages property is set
internal bool IsSetShiftCoverages()
{
return this._shiftCoverages != null && this._shiftCoverages.Count > 0;
}
///
/// Gets and sets the property WeeklySettings.
///
/// Information about on-call rotations that recur weekly.
///
///
public List WeeklySettings
{
get { return this._weeklySettings; }
set { this._weeklySettings = value; }
}
// Check to see if WeeklySettings property is set
internal bool IsSetWeeklySettings()
{
return this._weeklySettings != null && this._weeklySettings.Count > 0;
}
}
}