software.amazon.awssdk.services.elasticache.model.RebootCacheClusterResponse 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 RebootCacheClusterResponse extends AmazonWebServiceResult implements
ToCopyableBuilder {
private final CacheCluster cacheCluster;
private RebootCacheClusterResponse(BuilderImpl builder) {
this.cacheCluster = builder.cacheCluster;
}
/**
* Returns the value of the CacheCluster property for this object.
*
* @return The value of the CacheCluster property for this object.
*/
public CacheCluster cacheCluster() {
return cacheCluster;
}
@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 + ((cacheCluster() == null) ? 0 : cacheCluster().hashCode());
return hashCode;
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (!(obj instanceof RebootCacheClusterResponse)) {
return false;
}
RebootCacheClusterResponse other = (RebootCacheClusterResponse) obj;
if (other.cacheCluster() == null ^ this.cacheCluster() == null) {
return false;
}
if (other.cacheCluster() != null && !other.cacheCluster().equals(this.cacheCluster())) {
return false;
}
return true;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (cacheCluster() != null) {
sb.append("CacheCluster: ").append(cacheCluster()).append(",");
}
sb.append("}");
return sb.toString();
}
public interface Builder extends CopyableBuilder {
/**
* Sets the value of the CacheCluster property for this object.
*
* @param cacheCluster
* The new value for the CacheCluster property for this object.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder cacheCluster(CacheCluster cacheCluster);
}
private static final class BuilderImpl implements Builder {
private CacheCluster cacheCluster;
private BuilderImpl() {
}
private BuilderImpl(RebootCacheClusterResponse model) {
setCacheCluster(model.cacheCluster);
}
public final CacheCluster getCacheCluster() {
return cacheCluster;
}
@Override
public final Builder cacheCluster(CacheCluster cacheCluster) {
this.cacheCluster = cacheCluster;
return this;
}
public final void setCacheCluster(CacheCluster cacheCluster) {
this.cacheCluster = cacheCluster;
}
@Override
public RebootCacheClusterResponse build() {
return new RebootCacheClusterResponse(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy