/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Http { class URI; } //namespace Http namespace ChimeSDKMessaging { namespace Model { /** */ class ListChannelMembershipsRequest : public ChimeSDKMessagingRequest { public: AWS_CHIMESDKMESSAGING_API ListChannelMembershipsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "ListChannelMemberships"; } AWS_CHIMESDKMESSAGING_API Aws::String SerializePayload() const override; AWS_CHIMESDKMESSAGING_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; AWS_CHIMESDKMESSAGING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The maximum number of channel memberships that you want returned.

*/ inline const Aws::String& GetChannelArn() const{ return m_channelArn; } /** *

The maximum number of channel memberships that you want returned.

*/ inline bool ChannelArnHasBeenSet() const { return m_channelArnHasBeenSet; } /** *

The maximum number of channel memberships that you want returned.

*/ inline void SetChannelArn(const Aws::String& value) { m_channelArnHasBeenSet = true; m_channelArn = value; } /** *

The maximum number of channel memberships that you want returned.

*/ inline void SetChannelArn(Aws::String&& value) { m_channelArnHasBeenSet = true; m_channelArn = std::move(value); } /** *

The maximum number of channel memberships that you want returned.

*/ inline void SetChannelArn(const char* value) { m_channelArnHasBeenSet = true; m_channelArn.assign(value); } /** *

The maximum number of channel memberships that you want returned.

*/ inline ListChannelMembershipsRequest& WithChannelArn(const Aws::String& value) { SetChannelArn(value); return *this;} /** *

The maximum number of channel memberships that you want returned.

*/ inline ListChannelMembershipsRequest& WithChannelArn(Aws::String&& value) { SetChannelArn(std::move(value)); return *this;} /** *

The maximum number of channel memberships that you want returned.

*/ inline ListChannelMembershipsRequest& WithChannelArn(const char* value) { SetChannelArn(value); return *this;} /** *

The membership type of a user, DEFAULT or HIDDEN. * Default members are returned as part of ListChannelMemberships if * no type is specified. Hidden members are only returned if the type filter in * ListChannelMemberships equals HIDDEN.

*/ inline const ChannelMembershipType& GetType() const{ return m_type; } /** *

The membership type of a user, DEFAULT or HIDDEN. * Default members are returned as part of ListChannelMemberships if * no type is specified. Hidden members are only returned if the type filter in * ListChannelMemberships equals HIDDEN.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The membership type of a user, DEFAULT or HIDDEN. * Default members are returned as part of ListChannelMemberships if * no type is specified. Hidden members are only returned if the type filter in * ListChannelMemberships equals HIDDEN.

*/ inline void SetType(const ChannelMembershipType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The membership type of a user, DEFAULT or HIDDEN. * Default members are returned as part of ListChannelMemberships if * no type is specified. Hidden members are only returned if the type filter in * ListChannelMemberships equals HIDDEN.

*/ inline void SetType(ChannelMembershipType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The membership type of a user, DEFAULT or HIDDEN. * Default members are returned as part of ListChannelMemberships if * no type is specified. Hidden members are only returned if the type filter in * ListChannelMemberships equals HIDDEN.

*/ inline ListChannelMembershipsRequest& WithType(const ChannelMembershipType& value) { SetType(value); return *this;} /** *

The membership type of a user, DEFAULT or HIDDEN. * Default members are returned as part of ListChannelMemberships if * no type is specified. Hidden members are only returned if the type filter in * ListChannelMemberships equals HIDDEN.

*/ inline ListChannelMembershipsRequest& WithType(ChannelMembershipType&& value) { SetType(std::move(value)); return *this;} /** *

The maximum number of channel memberships that you want returned.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

The maximum number of channel memberships that you want returned.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

The maximum number of channel memberships that you want returned.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

The maximum number of channel memberships that you want returned.

*/ inline ListChannelMembershipsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

The token passed by previous API calls until all requested channel * memberships are returned.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

The token passed by previous API calls until all requested channel * memberships are returned.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

The token passed by previous API calls until all requested channel * memberships are returned.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

The token passed by previous API calls until all requested channel * memberships are returned.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

The token passed by previous API calls until all requested channel * memberships are returned.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

The token passed by previous API calls until all requested channel * memberships are returned.

*/ inline ListChannelMembershipsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

The token passed by previous API calls until all requested channel * memberships are returned.

*/ inline ListChannelMembershipsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

The token passed by previous API calls until all requested channel * memberships are returned.

*/ inline ListChannelMembershipsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The ARN of the AppInstanceUser or AppInstanceBot * that makes the API call.

*/ inline const Aws::String& GetChimeBearer() const{ return m_chimeBearer; } /** *

The ARN of the AppInstanceUser or AppInstanceBot * that makes the API call.

*/ inline bool ChimeBearerHasBeenSet() const { return m_chimeBearerHasBeenSet; } /** *

The ARN of the AppInstanceUser or AppInstanceBot * that makes the API call.

*/ inline void SetChimeBearer(const Aws::String& value) { m_chimeBearerHasBeenSet = true; m_chimeBearer = value; } /** *

The ARN of the AppInstanceUser or AppInstanceBot * that makes the API call.

*/ inline void SetChimeBearer(Aws::String&& value) { m_chimeBearerHasBeenSet = true; m_chimeBearer = std::move(value); } /** *

The ARN of the AppInstanceUser or AppInstanceBot * that makes the API call.

*/ inline void SetChimeBearer(const char* value) { m_chimeBearerHasBeenSet = true; m_chimeBearer.assign(value); } /** *

The ARN of the AppInstanceUser or AppInstanceBot * that makes the API call.

*/ inline ListChannelMembershipsRequest& WithChimeBearer(const Aws::String& value) { SetChimeBearer(value); return *this;} /** *

The ARN of the AppInstanceUser or AppInstanceBot * that makes the API call.

*/ inline ListChannelMembershipsRequest& WithChimeBearer(Aws::String&& value) { SetChimeBearer(std::move(value)); return *this;} /** *

The ARN of the AppInstanceUser or AppInstanceBot * that makes the API call.

*/ inline ListChannelMembershipsRequest& WithChimeBearer(const char* value) { SetChimeBearer(value); return *this;} /** *

The ID of the SubChannel in the request.

Only required when * listing a user's memberships in a particular sub-channel of an elastic * channel.

*/ inline const Aws::String& GetSubChannelId() const{ return m_subChannelId; } /** *

The ID of the SubChannel in the request.

Only required when * listing a user's memberships in a particular sub-channel of an elastic * channel.

*/ inline bool SubChannelIdHasBeenSet() const { return m_subChannelIdHasBeenSet; } /** *

The ID of the SubChannel in the request.

Only required when * listing a user's memberships in a particular sub-channel of an elastic * channel.

*/ inline void SetSubChannelId(const Aws::String& value) { m_subChannelIdHasBeenSet = true; m_subChannelId = value; } /** *

The ID of the SubChannel in the request.

Only required when * listing a user's memberships in a particular sub-channel of an elastic * channel.

*/ inline void SetSubChannelId(Aws::String&& value) { m_subChannelIdHasBeenSet = true; m_subChannelId = std::move(value); } /** *

The ID of the SubChannel in the request.

Only required when * listing a user's memberships in a particular sub-channel of an elastic * channel.

*/ inline void SetSubChannelId(const char* value) { m_subChannelIdHasBeenSet = true; m_subChannelId.assign(value); } /** *

The ID of the SubChannel in the request.

Only required when * listing a user's memberships in a particular sub-channel of an elastic * channel.

*/ inline ListChannelMembershipsRequest& WithSubChannelId(const Aws::String& value) { SetSubChannelId(value); return *this;} /** *

The ID of the SubChannel in the request.

Only required when * listing a user's memberships in a particular sub-channel of an elastic * channel.

*/ inline ListChannelMembershipsRequest& WithSubChannelId(Aws::String&& value) { SetSubChannelId(std::move(value)); return *this;} /** *

The ID of the SubChannel in the request.

Only required when * listing a user's memberships in a particular sub-channel of an elastic * channel.

*/ inline ListChannelMembershipsRequest& WithSubChannelId(const char* value) { SetSubChannelId(value); return *this;} private: Aws::String m_channelArn; bool m_channelArnHasBeenSet = false; ChannelMembershipType m_type; bool m_typeHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; Aws::String m_chimeBearer; bool m_chimeBearerHasBeenSet = false; Aws::String m_subChannelId; bool m_subChannelIdHasBeenSet = false; }; } // namespace Model } // namespace ChimeSDKMessaging } // namespace Aws