/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace RAM { namespace Model { /** */ class ListReplacePermissionAssociationsWorkRequest : public RAMRequest { public: AWS_RAM_API ListReplacePermissionAssociationsWorkRequest(); // 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 "ListReplacePermissionAssociationsWork"; } AWS_RAM_API Aws::String SerializePayload() const override; /** *

A list of IDs. These values come from the idfield of the * replacePermissionAssociationsWorkstructure returned by the * ReplacePermissionAssociations operation.

*/ inline const Aws::Vector& GetWorkIds() const{ return m_workIds; } /** *

A list of IDs. These values come from the idfield of the * replacePermissionAssociationsWorkstructure returned by the * ReplacePermissionAssociations operation.

*/ inline bool WorkIdsHasBeenSet() const { return m_workIdsHasBeenSet; } /** *

A list of IDs. These values come from the idfield of the * replacePermissionAssociationsWorkstructure returned by the * ReplacePermissionAssociations operation.

*/ inline void SetWorkIds(const Aws::Vector& value) { m_workIdsHasBeenSet = true; m_workIds = value; } /** *

A list of IDs. These values come from the idfield of the * replacePermissionAssociationsWorkstructure returned by the * ReplacePermissionAssociations operation.

*/ inline void SetWorkIds(Aws::Vector&& value) { m_workIdsHasBeenSet = true; m_workIds = std::move(value); } /** *

A list of IDs. These values come from the idfield of the * replacePermissionAssociationsWorkstructure returned by the * ReplacePermissionAssociations operation.

*/ inline ListReplacePermissionAssociationsWorkRequest& WithWorkIds(const Aws::Vector& value) { SetWorkIds(value); return *this;} /** *

A list of IDs. These values come from the idfield of the * replacePermissionAssociationsWorkstructure returned by the * ReplacePermissionAssociations operation.

*/ inline ListReplacePermissionAssociationsWorkRequest& WithWorkIds(Aws::Vector&& value) { SetWorkIds(std::move(value)); return *this;} /** *

A list of IDs. These values come from the idfield of the * replacePermissionAssociationsWorkstructure returned by the * ReplacePermissionAssociations operation.

*/ inline ListReplacePermissionAssociationsWorkRequest& AddWorkIds(const Aws::String& value) { m_workIdsHasBeenSet = true; m_workIds.push_back(value); return *this; } /** *

A list of IDs. These values come from the idfield of the * replacePermissionAssociationsWorkstructure returned by the * ReplacePermissionAssociations operation.

*/ inline ListReplacePermissionAssociationsWorkRequest& AddWorkIds(Aws::String&& value) { m_workIdsHasBeenSet = true; m_workIds.push_back(std::move(value)); return *this; } /** *

A list of IDs. These values come from the idfield of the * replacePermissionAssociationsWorkstructure returned by the * ReplacePermissionAssociations operation.

*/ inline ListReplacePermissionAssociationsWorkRequest& AddWorkIds(const char* value) { m_workIdsHasBeenSet = true; m_workIds.push_back(value); return *this; } /** *

Specifies that you want to see only the details about requests with a status * that matches this value.

*/ inline const ReplacePermissionAssociationsWorkStatus& GetStatus() const{ return m_status; } /** *

Specifies that you want to see only the details about requests with a status * that matches this value.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

Specifies that you want to see only the details about requests with a status * that matches this value.

*/ inline void SetStatus(const ReplacePermissionAssociationsWorkStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

Specifies that you want to see only the details about requests with a status * that matches this value.

*/ inline void SetStatus(ReplacePermissionAssociationsWorkStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

Specifies that you want to see only the details about requests with a status * that matches this value.

*/ inline ListReplacePermissionAssociationsWorkRequest& WithStatus(const ReplacePermissionAssociationsWorkStatus& value) { SetStatus(value); return *this;} /** *

Specifies that you want to see only the details about requests with a status * that matches this value.

*/ inline ListReplacePermissionAssociationsWorkRequest& WithStatus(ReplacePermissionAssociationsWorkStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

Specifies that you want to receive the next page of results. Valid only if * you received a NextToken response in the previous request. If you * did, it indicates that more output is available. Set this parameter to the value * provided by the previous call's NextToken response to request the * next page of results.

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

Specifies that you want to receive the next page of results. Valid only if * you received a NextToken response in the previous request. If you * did, it indicates that more output is available. Set this parameter to the value * provided by the previous call's NextToken response to request the * next page of results.

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

Specifies that you want to receive the next page of results. Valid only if * you received a NextToken response in the previous request. If you * did, it indicates that more output is available. Set this parameter to the value * provided by the previous call's NextToken response to request the * next page of results.

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

Specifies that you want to receive the next page of results. Valid only if * you received a NextToken response in the previous request. If you * did, it indicates that more output is available. Set this parameter to the value * provided by the previous call's NextToken response to request the * next page of results.

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

Specifies that you want to receive the next page of results. Valid only if * you received a NextToken response in the previous request. If you * did, it indicates that more output is available. Set this parameter to the value * provided by the previous call's NextToken response to request the * next page of results.

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

Specifies that you want to receive the next page of results. Valid only if * you received a NextToken response in the previous request. If you * did, it indicates that more output is available. Set this parameter to the value * provided by the previous call's NextToken response to request the * next page of results.

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

Specifies that you want to receive the next page of results. Valid only if * you received a NextToken response in the previous request. If you * did, it indicates that more output is available. Set this parameter to the value * provided by the previous call's NextToken response to request the * next page of results.

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

Specifies that you want to receive the next page of results. Valid only if * you received a NextToken response in the previous request. If you * did, it indicates that more output is available. Set this parameter to the value * provided by the previous call's NextToken response to request the * next page of results.

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

Specifies the total number of results that you want included on each page of * the response. If you do not include this parameter, it defaults to a value that * is specific to the operation. If additional items exist beyond the number you * specify, the NextToken response element is returned with a value * (not null). Include the specified value as the NextToken request * parameter in the next call to the operation to get the next part of the results. * Note that the service might return fewer results than the maximum even when * there are more results available. You should check NextToken after * every operation to ensure that you receive all of the results.

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

Specifies the total number of results that you want included on each page of * the response. If you do not include this parameter, it defaults to a value that * is specific to the operation. If additional items exist beyond the number you * specify, the NextToken response element is returned with a value * (not null). Include the specified value as the NextToken request * parameter in the next call to the operation to get the next part of the results. * Note that the service might return fewer results than the maximum even when * there are more results available. You should check NextToken after * every operation to ensure that you receive all of the results.

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

Specifies the total number of results that you want included on each page of * the response. If you do not include this parameter, it defaults to a value that * is specific to the operation. If additional items exist beyond the number you * specify, the NextToken response element is returned with a value * (not null). Include the specified value as the NextToken request * parameter in the next call to the operation to get the next part of the results. * Note that the service might return fewer results than the maximum even when * there are more results available. You should check NextToken after * every operation to ensure that you receive all of the results.

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

Specifies the total number of results that you want included on each page of * the response. If you do not include this parameter, it defaults to a value that * is specific to the operation. If additional items exist beyond the number you * specify, the NextToken response element is returned with a value * (not null). Include the specified value as the NextToken request * parameter in the next call to the operation to get the next part of the results. * Note that the service might return fewer results than the maximum even when * there are more results available. You should check NextToken after * every operation to ensure that you receive all of the results.

*/ inline ListReplacePermissionAssociationsWorkRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: Aws::Vector m_workIds; bool m_workIdsHasBeenSet = false; ReplacePermissionAssociationsWorkStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace RAM } // namespace Aws