software.amazon.awssdk.services.elasticache.model.DescribeEngineDefaultParametersResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elasticache Show documentation
Show all versions of elasticache Show documentation
The AWS Java SDK for Amazon ElastiCache module holds the client classes that are used for communicating
with Amazon ElastiCache Service
/*
* 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.AmazonWebServiceResult;
import software.amazon.awssdk.ResponseMetadata;
import software.amazon.awssdk.utils.builder.CopyableBuilder;
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
/**
*/
@Generated("software.amazon.awssdk:codegen")
public class DescribeEngineDefaultParametersResponse extends AmazonWebServiceResult implements
ToCopyableBuilder {
private final EngineDefaults engineDefaults;
private DescribeEngineDefaultParametersResponse(BuilderImpl builder) {
this.engineDefaults = builder.engineDefaults;
}
/**
* Returns the value of the EngineDefaults property for this object.
*
* @return The value of the EngineDefaults property for this object.
*/
public EngineDefaults engineDefaults() {
return engineDefaults;
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
public static Builder builder() {
return new BuilderImpl();
}
public static Class extends Builder> serializableBuilderClass() {
return BuilderImpl.class;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = 31 * hashCode + ((engineDefaults() == null) ? 0 : engineDefaults().hashCode());
return hashCode;
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (!(obj instanceof DescribeEngineDefaultParametersResponse)) {
return false;
}
DescribeEngineDefaultParametersResponse other = (DescribeEngineDefaultParametersResponse) obj;
if (other.engineDefaults() == null ^ this.engineDefaults() == null) {
return false;
}
if (other.engineDefaults() != null && !other.engineDefaults().equals(this.engineDefaults())) {
return false;
}
return true;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (engineDefaults() != null) {
sb.append("EngineDefaults: ").append(engineDefaults()).append(",");
}
sb.append("}");
return sb.toString();
}
public interface Builder extends CopyableBuilder {
/**
* Sets the value of the EngineDefaults property for this object.
*
* @param engineDefaults
* The new value for the EngineDefaults property for this object.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder engineDefaults(EngineDefaults engineDefaults);
}
private static final class BuilderImpl implements Builder {
private EngineDefaults engineDefaults;
private BuilderImpl() {
}
private BuilderImpl(DescribeEngineDefaultParametersResponse model) {
setEngineDefaults(model.engineDefaults);
}
public final EngineDefaults getEngineDefaults() {
return engineDefaults;
}
@Override
public final Builder engineDefaults(EngineDefaults engineDefaults) {
this.engineDefaults = engineDefaults;
return this;
}
public final void setEngineDefaults(EngineDefaults engineDefaults) {
this.engineDefaults = engineDefaults;
}
@Override
public DescribeEngineDefaultParametersResponse build() {
return new DescribeEngineDefaultParametersResponse(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy