/* * 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 a rotation in an on-call schedule. /// public partial class Rotation { private List _contactIds = new List(); private string _name; private RecurrenceSettings _recurrence; private string _rotationArn; private DateTime? _startTime; private string _timeZoneId; /// /// Gets and sets the property ContactIds. /// /// The Amazon Resource Names (ARNs) of the contacts assigned to the rotation team. /// /// [AWSProperty(Min=0, Max=25)] public List ContactIds { get { return this._contactIds; } set { this._contactIds = value; } } // Check to see if ContactIds property is set internal bool IsSetContactIds() { return this._contactIds != null && this._contactIds.Count > 0; } /// /// Gets and sets the property Name. /// /// The name of the rotation. /// /// [AWSProperty(Required=true, Min=1, Max=255)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// /// Gets and sets the property Recurrence. /// /// Information about when an on-call rotation is in effect and how long the rotation /// period lasts. /// /// public RecurrenceSettings Recurrence { get { return this._recurrence; } set { this._recurrence = value; } } // Check to see if Recurrence property is set internal bool IsSetRecurrence() { return this._recurrence != null; } /// /// Gets and sets the property RotationArn. /// /// The Amazon Resource Name (ARN) of the rotation. /// /// [AWSProperty(Required=true, Min=1, Max=2048)] public string RotationArn { get { return this._rotationArn; } set { this._rotationArn = value; } } // Check to see if RotationArn property is set internal bool IsSetRotationArn() { return this._rotationArn != null; } /// /// Gets and sets the property StartTime. /// /// The date and time the rotation becomes active. /// /// public DateTime StartTime { get { return this._startTime.GetValueOrDefault(); } set { this._startTime = value; } } // Check to see if StartTime property is set internal bool IsSetStartTime() { return this._startTime.HasValue; } /// /// Gets and sets the property TimeZoneId. /// /// The time zone the rotation’s activity is based on, in Internet Assigned Numbers Authority /// (IANA) format. For example: "America/Los_Angeles", "UTC", or "Asia/Seoul". /// /// [AWSProperty(Min=1, Max=255)] public string TimeZoneId { get { return this._timeZoneId; } set { this._timeZoneId = value; } } // Check to see if TimeZoneId property is set internal bool IsSetTimeZoneId() { return this._timeZoneId != null; } } }