/** * 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 Http { class URI; } //namespace Http namespace DataExchange { namespace Model { /** */ class ListDataSetsRequest : public DataExchangeRequest { public: AWS_DATAEXCHANGE_API ListDataSetsRequest(); // 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 "ListDataSets"; } AWS_DATAEXCHANGE_API Aws::String SerializePayload() const override; AWS_DATAEXCHANGE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

The maximum number of results returned by a single call.

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

The maximum number of results returned by a single call.

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

The maximum number of results returned by a single call.

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

The maximum number of results returned by a single call.

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

The token value retrieved from a previous call to access the next page of * results.

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

The token value retrieved from a previous call to access the next page of * results.

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

The token value retrieved from a previous call to access the next page of * results.

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

The token value retrieved from a previous call to access the next page of * results.

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

The token value retrieved from a previous call to access the next page of * results.

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

The token value retrieved from a previous call to access the next page of * results.

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

The token value retrieved from a previous call to access the next page of * results.

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

The token value retrieved from a previous call to access the next page of * results.

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

A property that defines the data set as OWNED by the account (for providers) * or ENTITLED to the account (for subscribers).

*/ inline const Aws::String& GetOrigin() const{ return m_origin; } /** *

A property that defines the data set as OWNED by the account (for providers) * or ENTITLED to the account (for subscribers).

*/ inline bool OriginHasBeenSet() const { return m_originHasBeenSet; } /** *

A property that defines the data set as OWNED by the account (for providers) * or ENTITLED to the account (for subscribers).

*/ inline void SetOrigin(const Aws::String& value) { m_originHasBeenSet = true; m_origin = value; } /** *

A property that defines the data set as OWNED by the account (for providers) * or ENTITLED to the account (for subscribers).

*/ inline void SetOrigin(Aws::String&& value) { m_originHasBeenSet = true; m_origin = std::move(value); } /** *

A property that defines the data set as OWNED by the account (for providers) * or ENTITLED to the account (for subscribers).

*/ inline void SetOrigin(const char* value) { m_originHasBeenSet = true; m_origin.assign(value); } /** *

A property that defines the data set as OWNED by the account (for providers) * or ENTITLED to the account (for subscribers).

*/ inline ListDataSetsRequest& WithOrigin(const Aws::String& value) { SetOrigin(value); return *this;} /** *

A property that defines the data set as OWNED by the account (for providers) * or ENTITLED to the account (for subscribers).

*/ inline ListDataSetsRequest& WithOrigin(Aws::String&& value) { SetOrigin(std::move(value)); return *this;} /** *

A property that defines the data set as OWNED by the account (for providers) * or ENTITLED to the account (for subscribers).

*/ inline ListDataSetsRequest& WithOrigin(const char* value) { SetOrigin(value); return *this;} private: int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; Aws::String m_origin; bool m_originHasBeenSet = false; }; } // namespace Model } // namespace DataExchange } // namespace Aws