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

Specifies that you want to list only the resource shares that match the * following:

  • SELF – resources that your * account shares with other accounts

  • * OTHER-ACCOUNTS – resources that other accounts share with your * account

*/ inline const ResourceOwner& GetResourceOwner() const{ return m_resourceOwner; } /** *

Specifies that you want to list only the resource shares that match the * following:

  • SELF – resources that your * account shares with other accounts

  • * OTHER-ACCOUNTS – resources that other accounts share with your * account

*/ inline bool ResourceOwnerHasBeenSet() const { return m_resourceOwnerHasBeenSet; } /** *

Specifies that you want to list only the resource shares that match the * following:

  • SELF – resources that your * account shares with other accounts

  • * OTHER-ACCOUNTS – resources that other accounts share with your * account

*/ inline void SetResourceOwner(const ResourceOwner& value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner = value; } /** *

Specifies that you want to list only the resource shares that match the * following:

  • SELF – resources that your * account shares with other accounts

  • * OTHER-ACCOUNTS – resources that other accounts share with your * account

*/ inline void SetResourceOwner(ResourceOwner&& value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner = std::move(value); } /** *

Specifies that you want to list only the resource shares that match the * following:

  • SELF – resources that your * account shares with other accounts

  • * OTHER-ACCOUNTS – resources that other accounts share with your * account

*/ inline ListResourcesRequest& WithResourceOwner(const ResourceOwner& value) { SetResourceOwner(value); return *this;} /** *

Specifies that you want to list only the resource shares that match the * following:

  • SELF – resources that your * account shares with other accounts

  • * OTHER-ACCOUNTS – resources that other accounts share with your * account

*/ inline ListResourcesRequest& WithResourceOwner(ResourceOwner&& value) { SetResourceOwner(std::move(value)); return *this;} /** *

Specifies that you want to list only the resource shares that are associated * with the specified principal.

*/ inline const Aws::String& GetPrincipal() const{ return m_principal; } /** *

Specifies that you want to list only the resource shares that are associated * with the specified principal.

*/ inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; } /** *

Specifies that you want to list only the resource shares that are associated * with the specified principal.

*/ inline void SetPrincipal(const Aws::String& value) { m_principalHasBeenSet = true; m_principal = value; } /** *

Specifies that you want to list only the resource shares that are associated * with the specified principal.

*/ inline void SetPrincipal(Aws::String&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); } /** *

Specifies that you want to list only the resource shares that are associated * with the specified principal.

*/ inline void SetPrincipal(const char* value) { m_principalHasBeenSet = true; m_principal.assign(value); } /** *

Specifies that you want to list only the resource shares that are associated * with the specified principal.

*/ inline ListResourcesRequest& WithPrincipal(const Aws::String& value) { SetPrincipal(value); return *this;} /** *

Specifies that you want to list only the resource shares that are associated * with the specified principal.

*/ inline ListResourcesRequest& WithPrincipal(Aws::String&& value) { SetPrincipal(std::move(value)); return *this;} /** *

Specifies that you want to list only the resource shares that are associated * with the specified principal.

*/ inline ListResourcesRequest& WithPrincipal(const char* value) { SetPrincipal(value); return *this;} /** *

Specifies that you want to list only the resource shares that include * resources of the specified resource type.

For valid values, query the * ListResourceTypes operation.

*/ inline const Aws::String& GetResourceType() const{ return m_resourceType; } /** *

Specifies that you want to list only the resource shares that include * resources of the specified resource type.

For valid values, query the * ListResourceTypes operation.

*/ inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } /** *

Specifies that you want to list only the resource shares that include * resources of the specified resource type.

For valid values, query the * ListResourceTypes operation.

*/ inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } /** *

Specifies that you want to list only the resource shares that include * resources of the specified resource type.

For valid values, query the * ListResourceTypes operation.

*/ inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } /** *

Specifies that you want to list only the resource shares that include * resources of the specified resource type.

For valid values, query the * ListResourceTypes operation.

*/ inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); } /** *

Specifies that you want to list only the resource shares that include * resources of the specified resource type.

For valid values, query the * ListResourceTypes operation.

*/ inline ListResourcesRequest& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;} /** *

Specifies that you want to list only the resource shares that include * resources of the specified resource type.

For valid values, query the * ListResourceTypes operation.

*/ inline ListResourcesRequest& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;} /** *

Specifies that you want to list only the resource shares that include * resources of the specified resource type.

For valid values, query the * ListResourceTypes operation.

*/ inline ListResourcesRequest& WithResourceType(const char* value) { SetResourceType(value); return *this;} /** *

Specifies that you want to list only the resource shares that include * resources with the specified Amazon * Resource Names (ARNs).

*/ inline const Aws::Vector& GetResourceArns() const{ return m_resourceArns; } /** *

Specifies that you want to list only the resource shares that include * resources with the specified Amazon * Resource Names (ARNs).

*/ inline bool ResourceArnsHasBeenSet() const { return m_resourceArnsHasBeenSet; } /** *

Specifies that you want to list only the resource shares that include * resources with the specified Amazon * Resource Names (ARNs).

*/ inline void SetResourceArns(const Aws::Vector& value) { m_resourceArnsHasBeenSet = true; m_resourceArns = value; } /** *

Specifies that you want to list only the resource shares that include * resources with the specified Amazon * Resource Names (ARNs).

*/ inline void SetResourceArns(Aws::Vector&& value) { m_resourceArnsHasBeenSet = true; m_resourceArns = std::move(value); } /** *

Specifies that you want to list only the resource shares that include * resources with the specified Amazon * Resource Names (ARNs).

*/ inline ListResourcesRequest& WithResourceArns(const Aws::Vector& value) { SetResourceArns(value); return *this;} /** *

Specifies that you want to list only the resource shares that include * resources with the specified Amazon * Resource Names (ARNs).

*/ inline ListResourcesRequest& WithResourceArns(Aws::Vector&& value) { SetResourceArns(std::move(value)); return *this;} /** *

Specifies that you want to list only the resource shares that include * resources with the specified Amazon * Resource Names (ARNs).

*/ inline ListResourcesRequest& AddResourceArns(const Aws::String& value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(value); return *this; } /** *

Specifies that you want to list only the resource shares that include * resources with the specified Amazon * Resource Names (ARNs).

*/ inline ListResourcesRequest& AddResourceArns(Aws::String&& value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(std::move(value)); return *this; } /** *

Specifies that you want to list only the resource shares that include * resources with the specified Amazon * Resource Names (ARNs).

*/ inline ListResourcesRequest& AddResourceArns(const char* value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(value); return *this; } /** *

Specifies that you want to list only resources in the resource shares * identified by the specified Amazon * Resource Names (ARNs).

*/ inline const Aws::Vector& GetResourceShareArns() const{ return m_resourceShareArns; } /** *

Specifies that you want to list only resources in the resource shares * identified by the specified Amazon * Resource Names (ARNs).

*/ inline bool ResourceShareArnsHasBeenSet() const { return m_resourceShareArnsHasBeenSet; } /** *

Specifies that you want to list only resources in the resource shares * identified by the specified Amazon * Resource Names (ARNs).

*/ inline void SetResourceShareArns(const Aws::Vector& value) { m_resourceShareArnsHasBeenSet = true; m_resourceShareArns = value; } /** *

Specifies that you want to list only resources in the resource shares * identified by the specified Amazon * Resource Names (ARNs).

*/ inline void SetResourceShareArns(Aws::Vector&& value) { m_resourceShareArnsHasBeenSet = true; m_resourceShareArns = std::move(value); } /** *

Specifies that you want to list only resources in the resource shares * identified by the specified Amazon * Resource Names (ARNs).

*/ inline ListResourcesRequest& WithResourceShareArns(const Aws::Vector& value) { SetResourceShareArns(value); return *this;} /** *

Specifies that you want to list only resources in the resource shares * identified by the specified Amazon * Resource Names (ARNs).

*/ inline ListResourcesRequest& WithResourceShareArns(Aws::Vector&& value) { SetResourceShareArns(std::move(value)); return *this;} /** *

Specifies that you want to list only resources in the resource shares * identified by the specified Amazon * Resource Names (ARNs).

*/ inline ListResourcesRequest& AddResourceShareArns(const Aws::String& value) { m_resourceShareArnsHasBeenSet = true; m_resourceShareArns.push_back(value); return *this; } /** *

Specifies that you want to list only resources in the resource shares * identified by the specified Amazon * Resource Names (ARNs).

*/ inline ListResourcesRequest& AddResourceShareArns(Aws::String&& value) { m_resourceShareArnsHasBeenSet = true; m_resourceShareArns.push_back(std::move(value)); return *this; } /** *

Specifies that you want to list only resources in the resource shares * identified by the specified Amazon * Resource Names (ARNs).

*/ inline ListResourcesRequest& AddResourceShareArns(const char* value) { m_resourceShareArnsHasBeenSet = true; m_resourceShareArns.push_back(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 ListResourcesRequest& 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 ListResourcesRequest& 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 ListResourcesRequest& 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 ListResourcesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

Specifies that you want the results to include only resources that have the * specified scope.

  • ALL – the results include both * global and regional resources or resource types.

  • * GLOBAL – the results include only global resources or resource * types.

  • REGIONAL – the results include only * regional resources or resource types.

The default value is * ALL.

*/ inline const ResourceRegionScopeFilter& GetResourceRegionScope() const{ return m_resourceRegionScope; } /** *

Specifies that you want the results to include only resources that have the * specified scope.

  • ALL – the results include both * global and regional resources or resource types.

  • * GLOBAL – the results include only global resources or resource * types.

  • REGIONAL – the results include only * regional resources or resource types.

The default value is * ALL.

*/ inline bool ResourceRegionScopeHasBeenSet() const { return m_resourceRegionScopeHasBeenSet; } /** *

Specifies that you want the results to include only resources that have the * specified scope.

  • ALL – the results include both * global and regional resources or resource types.

  • * GLOBAL – the results include only global resources or resource * types.

  • REGIONAL – the results include only * regional resources or resource types.

The default value is * ALL.

*/ inline void SetResourceRegionScope(const ResourceRegionScopeFilter& value) { m_resourceRegionScopeHasBeenSet = true; m_resourceRegionScope = value; } /** *

Specifies that you want the results to include only resources that have the * specified scope.

  • ALL – the results include both * global and regional resources or resource types.

  • * GLOBAL – the results include only global resources or resource * types.

  • REGIONAL – the results include only * regional resources or resource types.

The default value is * ALL.

*/ inline void SetResourceRegionScope(ResourceRegionScopeFilter&& value) { m_resourceRegionScopeHasBeenSet = true; m_resourceRegionScope = std::move(value); } /** *

Specifies that you want the results to include only resources that have the * specified scope.

  • ALL – the results include both * global and regional resources or resource types.

  • * GLOBAL – the results include only global resources or resource * types.

  • REGIONAL – the results include only * regional resources or resource types.

The default value is * ALL.

*/ inline ListResourcesRequest& WithResourceRegionScope(const ResourceRegionScopeFilter& value) { SetResourceRegionScope(value); return *this;} /** *

Specifies that you want the results to include only resources that have the * specified scope.

  • ALL – the results include both * global and regional resources or resource types.

  • * GLOBAL – the results include only global resources or resource * types.

  • REGIONAL – the results include only * regional resources or resource types.

The default value is * ALL.

*/ inline ListResourcesRequest& WithResourceRegionScope(ResourceRegionScopeFilter&& value) { SetResourceRegionScope(std::move(value)); return *this;} private: ResourceOwner m_resourceOwner; bool m_resourceOwnerHasBeenSet = false; Aws::String m_principal; bool m_principalHasBeenSet = false; Aws::String m_resourceType; bool m_resourceTypeHasBeenSet = false; Aws::Vector m_resourceArns; bool m_resourceArnsHasBeenSet = false; Aws::Vector m_resourceShareArns; bool m_resourceShareArnsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; ResourceRegionScopeFilter m_resourceRegionScope; bool m_resourceRegionScopeHasBeenSet = false; }; } // namespace Model } // namespace RAM } // namespace Aws