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