/** * 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 MemoryDB { namespace Model { /** */ class DescribeServiceUpdatesRequest : public MemoryDBRequest { public: AWS_MEMORYDB_API DescribeServiceUpdatesRequest(); // 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 "DescribeServiceUpdates"; } AWS_MEMORYDB_API Aws::String SerializePayload() const override; AWS_MEMORYDB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The unique ID of the service update to describe.

*/ inline const Aws::String& GetServiceUpdateName() const{ return m_serviceUpdateName; } /** *

The unique ID of the service update to describe.

*/ inline bool ServiceUpdateNameHasBeenSet() const { return m_serviceUpdateNameHasBeenSet; } /** *

The unique ID of the service update to describe.

*/ inline void SetServiceUpdateName(const Aws::String& value) { m_serviceUpdateNameHasBeenSet = true; m_serviceUpdateName = value; } /** *

The unique ID of the service update to describe.

*/ inline void SetServiceUpdateName(Aws::String&& value) { m_serviceUpdateNameHasBeenSet = true; m_serviceUpdateName = std::move(value); } /** *

The unique ID of the service update to describe.

*/ inline void SetServiceUpdateName(const char* value) { m_serviceUpdateNameHasBeenSet = true; m_serviceUpdateName.assign(value); } /** *

The unique ID of the service update to describe.

*/ inline DescribeServiceUpdatesRequest& WithServiceUpdateName(const Aws::String& value) { SetServiceUpdateName(value); return *this;} /** *

The unique ID of the service update to describe.

*/ inline DescribeServiceUpdatesRequest& WithServiceUpdateName(Aws::String&& value) { SetServiceUpdateName(std::move(value)); return *this;} /** *

The unique ID of the service update to describe.

*/ inline DescribeServiceUpdatesRequest& WithServiceUpdateName(const char* value) { SetServiceUpdateName(value); return *this;} /** *

The list of cluster names to identify service updates to apply

*/ inline const Aws::Vector& GetClusterNames() const{ return m_clusterNames; } /** *

The list of cluster names to identify service updates to apply

*/ inline bool ClusterNamesHasBeenSet() const { return m_clusterNamesHasBeenSet; } /** *

The list of cluster names to identify service updates to apply

*/ inline void SetClusterNames(const Aws::Vector& value) { m_clusterNamesHasBeenSet = true; m_clusterNames = value; } /** *

The list of cluster names to identify service updates to apply

*/ inline void SetClusterNames(Aws::Vector&& value) { m_clusterNamesHasBeenSet = true; m_clusterNames = std::move(value); } /** *

The list of cluster names to identify service updates to apply

*/ inline DescribeServiceUpdatesRequest& WithClusterNames(const Aws::Vector& value) { SetClusterNames(value); return *this;} /** *

The list of cluster names to identify service updates to apply

*/ inline DescribeServiceUpdatesRequest& WithClusterNames(Aws::Vector&& value) { SetClusterNames(std::move(value)); return *this;} /** *

The list of cluster names to identify service updates to apply

*/ inline DescribeServiceUpdatesRequest& AddClusterNames(const Aws::String& value) { m_clusterNamesHasBeenSet = true; m_clusterNames.push_back(value); return *this; } /** *

The list of cluster names to identify service updates to apply

*/ inline DescribeServiceUpdatesRequest& AddClusterNames(Aws::String&& value) { m_clusterNamesHasBeenSet = true; m_clusterNames.push_back(std::move(value)); return *this; } /** *

The list of cluster names to identify service updates to apply

*/ inline DescribeServiceUpdatesRequest& AddClusterNames(const char* value) { m_clusterNamesHasBeenSet = true; m_clusterNames.push_back(value); return *this; } /** *

The status(es) of the service updates to filter on

*/ inline const Aws::Vector& GetStatus() const{ return m_status; } /** *

The status(es) of the service updates to filter on

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

The status(es) of the service updates to filter on

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

The status(es) of the service updates to filter on

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

The status(es) of the service updates to filter on

*/ inline DescribeServiceUpdatesRequest& WithStatus(const Aws::Vector& value) { SetStatus(value); return *this;} /** *

The status(es) of the service updates to filter on

*/ inline DescribeServiceUpdatesRequest& WithStatus(Aws::Vector&& value) { SetStatus(std::move(value)); return *this;} /** *

The status(es) of the service updates to filter on

*/ inline DescribeServiceUpdatesRequest& AddStatus(const ServiceUpdateStatus& value) { m_statusHasBeenSet = true; m_status.push_back(value); return *this; } /** *

The status(es) of the service updates to filter on

*/ inline DescribeServiceUpdatesRequest& AddStatus(ServiceUpdateStatus&& value) { m_statusHasBeenSet = true; m_status.push_back(std::move(value)); return *this; } /** *

The maximum number of records to include in the response. If more records * exist than the specified MaxResults value, a token is included in the response * so that the remaining results can be retrieved.

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

The maximum number of records to include in the response. If more records * exist than the specified MaxResults value, a token is included in the response * so that the remaining results can be retrieved.

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

The maximum number of records to include in the response. If more records * exist than the specified MaxResults value, a token is included in the response * so that the remaining results can be retrieved.

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

The maximum number of records to include in the response. If more records * exist than the specified MaxResults value, a token is included in the response * so that the remaining results can be retrieved.

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

An optional argument to pass in case the total number of records exceeds the * value of MaxResults. If nextToken is returned, there are more results available. * The value of nextToken is a unique pagination token for each page. Make the call * again using the returned token to retrieve the next page. Keep all other * arguments unchanged.

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

An optional argument to pass in case the total number of records exceeds the * value of MaxResults. If nextToken is returned, there are more results available. * The value of nextToken is a unique pagination token for each page. Make the call * again using the returned token to retrieve the next page. Keep all other * arguments unchanged.

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

An optional argument to pass in case the total number of records exceeds the * value of MaxResults. If nextToken is returned, there are more results available. * The value of nextToken is a unique pagination token for each page. Make the call * again using the returned token to retrieve the next page. Keep all other * arguments unchanged.

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

An optional argument to pass in case the total number of records exceeds the * value of MaxResults. If nextToken is returned, there are more results available. * The value of nextToken is a unique pagination token for each page. Make the call * again using the returned token to retrieve the next page. Keep all other * arguments unchanged.

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

An optional argument to pass in case the total number of records exceeds the * value of MaxResults. If nextToken is returned, there are more results available. * The value of nextToken is a unique pagination token for each page. Make the call * again using the returned token to retrieve the next page. Keep all other * arguments unchanged.

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

An optional argument to pass in case the total number of records exceeds the * value of MaxResults. If nextToken is returned, there are more results available. * The value of nextToken is a unique pagination token for each page. Make the call * again using the returned token to retrieve the next page. Keep all other * arguments unchanged.

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

An optional argument to pass in case the total number of records exceeds the * value of MaxResults. If nextToken is returned, there are more results available. * The value of nextToken is a unique pagination token for each page. Make the call * again using the returned token to retrieve the next page. Keep all other * arguments unchanged.

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

An optional argument to pass in case the total number of records exceeds the * value of MaxResults. If nextToken is returned, there are more results available. * The value of nextToken is a unique pagination token for each page. Make the call * again using the returned token to retrieve the next page. Keep all other * arguments unchanged.

*/ inline DescribeServiceUpdatesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::String m_serviceUpdateName; bool m_serviceUpdateNameHasBeenSet = false; Aws::Vector m_clusterNames; bool m_clusterNamesHasBeenSet = false; Aws::Vector m_status; bool m_statusHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace MemoryDB } // namespace Aws