/* * 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 ram-2018-01-04.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.RAM.Model { /// /// Describes an invitation for an Amazon Web Services account to join a resource share. /// public partial class ResourceShareInvitation { private DateTime? _invitationTimestamp; private string _receiverAccountId; private string _receiverArn; private string _resourceShareArn; private List _resourceShareAssociations = new List(); private string _resourceShareInvitationArn; private string _resourceShareName; private string _senderAccountId; private ResourceShareInvitationStatus _status; /// /// Gets and sets the property InvitationTimestamp. /// /// The date and time when the invitation was sent. /// /// public DateTime InvitationTimestamp { get { return this._invitationTimestamp.GetValueOrDefault(); } set { this._invitationTimestamp = value; } } // Check to see if InvitationTimestamp property is set internal bool IsSetInvitationTimestamp() { return this._invitationTimestamp.HasValue; } /// /// Gets and sets the property ReceiverAccountId. /// /// The ID of the Amazon Web Services account that received the invitation. /// /// public string ReceiverAccountId { get { return this._receiverAccountId; } set { this._receiverAccountId = value; } } // Check to see if ReceiverAccountId property is set internal bool IsSetReceiverAccountId() { return this._receiverAccountId != null; } /// /// Gets and sets the property ReceiverArn. /// /// The Amazon /// Resource Name (ARN) of the IAM user or role that received the invitation. /// /// public string ReceiverArn { get { return this._receiverArn; } set { this._receiverArn = value; } } // Check to see if ReceiverArn property is set internal bool IsSetReceiverArn() { return this._receiverArn != null; } /// /// Gets and sets the property ResourceShareArn. /// /// The Amazon /// Resource Name (ARN) of the resource share /// /// public string ResourceShareArn { get { return this._resourceShareArn; } set { this._resourceShareArn = value; } } // Check to see if ResourceShareArn property is set internal bool IsSetResourceShareArn() { return this._resourceShareArn != null; } /// /// Gets and sets the property ResourceShareAssociations. /// /// To view the resources associated with a pending resource share invitation, use ListPendingInvitationResources. /// /// [Obsolete("This member has been deprecated. Use ListPendingInvitationResources.")] public List ResourceShareAssociations { get { return this._resourceShareAssociations; } set { this._resourceShareAssociations = value; } } // Check to see if ResourceShareAssociations property is set internal bool IsSetResourceShareAssociations() { return this._resourceShareAssociations != null && this._resourceShareAssociations.Count > 0; } /// /// Gets and sets the property ResourceShareInvitationArn. /// /// The Amazon /// Resource Name (ARN) of the invitation. /// /// public string ResourceShareInvitationArn { get { return this._resourceShareInvitationArn; } set { this._resourceShareInvitationArn = value; } } // Check to see if ResourceShareInvitationArn property is set internal bool IsSetResourceShareInvitationArn() { return this._resourceShareInvitationArn != null; } /// /// Gets and sets the property ResourceShareName. /// /// The name of the resource share. /// /// public string ResourceShareName { get { return this._resourceShareName; } set { this._resourceShareName = value; } } // Check to see if ResourceShareName property is set internal bool IsSetResourceShareName() { return this._resourceShareName != null; } /// /// Gets and sets the property SenderAccountId. /// /// The ID of the Amazon Web Services account that sent the invitation. /// /// public string SenderAccountId { get { return this._senderAccountId; } set { this._senderAccountId = value; } } // Check to see if SenderAccountId property is set internal bool IsSetSenderAccountId() { return this._senderAccountId != null; } /// /// Gets and sets the property Status. /// /// The current status of the invitation. /// /// public ResourceShareInvitationStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } } }