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

software.amazon.awssdk.services.elasticache.model.DeleteCacheClusterRequest 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 DeleteCacheCluster operation. *

*/ @Generated("software.amazon.awssdk:codegen") public class DeleteCacheClusterRequest extends AmazonWebServiceRequest implements ToCopyableBuilder { private final String cacheClusterId; private final String finalSnapshotIdentifier; private DeleteCacheClusterRequest(BuilderImpl builder) { this.cacheClusterId = builder.cacheClusterId; this.finalSnapshotIdentifier = builder.finalSnapshotIdentifier; } /** *

* The cache cluster identifier for the cluster to be deleted. This parameter is not case sensitive. *

* * @return The cache cluster identifier for the cluster to be deleted. This parameter is not case sensitive. */ public String cacheClusterId() { return cacheClusterId; } /** *

* The user-supplied name of a final cache cluster snapshot. This is the unique name that identifies the snapshot. * ElastiCache creates the snapshot, and then deletes the cache cluster immediately afterward. *

* * @return The user-supplied name of a final cache cluster snapshot. This is the unique name that identifies the * snapshot. ElastiCache creates the snapshot, and then deletes the cache cluster immediately afterward. */ public String finalSnapshotIdentifier() { return finalSnapshotIdentifier; } @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 + ((cacheClusterId() == null) ? 0 : cacheClusterId().hashCode()); hashCode = 31 * hashCode + ((finalSnapshotIdentifier() == null) ? 0 : finalSnapshotIdentifier().hashCode()); return hashCode; } @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof DeleteCacheClusterRequest)) { return false; } DeleteCacheClusterRequest other = (DeleteCacheClusterRequest) obj; if (other.cacheClusterId() == null ^ this.cacheClusterId() == null) { return false; } if (other.cacheClusterId() != null && !other.cacheClusterId().equals(this.cacheClusterId())) { return false; } if (other.finalSnapshotIdentifier() == null ^ this.finalSnapshotIdentifier() == null) { return false; } if (other.finalSnapshotIdentifier() != null && !other.finalSnapshotIdentifier().equals(this.finalSnapshotIdentifier())) { return false; } return true; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (cacheClusterId() != null) { sb.append("CacheClusterId: ").append(cacheClusterId()).append(","); } if (finalSnapshotIdentifier() != null) { sb.append("FinalSnapshotIdentifier: ").append(finalSnapshotIdentifier()).append(","); } sb.append("}"); return sb.toString(); } public interface Builder extends CopyableBuilder { /** *

* The cache cluster identifier for the cluster to be deleted. This parameter is not case sensitive. *

* * @param cacheClusterId * The cache cluster identifier for the cluster to be deleted. This parameter is not case sensitive. * @return Returns a reference to this object so that method calls can be chained together. */ Builder cacheClusterId(String cacheClusterId); /** *

* The user-supplied name of a final cache cluster snapshot. This is the unique name that identifies the * snapshot. ElastiCache creates the snapshot, and then deletes the cache cluster immediately afterward. *

* * @param finalSnapshotIdentifier * The user-supplied name of a final cache cluster snapshot. This is the unique name that identifies the * snapshot. ElastiCache creates the snapshot, and then deletes the cache cluster immediately afterward. * @return Returns a reference to this object so that method calls can be chained together. */ Builder finalSnapshotIdentifier(String finalSnapshotIdentifier); } private static final class BuilderImpl implements Builder { private String cacheClusterId; private String finalSnapshotIdentifier; private BuilderImpl() { } private BuilderImpl(DeleteCacheClusterRequest model) { setCacheClusterId(model.cacheClusterId); setFinalSnapshotIdentifier(model.finalSnapshotIdentifier); } public final String getCacheClusterId() { return cacheClusterId; } @Override public final Builder cacheClusterId(String cacheClusterId) { this.cacheClusterId = cacheClusterId; return this; } public final void setCacheClusterId(String cacheClusterId) { this.cacheClusterId = cacheClusterId; } public final String getFinalSnapshotIdentifier() { return finalSnapshotIdentifier; } @Override public final Builder finalSnapshotIdentifier(String finalSnapshotIdentifier) { this.finalSnapshotIdentifier = finalSnapshotIdentifier; return this; } public final void setFinalSnapshotIdentifier(String finalSnapshotIdentifier) { this.finalSnapshotIdentifier = finalSnapshotIdentifier; } @Override public DeleteCacheClusterRequest build() { return new DeleteCacheClusterRequest(this); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy