/* * 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 kendra-2019-02-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.Kendra.Model { /// /// A list of users or sub groups that belong to a group. This is useful for user context /// filtering, where search results are filtered based on the user or their group access /// to documents. /// public partial class GroupMembers { private List _memberGroups = new List(); private List _memberUsers = new List(); private S3Path _s3PathforGroupMembers; /// /// Gets and sets the property MemberGroups. /// /// A list of sub groups that belong to a group. For example, the sub groups "Research", /// "Engineering", and "Sales and Marketing" all belong to the group "Company". /// /// [AWSProperty(Min=1, Max=1000)] public List MemberGroups { get { return this._memberGroups; } set { this._memberGroups = value; } } // Check to see if MemberGroups property is set internal bool IsSetMemberGroups() { return this._memberGroups != null && this._memberGroups.Count > 0; } /// /// Gets and sets the property MemberUsers. /// /// A list of users that belong to a group. For example, a list of interns all belong /// to the "Interns" group. /// /// [AWSProperty(Min=1, Max=1000)] public List MemberUsers { get { return this._memberUsers; } set { this._memberUsers = value; } } // Check to see if MemberUsers property is set internal bool IsSetMemberUsers() { return this._memberUsers != null && this._memberUsers.Count > 0; } /// /// Gets and sets the property S3PathforGroupMembers. /// /// If you have more than 1000 users and/or sub groups for a single group, you need to /// provide the path to the S3 file that lists your users and sub groups for a group. /// Your sub groups can contain more than 1000 users, but the list of sub groups that /// belong to a group (and/or users) must be no more than 1000. /// /// /// /// You can download this example /// S3 file that uses the correct format for listing group members. Note, dataSourceId /// is optional. The value of type for a group is always GROUP /// and for a user it is always USER. /// /// public S3Path S3PathforGroupMembers { get { return this._s3PathforGroupMembers; } set { this._s3PathforGroupMembers = value; } } // Check to see if S3PathforGroupMembers property is set internal bool IsSetS3PathforGroupMembers() { return this._s3PathforGroupMembers != null; } } }