/** * 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 ListChannelsRequest : public ChimeSDKMessagingRequest { public: AWS_CHIMESDKMESSAGING_API ListChannelsRequest(); // 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 "ListChannels"; } 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 ARN of the AppInstance.

*/ inline const Aws::String& GetAppInstanceArn() const{ return m_appInstanceArn; } /** *

The ARN of the AppInstance.

*/ inline bool AppInstanceArnHasBeenSet() const { return m_appInstanceArnHasBeenSet; } /** *

The ARN of the AppInstance.

*/ inline void SetAppInstanceArn(const Aws::String& value) { m_appInstanceArnHasBeenSet = true; m_appInstanceArn = value; } /** *

The ARN of the AppInstance.

*/ inline void SetAppInstanceArn(Aws::String&& value) { m_appInstanceArnHasBeenSet = true; m_appInstanceArn = std::move(value); } /** *

The ARN of the AppInstance.

*/ inline void SetAppInstanceArn(const char* value) { m_appInstanceArnHasBeenSet = true; m_appInstanceArn.assign(value); } /** *

The ARN of the AppInstance.

*/ inline ListChannelsRequest& WithAppInstanceArn(const Aws::String& value) { SetAppInstanceArn(value); return *this;} /** *

The ARN of the AppInstance.

*/ inline ListChannelsRequest& WithAppInstanceArn(Aws::String&& value) { SetAppInstanceArn(std::move(value)); return *this;} /** *

The ARN of the AppInstance.

*/ inline ListChannelsRequest& WithAppInstanceArn(const char* value) { SetAppInstanceArn(value); return *this;} /** *

The privacy setting. PUBLIC retrieves all the public channels. * PRIVATE retrieves private channels. Only an * AppInstanceAdmin can retrieve private channels.

*/ inline const ChannelPrivacy& GetPrivacy() const{ return m_privacy; } /** *

The privacy setting. PUBLIC retrieves all the public channels. * PRIVATE retrieves private channels. Only an * AppInstanceAdmin can retrieve private channels.

*/ inline bool PrivacyHasBeenSet() const { return m_privacyHasBeenSet; } /** *

The privacy setting. PUBLIC retrieves all the public channels. * PRIVATE retrieves private channels. Only an * AppInstanceAdmin can retrieve private channels.

*/ inline void SetPrivacy(const ChannelPrivacy& value) { m_privacyHasBeenSet = true; m_privacy = value; } /** *

The privacy setting. PUBLIC retrieves all the public channels. * PRIVATE retrieves private channels. Only an * AppInstanceAdmin can retrieve private channels.

*/ inline void SetPrivacy(ChannelPrivacy&& value) { m_privacyHasBeenSet = true; m_privacy = std::move(value); } /** *

The privacy setting. PUBLIC retrieves all the public channels. * PRIVATE retrieves private channels. Only an * AppInstanceAdmin can retrieve private channels.

*/ inline ListChannelsRequest& WithPrivacy(const ChannelPrivacy& value) { SetPrivacy(value); return *this;} /** *

The privacy setting. PUBLIC retrieves all the public channels. * PRIVATE retrieves private channels. Only an * AppInstanceAdmin can retrieve private channels.

*/ inline ListChannelsRequest& WithPrivacy(ChannelPrivacy&& value) { SetPrivacy(std::move(value)); return *this;} /** *

The maximum number of channels that you want to return.

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

The maximum number of channels that you want to return.

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

The maximum number of channels that you want to return.

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

The maximum number of channels that you want to return.

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

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

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

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

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

The token passed by previous API calls until all requested channels 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 channels 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 channels 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 channels are * returned.

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

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

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

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

*/ inline ListChannelsRequest& 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 ListChannelsRequest& WithChimeBearer(const Aws::String& value) { SetChimeBearer(value); return *this;} /** *

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

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

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

*/ inline ListChannelsRequest& WithChimeBearer(const char* value) { SetChimeBearer(value); return *this;} private: Aws::String m_appInstanceArn; bool m_appInstanceArnHasBeenSet = false; ChannelPrivacy m_privacy; bool m_privacyHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; Aws::String m_chimeBearer; bool m_chimeBearerHasBeenSet = false; }; } // namespace Model } // namespace ChimeSDKMessaging } // namespace Aws