/** * 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 #include namespace Aws { namespace RAM { namespace Model { /** */ class AWS_RAM_API GetResourceSharesRequest : public RAMRequest { public: GetResourceSharesRequest(); // 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 "GetResourceShares"; } Aws::String SerializePayload() const override; /** *

The Amazon Resource Names (ARN) of the resource shares.

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

The Amazon Resource Names (ARN) of the resource shares.

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

The Amazon Resource Names (ARN) of the resource shares.

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

The Amazon Resource Names (ARN) of the resource shares.

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

The Amazon Resource Names (ARN) of the resource shares.

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

The Amazon Resource Names (ARN) of the resource shares.

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

The Amazon Resource Names (ARN) of the resource shares.

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

The Amazon Resource Names (ARN) of the resource shares.

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

The Amazon Resource Names (ARN) of the resource shares.

*/ inline GetResourceSharesRequest& AddResourceShareArns(const char* value) { m_resourceShareArnsHasBeenSet = true; m_resourceShareArns.push_back(value); return *this; } /** *

The status of the resource share.

*/ inline const ResourceShareStatus& GetResourceShareStatus() const{ return m_resourceShareStatus; } /** *

The status of the resource share.

*/ inline bool ResourceShareStatusHasBeenSet() const { return m_resourceShareStatusHasBeenSet; } /** *

The status of the resource share.

*/ inline void SetResourceShareStatus(const ResourceShareStatus& value) { m_resourceShareStatusHasBeenSet = true; m_resourceShareStatus = value; } /** *

The status of the resource share.

*/ inline void SetResourceShareStatus(ResourceShareStatus&& value) { m_resourceShareStatusHasBeenSet = true; m_resourceShareStatus = std::move(value); } /** *

The status of the resource share.

*/ inline GetResourceSharesRequest& WithResourceShareStatus(const ResourceShareStatus& value) { SetResourceShareStatus(value); return *this;} /** *

The status of the resource share.

*/ inline GetResourceSharesRequest& WithResourceShareStatus(ResourceShareStatus&& value) { SetResourceShareStatus(std::move(value)); return *this;} /** *

The type of owner.

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

The type of owner.

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

The type of owner.

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

The type of owner.

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

The type of owner.

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

The type of owner.

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

The name of the resource share.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the resource share.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the resource share.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the resource share.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the resource share.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the resource share.

*/ inline GetResourceSharesRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the resource share.

*/ inline GetResourceSharesRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the resource share.

*/ inline GetResourceSharesRequest& WithName(const char* value) { SetName(value); return *this;} /** *

One or more tag filters.

*/ inline const Aws::Vector& GetTagFilters() const{ return m_tagFilters; } /** *

One or more tag filters.

*/ inline bool TagFiltersHasBeenSet() const { return m_tagFiltersHasBeenSet; } /** *

One or more tag filters.

*/ inline void SetTagFilters(const Aws::Vector& value) { m_tagFiltersHasBeenSet = true; m_tagFilters = value; } /** *

One or more tag filters.

*/ inline void SetTagFilters(Aws::Vector&& value) { m_tagFiltersHasBeenSet = true; m_tagFilters = std::move(value); } /** *

One or more tag filters.

*/ inline GetResourceSharesRequest& WithTagFilters(const Aws::Vector& value) { SetTagFilters(value); return *this;} /** *

One or more tag filters.

*/ inline GetResourceSharesRequest& WithTagFilters(Aws::Vector&& value) { SetTagFilters(std::move(value)); return *this;} /** *

One or more tag filters.

*/ inline GetResourceSharesRequest& AddTagFilters(const TagFilter& value) { m_tagFiltersHasBeenSet = true; m_tagFilters.push_back(value); return *this; } /** *

One or more tag filters.

*/ inline GetResourceSharesRequest& AddTagFilters(TagFilter&& value) { m_tagFiltersHasBeenSet = true; m_tagFilters.push_back(std::move(value)); return *this; } /** *

The token for the next page of results.

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

The token for the next page of results.

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

The token for the next page of results.

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

The token for the next page of results.

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

The token for the next page of results.

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

The token for the next page of results.

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

The token for the next page of results.

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

The token for the next page of results.

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

The maximum number of results to return with a single call. To retrieve the * remaining results, make another call with the returned nextToken * value.

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

The maximum number of results to return with a single call. To retrieve the * remaining results, make another call with the returned nextToken * value.

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

The maximum number of results to return with a single call. To retrieve the * remaining results, make another call with the returned nextToken * value.

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

The maximum number of results to return with a single call. To retrieve the * remaining results, make another call with the returned nextToken * value.

*/ inline GetResourceSharesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: Aws::Vector m_resourceShareArns; bool m_resourceShareArnsHasBeenSet; ResourceShareStatus m_resourceShareStatus; bool m_resourceShareStatusHasBeenSet; ResourceOwner m_resourceOwner; bool m_resourceOwnerHasBeenSet; Aws::String m_name; bool m_nameHasBeenSet; Aws::Vector m_tagFilters; bool m_tagFiltersHasBeenSet; Aws::String m_nextToken; bool m_nextTokenHasBeenSet; int m_maxResults; bool m_maxResultsHasBeenSet; }; } // namespace Model } // namespace RAM } // namespace Aws