All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awssdk.services.elasticache.model.DescribeCacheParametersRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon ElastiCache module holds the client classes that are used for communicating with Amazon ElastiCache Service

There is a newer version: 2.29.39
Show newest version
/*
 * Copyright 2012-2017 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 software.amazon.awssdk.services.elasticache.model;

import javax.annotation.Generated;
import software.amazon.awssdk.AmazonWebServiceRequest;
import software.amazon.awssdk.utils.builder.CopyableBuilder;
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;

/**
 * 

* Represents the input of a DescribeCacheParameters operation. *

*/ @Generated("software.amazon.awssdk:codegen") public class DescribeCacheParametersRequest extends AmazonWebServiceRequest implements ToCopyableBuilder { private final String cacheParameterGroupName; private final String source; private final Integer maxRecords; private final String marker; private DescribeCacheParametersRequest(BuilderImpl builder) { this.cacheParameterGroupName = builder.cacheParameterGroupName; this.source = builder.source; this.maxRecords = builder.maxRecords; this.marker = builder.marker; } /** *

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

* * @return The name of a specific cache parameter group to return details for. */ public String cacheParameterGroupName() { return cacheParameterGroupName; } /** *

* The parameter types to return. *

*

* Valid values: user | system | engine-default *

* * @return The parameter types to return.

*

* Valid values: user | system | engine-default */ public String source() { return source; } /** *

* 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. *

* * @return 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. */ public Integer maxRecords() { return 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. *

* * @return 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. */ public String marker() { return marker; } @Override public Builder toBuilder() { return new BuilderImpl(this); } public static Builder builder() { return new BuilderImpl(); } public static Class serializableBuilderClass() { return BuilderImpl.class; } @Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + ((cacheParameterGroupName() == null) ? 0 : cacheParameterGroupName().hashCode()); hashCode = 31 * hashCode + ((source() == null) ? 0 : source().hashCode()); hashCode = 31 * hashCode + ((maxRecords() == null) ? 0 : maxRecords().hashCode()); hashCode = 31 * hashCode + ((marker() == null) ? 0 : marker().hashCode()); return hashCode; } @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof DescribeCacheParametersRequest)) { return false; } DescribeCacheParametersRequest other = (DescribeCacheParametersRequest) obj; if (other.cacheParameterGroupName() == null ^ this.cacheParameterGroupName() == null) { return false; } if (other.cacheParameterGroupName() != null && !other.cacheParameterGroupName().equals(this.cacheParameterGroupName())) { return false; } if (other.source() == null ^ this.source() == null) { return false; } if (other.source() != null && !other.source().equals(this.source())) { return false; } if (other.maxRecords() == null ^ this.maxRecords() == null) { return false; } if (other.maxRecords() != null && !other.maxRecords().equals(this.maxRecords())) { return false; } if (other.marker() == null ^ this.marker() == null) { return false; } if (other.marker() != null && !other.marker().equals(this.marker())) { return false; } return true; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (cacheParameterGroupName() != null) { sb.append("CacheParameterGroupName: ").append(cacheParameterGroupName()).append(","); } if (source() != null) { sb.append("Source: ").append(source()).append(","); } if (maxRecords() != null) { sb.append("MaxRecords: ").append(maxRecords()).append(","); } if (marker() != null) { sb.append("Marker: ").append(marker()).append(","); } sb.append("}"); return sb.toString(); } public interface Builder extends CopyableBuilder { /** *

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

* * @param cacheParameterGroupName * The name of a specific cache parameter group to return details for. * @return Returns a reference to this object so that method calls can be chained together. */ Builder cacheParameterGroupName(String cacheParameterGroupName); /** *

* The parameter types to return. *

*

* Valid values: user | system | engine-default *

* * @param source * The parameter types to return.

*

* Valid values: user | system | engine-default * @return Returns a reference to this object so that method calls can be chained together. */ Builder source(String source); /** *

* 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. *

* * @param maxRecords * 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. * @return Returns a reference to this object so that method calls can be chained together. */ Builder maxRecords(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. *

* * @param marker * 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. * @return Returns a reference to this object so that method calls can be chained together. */ Builder marker(String marker); } private static final class BuilderImpl implements Builder { private String cacheParameterGroupName; private String source; private Integer maxRecords; private String marker; private BuilderImpl() { } private BuilderImpl(DescribeCacheParametersRequest model) { setCacheParameterGroupName(model.cacheParameterGroupName); setSource(model.source); setMaxRecords(model.maxRecords); setMarker(model.marker); } public final String getCacheParameterGroupName() { return cacheParameterGroupName; } @Override public final Builder cacheParameterGroupName(String cacheParameterGroupName) { this.cacheParameterGroupName = cacheParameterGroupName; return this; } public final void setCacheParameterGroupName(String cacheParameterGroupName) { this.cacheParameterGroupName = cacheParameterGroupName; } public final String getSource() { return source; } @Override public final Builder source(String source) { this.source = source; return this; } public final void setSource(String source) { this.source = source; } public final Integer getMaxRecords() { return maxRecords; } @Override public final Builder maxRecords(Integer maxRecords) { this.maxRecords = maxRecords; return this; } public final void setMaxRecords(Integer maxRecords) { this.maxRecords = maxRecords; } public final String getMarker() { return marker; } @Override public final Builder marker(String marker) { this.marker = marker; return this; } public final void setMarker(String marker) { this.marker = marker; } @Override public DescribeCacheParametersRequest build() { return new DescribeCacheParametersRequest(this); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy