/*
* 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
///
/// The membership information, including member ARNs, the channel ARN, and membership
/// types.
///
public partial class BatchChannelMemberships
{
private string _channelArn;
private Identity _invitedBy;
private List _members = new List();
private string _subChannelId;
private ChannelMembershipType _type;
///
/// Gets and sets the property ChannelArn.
///
/// The ARN of the channel to which you're adding members.
///
///
[AWSProperty(Min=5, Max=1600)]
public string ChannelArn
{
get { return this._channelArn; }
set { this._channelArn = value; }
}
// Check to see if ChannelArn property is set
internal bool IsSetChannelArn()
{
return this._channelArn != null;
}
///
/// Gets and sets the property InvitedBy.
///
/// The identifier of the member who invited another member.
///
///
public Identity InvitedBy
{
get { return this._invitedBy; }
set { this._invitedBy = value; }
}
// Check to see if InvitedBy property is set
internal bool IsSetInvitedBy()
{
return this._invitedBy != null;
}
///
/// Gets and sets the property Members.
///
/// The users successfully added to the request.
///
///
public List Members
{
get { return this._members; }
set { this._members = value; }
}
// Check to see if Members property is set
internal bool IsSetMembers()
{
return this._members != null && this._members.Count > 0;
}
///
/// Gets and sets the property SubChannelId.
///
/// The ID of the SubChannel.
///
///
[AWSProperty(Min=1, Max=128)]
public string SubChannelId
{
get { return this._subChannelId; }
set { this._subChannelId = value; }
}
// Check to see if SubChannelId property is set
internal bool IsSetSubChannelId()
{
return this._subChannelId != null;
}
///
/// Gets and sets the property Type.
///
/// The membership types set for the channel members.
///
///
public ChannelMembershipType Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
}