/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.elasticache.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** *

* Represents the input of a DescribeCacheEngineVersions operation. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DescribeCacheEngineVersionsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* The cache engine to return. Valid values: memcached | redis *

*/ private String engine; /** *

* The cache engine version to return. *

*

* Example: 1.4.14 *

*/ private String engineVersion; /** *

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

*

* Valid values are: memcached1.4 | memcached1.5 | memcached1.6 | * redis2.6 | redis2.8 | redis3.2 | redis4.0 | * redis5.0 | redis6.x | redis6.2 | redis7 *

*

* Constraints: *

* */ private String cacheParameterGroupFamily; /** *

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

*

* Default: 100 *

*

* Constraints: minimum 20; maximum 100. *

*/ private Integer maxRecords; /** *

* An optional marker returned from a prior request. Use this marker for pagination of results from this operation. * If this parameter is specified, the response includes only records beyond the marker, up to the value specified * by MaxRecords. *

*/ private String marker; /** *

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

*/ private Boolean defaultOnly; /** *

* The cache engine to return. Valid values: memcached | redis *

* * @param engine * The cache engine to return. Valid values: memcached | redis */ public void setEngine(String engine) { this.engine = engine; } /** *

* The cache engine to return. Valid values: memcached | redis *

* * @return The cache engine to return. Valid values: memcached | redis */ public String getEngine() { return this.engine; } /** *

* The cache engine to return. Valid values: memcached | redis *

* * @param engine * The cache engine to return. Valid values: memcached | redis * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeCacheEngineVersionsRequest withEngine(String engine) { setEngine(engine); return this; } /** *

* The cache engine version to return. *

*

* Example: 1.4.14 *

* * @param engineVersion * The cache engine version to return.

*

* Example: 1.4.14 */ public void setEngineVersion(String engineVersion) { this.engineVersion = engineVersion; } /** *

* The cache engine version to return. *

*

* Example: 1.4.14 *

* * @return The cache engine version to return.

*

* Example: 1.4.14 */ public String getEngineVersion() { return this.engineVersion; } /** *

* The cache engine version to return. *

*

* Example: 1.4.14 *

* * @param engineVersion * The cache engine version to return.

*

* Example: 1.4.14 * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeCacheEngineVersionsRequest withEngineVersion(String engineVersion) { setEngineVersion(engineVersion); return this; } /** *

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

*

* Valid values are: memcached1.4 | memcached1.5 | memcached1.6 | * redis2.6 | redis2.8 | redis3.2 | redis4.0 | * redis5.0 | redis6.x | redis6.2 | redis7 *

*

* Constraints: *

* * * @param cacheParameterGroupFamily * The name of a specific cache parameter group family to return details for.

*

* Valid values are: memcached1.4 | memcached1.5 | memcached1.6 | * redis2.6 | redis2.8 | redis3.2 | redis4.0 | * redis5.0 | redis6.x | redis6.2 | redis7 *

*

* Constraints: *

*