/* * 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 { /// /// Incident Manager reaching out to a contact or escalation plan to engage contact during /// an incident. /// public partial class Engagement { private string _contactArn; private string _engagementArn; private string _incidentId; private string _sender; private DateTime? _startTime; private DateTime? _stopTime; /// /// Gets and sets the property ContactArn. /// /// The ARN of the escalation plan or contact that Incident Manager is engaging. /// /// [AWSProperty(Required=true, Min=1, Max=2048)] public string ContactArn { get { return this._contactArn; } set { this._contactArn = value; } } // Check to see if ContactArn property is set internal bool IsSetContactArn() { return this._contactArn != null; } /// /// Gets and sets the property EngagementArn. /// /// The Amazon Resource Name (ARN) of the engagement. /// /// [AWSProperty(Required=true, Min=1, Max=2048)] public string EngagementArn { get { return this._engagementArn; } set { this._engagementArn = value; } } // Check to see if EngagementArn property is set internal bool IsSetEngagementArn() { return this._engagementArn != null; } /// /// Gets and sets the property IncidentId. /// /// The ARN of the incident that's engaging the contact. /// /// [AWSProperty(Max=1024)] public string IncidentId { get { return this._incidentId; } set { this._incidentId = value; } } // Check to see if IncidentId property is set internal bool IsSetIncidentId() { return this._incidentId != null; } /// /// Gets and sets the property Sender. /// /// The user that started the engagement. /// /// [AWSProperty(Required=true, Max=255)] public string Sender { get { return this._sender; } set { this._sender = value; } } // Check to see if Sender property is set internal bool IsSetSender() { return this._sender != null; } /// /// Gets and sets the property StartTime. /// /// The time that the engagement began. /// /// 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 StopTime. /// /// The time that the engagement ended. /// /// public DateTime StopTime { get { return this._stopTime.GetValueOrDefault(); } set { this._stopTime = value; } } // Check to see if StopTime property is set internal bool IsSetStopTime() { return this._stopTime.HasValue; } } }