/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Transfer { namespace Model { /** */ class ListUsersRequest : public TransferRequest { public: AWS_TRANSFER_API ListUsersRequest(); // 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 "ListUsers"; } AWS_TRANSFER_API Aws::String SerializePayload() const override; AWS_TRANSFER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Specifies the number of users to return as a response to the * ListUsers request.

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

Specifies the number of users to return as a response to the * ListUsers request.

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

Specifies the number of users to return as a response to the * ListUsers request.

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

Specifies the number of users to return as a response to the * ListUsers request.

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

When you can get additional results from the ListUsers call, a * NextToken parameter is returned in the output. You can then pass in * a subsequent command to the NextToken parameter to continue listing * additional users.

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

When you can get additional results from the ListUsers call, a * NextToken parameter is returned in the output. You can then pass in * a subsequent command to the NextToken parameter to continue listing * additional users.

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

When you can get additional results from the ListUsers call, a * NextToken parameter is returned in the output. You can then pass in * a subsequent command to the NextToken parameter to continue listing * additional users.

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

When you can get additional results from the ListUsers call, a * NextToken parameter is returned in the output. You can then pass in * a subsequent command to the NextToken parameter to continue listing * additional users.

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

When you can get additional results from the ListUsers call, a * NextToken parameter is returned in the output. You can then pass in * a subsequent command to the NextToken parameter to continue listing * additional users.

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

When you can get additional results from the ListUsers call, a * NextToken parameter is returned in the output. You can then pass in * a subsequent command to the NextToken parameter to continue listing * additional users.

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

When you can get additional results from the ListUsers call, a * NextToken parameter is returned in the output. You can then pass in * a subsequent command to the NextToken parameter to continue listing * additional users.

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

When you can get additional results from the ListUsers call, a * NextToken parameter is returned in the output. You can then pass in * a subsequent command to the NextToken parameter to continue listing * additional users.

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

A system-assigned unique identifier for a server that has users assigned to * it.

*/ inline const Aws::String& GetServerId() const{ return m_serverId; } /** *

A system-assigned unique identifier for a server that has users assigned to * it.

*/ inline bool ServerIdHasBeenSet() const { return m_serverIdHasBeenSet; } /** *

A system-assigned unique identifier for a server that has users assigned to * it.

*/ inline void SetServerId(const Aws::String& value) { m_serverIdHasBeenSet = true; m_serverId = value; } /** *

A system-assigned unique identifier for a server that has users assigned to * it.

*/ inline void SetServerId(Aws::String&& value) { m_serverIdHasBeenSet = true; m_serverId = std::move(value); } /** *

A system-assigned unique identifier for a server that has users assigned to * it.

*/ inline void SetServerId(const char* value) { m_serverIdHasBeenSet = true; m_serverId.assign(value); } /** *

A system-assigned unique identifier for a server that has users assigned to * it.

*/ inline ListUsersRequest& WithServerId(const Aws::String& value) { SetServerId(value); return *this;} /** *

A system-assigned unique identifier for a server that has users assigned to * it.

*/ inline ListUsersRequest& WithServerId(Aws::String&& value) { SetServerId(std::move(value)); return *this;} /** *

A system-assigned unique identifier for a server that has users assigned to * it.

*/ inline ListUsersRequest& WithServerId(const char* value) { SetServerId(value); return *this;} private: int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; Aws::String m_serverId; bool m_serverIdHasBeenSet = false; }; } // namespace Model } // namespace Transfer } // namespace Aws