/* * 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 codedeploy-2014-10-06.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.CodeDeploy.Model { /// /// Information about an on-premises instance. /// public partial class InstanceInfo { private DateTime? _deregisterTime; private string _iamSessionArn; private string _iamUserArn; private string _instanceArn; private string _instanceName; private DateTime? _registerTime; private List _tags = new List(); /// /// Gets and sets the property DeregisterTime. /// /// If the on-premises instance was deregistered, the time at which the on-premises instance /// was deregistered. /// /// public DateTime DeregisterTime { get { return this._deregisterTime.GetValueOrDefault(); } set { this._deregisterTime = value; } } // Check to see if DeregisterTime property is set internal bool IsSetDeregisterTime() { return this._deregisterTime.HasValue; } /// /// Gets and sets the property IamSessionArn. /// /// The ARN of the IAM session associated with the on-premises instance. /// /// public string IamSessionArn { get { return this._iamSessionArn; } set { this._iamSessionArn = value; } } // Check to see if IamSessionArn property is set internal bool IsSetIamSessionArn() { return this._iamSessionArn != null; } /// /// Gets and sets the property IamUserArn. /// /// The IAM user ARN associated with the on-premises instance. /// /// public string IamUserArn { get { return this._iamUserArn; } set { this._iamUserArn = value; } } // Check to see if IamUserArn property is set internal bool IsSetIamUserArn() { return this._iamUserArn != null; } /// /// Gets and sets the property InstanceArn. /// /// The ARN of the on-premises instance. /// /// public string InstanceArn { get { return this._instanceArn; } set { this._instanceArn = value; } } // Check to see if InstanceArn property is set internal bool IsSetInstanceArn() { return this._instanceArn != null; } /// /// Gets and sets the property InstanceName. /// /// The name of the on-premises instance. /// /// public string InstanceName { get { return this._instanceName; } set { this._instanceName = value; } } // Check to see if InstanceName property is set internal bool IsSetInstanceName() { return this._instanceName != null; } /// /// Gets and sets the property RegisterTime. /// /// The time at which the on-premises instance was registered. /// /// public DateTime RegisterTime { get { return this._registerTime.GetValueOrDefault(); } set { this._registerTime = value; } } // Check to see if RegisterTime property is set internal bool IsSetRegisterTime() { return this._registerTime.HasValue; } /// /// Gets and sets the property Tags. /// /// The tags currently associated with the on-premises instance. /// /// public List Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }