/* * 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 cleanrooms-2022-02-17.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.CleanRooms.Model { /// /// The membership object. /// public partial class Membership { private string _arn; private string _collaborationArn; private string _collaborationCreatorAccountId; private string _collaborationCreatorDisplayName; private string _collaborationId; private string _collaborationName; private DateTime? _createTime; private string _id; private List _memberAbilities = new List(); private MembershipQueryLogStatus _queryLogStatus; private MembershipStatus _status; private DateTime? _updateTime; /// /// Gets and sets the property Arn. /// /// The unique ARN for the membership. /// /// [AWSProperty(Required=true, Min=0, Max=100)] public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } /// /// Gets and sets the property CollaborationArn. /// /// The unique ARN for the membership's associated collaboration. /// /// [AWSProperty(Required=true, Min=0, Max=100)] public string CollaborationArn { get { return this._collaborationArn; } set { this._collaborationArn = value; } } // Check to see if CollaborationArn property is set internal bool IsSetCollaborationArn() { return this._collaborationArn != null; } /// /// Gets and sets the property CollaborationCreatorAccountId. /// /// The identifier used to reference members of the collaboration. Currently only supports /// Amazon Web Services account ID. /// /// [AWSProperty(Required=true, Min=12, Max=12)] public string CollaborationCreatorAccountId { get { return this._collaborationCreatorAccountId; } set { this._collaborationCreatorAccountId = value; } } // Check to see if CollaborationCreatorAccountId property is set internal bool IsSetCollaborationCreatorAccountId() { return this._collaborationCreatorAccountId != null; } /// /// Gets and sets the property CollaborationCreatorDisplayName. /// /// The display name of the collaboration creator. /// /// [AWSProperty(Required=true, Min=1, Max=100)] public string CollaborationCreatorDisplayName { get { return this._collaborationCreatorDisplayName; } set { this._collaborationCreatorDisplayName = value; } } // Check to see if CollaborationCreatorDisplayName property is set internal bool IsSetCollaborationCreatorDisplayName() { return this._collaborationCreatorDisplayName != null; } /// /// Gets and sets the property CollaborationId. /// /// The unique ID for the membership's collaboration. /// /// [AWSProperty(Required=true, Min=36, Max=36)] public string CollaborationId { get { return this._collaborationId; } set { this._collaborationId = value; } } // Check to see if CollaborationId property is set internal bool IsSetCollaborationId() { return this._collaborationId != null; } /// /// Gets and sets the property CollaborationName. /// /// The name of the membership's collaboration. /// /// [AWSProperty(Required=true, Min=1, Max=100)] public string CollaborationName { get { return this._collaborationName; } set { this._collaborationName = value; } } // Check to see if CollaborationName property is set internal bool IsSetCollaborationName() { return this._collaborationName != null; } /// /// Gets and sets the property CreateTime. /// /// The time when the membership was created. /// /// [AWSProperty(Required=true)] public DateTime CreateTime { get { return this._createTime.GetValueOrDefault(); } set { this._createTime = value; } } // Check to see if CreateTime property is set internal bool IsSetCreateTime() { return this._createTime.HasValue; } /// /// Gets and sets the property Id. /// /// The unique ID of the membership. /// /// [AWSProperty(Required=true, Min=36, Max=36)] public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } /// /// Gets and sets the property MemberAbilities. /// /// The abilities granted to the collaboration member. /// /// [AWSProperty(Required=true)] public List MemberAbilities { get { return this._memberAbilities; } set { this._memberAbilities = value; } } // Check to see if MemberAbilities property is set internal bool IsSetMemberAbilities() { return this._memberAbilities != null && this._memberAbilities.Count > 0; } /// /// Gets and sets the property QueryLogStatus. /// /// An indicator as to whether query logging has been enabled or disabled for the collaboration. /// /// [AWSProperty(Required=true)] public MembershipQueryLogStatus QueryLogStatus { get { return this._queryLogStatus; } set { this._queryLogStatus = value; } } // Check to see if QueryLogStatus property is set internal bool IsSetQueryLogStatus() { return this._queryLogStatus != null; } /// /// Gets and sets the property Status. /// /// The status of the membership. Valid values are `ACTIVE`, `REMOVED`, and `COLLABORATION_DELETED`. /// /// [AWSProperty(Required=true)] public MembershipStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// /// Gets and sets the property UpdateTime. /// /// The time the membership metadata was last updated. /// /// [AWSProperty(Required=true)] public DateTime UpdateTime { get { return this._updateTime.GetValueOrDefault(); } set { this._updateTime = value; } } // Check to see if UpdateTime property is set internal bool IsSetUpdateTime() { return this._updateTime.HasValue; } } }