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

The Redis engine version

*/ inline const Aws::String& GetEngineVersion() const{ return m_engineVersion; } /** *

The Redis engine version

*/ inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; } /** *

The Redis engine version

*/ inline void SetEngineVersion(const Aws::String& value) { m_engineVersionHasBeenSet = true; m_engineVersion = value; } /** *

The Redis engine version

*/ inline void SetEngineVersion(Aws::String&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::move(value); } /** *

The Redis engine version

*/ inline void SetEngineVersion(const char* value) { m_engineVersionHasBeenSet = true; m_engineVersion.assign(value); } /** *

The Redis engine version

*/ inline DescribeEngineVersionsRequest& WithEngineVersion(const Aws::String& value) { SetEngineVersion(value); return *this;} /** *

The Redis engine version

*/ inline DescribeEngineVersionsRequest& WithEngineVersion(Aws::String&& value) { SetEngineVersion(std::move(value)); return *this;} /** *

The Redis engine version

*/ inline DescribeEngineVersionsRequest& WithEngineVersion(const char* value) { SetEngineVersion(value); return *this;} /** *

The name of a specific parameter group family to return details for.

*/ inline const Aws::String& GetParameterGroupFamily() const{ return m_parameterGroupFamily; } /** *

The name of a specific parameter group family to return details for.

*/ inline bool ParameterGroupFamilyHasBeenSet() const { return m_parameterGroupFamilyHasBeenSet; } /** *

The name of a specific parameter group family to return details for.

*/ inline void SetParameterGroupFamily(const Aws::String& value) { m_parameterGroupFamilyHasBeenSet = true; m_parameterGroupFamily = value; } /** *

The name of a specific parameter group family to return details for.

*/ inline void SetParameterGroupFamily(Aws::String&& value) { m_parameterGroupFamilyHasBeenSet = true; m_parameterGroupFamily = std::move(value); } /** *

The name of a specific parameter group family to return details for.

*/ inline void SetParameterGroupFamily(const char* value) { m_parameterGroupFamilyHasBeenSet = true; m_parameterGroupFamily.assign(value); } /** *

The name of a specific parameter group family to return details for.

*/ inline DescribeEngineVersionsRequest& WithParameterGroupFamily(const Aws::String& value) { SetParameterGroupFamily(value); return *this;} /** *

The name of a specific parameter group family to return details for.

*/ inline DescribeEngineVersionsRequest& WithParameterGroupFamily(Aws::String&& value) { SetParameterGroupFamily(std::move(value)); return *this;} /** *

The name of a specific parameter group family to return details for.

*/ inline DescribeEngineVersionsRequest& WithParameterGroupFamily(const char* value) { SetParameterGroupFamily(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 DescribeEngineVersionsRequest& 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 DescribeEngineVersionsRequest& 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 DescribeEngineVersionsRequest& 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 DescribeEngineVersionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

If true, specifies that only the default version of the specified engine or * engine and major version combination is to be returned.

*/ inline bool GetDefaultOnly() const{ return m_defaultOnly; } /** *

If true, specifies that only the default version of the specified engine or * engine and major version combination is to be returned.

*/ inline bool DefaultOnlyHasBeenSet() const { return m_defaultOnlyHasBeenSet; } /** *

If true, specifies that only the default version of the specified engine or * engine and major version combination is to be returned.

*/ inline void SetDefaultOnly(bool value) { m_defaultOnlyHasBeenSet = true; m_defaultOnly = value; } /** *

If true, specifies that only the default version of the specified engine or * engine and major version combination is to be returned.

*/ inline DescribeEngineVersionsRequest& WithDefaultOnly(bool value) { SetDefaultOnly(value); return *this;} private: Aws::String m_engineVersion; bool m_engineVersionHasBeenSet = false; Aws::String m_parameterGroupFamily; bool m_parameterGroupFamilyHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; bool m_defaultOnly; bool m_defaultOnlyHasBeenSet = false; }; } // namespace Model } // namespace MemoryDB } // namespace Aws