com.amazonaws.services.storagegateway.model.CreateCachediSCSIVolumeRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-storagegateway Show documentation
Show all versions of aws-java-sdk-storagegateway Show documentation
The AWS Java SDK for AWS Storage Gateway module holds the client classes that are used for communicating with AWS Storage Gateway Service
/*
* Copyright 2011-2016 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 com.amazonaws.services.storagegateway.model;
import java.io.Serializable;
import com.amazonaws.AmazonWebServiceRequest;
/**
*
*/
public class CreateCachediSCSIVolumeRequest extends
com.amazonaws.AmazonWebServiceRequest implements Serializable,
Cloneable {
private String gatewayARN;
private Long volumeSizeInBytes;
private String snapshotId;
private String targetName;
private String networkInterfaceId;
private String clientToken;
/**
* @param gatewayARN
*/
public void setGatewayARN(String gatewayARN) {
this.gatewayARN = gatewayARN;
}
/**
* @return
*/
public String getGatewayARN() {
return this.gatewayARN;
}
/**
* @param gatewayARN
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateCachediSCSIVolumeRequest withGatewayARN(String gatewayARN) {
setGatewayARN(gatewayARN);
return this;
}
/**
* @param volumeSizeInBytes
*/
public void setVolumeSizeInBytes(Long volumeSizeInBytes) {
this.volumeSizeInBytes = volumeSizeInBytes;
}
/**
* @return
*/
public Long getVolumeSizeInBytes() {
return this.volumeSizeInBytes;
}
/**
* @param volumeSizeInBytes
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateCachediSCSIVolumeRequest withVolumeSizeInBytes(
Long volumeSizeInBytes) {
setVolumeSizeInBytes(volumeSizeInBytes);
return this;
}
/**
* @param snapshotId
*/
public void setSnapshotId(String snapshotId) {
this.snapshotId = snapshotId;
}
/**
* @return
*/
public String getSnapshotId() {
return this.snapshotId;
}
/**
* @param snapshotId
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateCachediSCSIVolumeRequest withSnapshotId(String snapshotId) {
setSnapshotId(snapshotId);
return this;
}
/**
* @param targetName
*/
public void setTargetName(String targetName) {
this.targetName = targetName;
}
/**
* @return
*/
public String getTargetName() {
return this.targetName;
}
/**
* @param targetName
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateCachediSCSIVolumeRequest withTargetName(String targetName) {
setTargetName(targetName);
return this;
}
/**
* @param networkInterfaceId
*/
public void setNetworkInterfaceId(String networkInterfaceId) {
this.networkInterfaceId = networkInterfaceId;
}
/**
* @return
*/
public String getNetworkInterfaceId() {
return this.networkInterfaceId;
}
/**
* @param networkInterfaceId
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateCachediSCSIVolumeRequest withNetworkInterfaceId(
String networkInterfaceId) {
setNetworkInterfaceId(networkInterfaceId);
return this;
}
/**
* @param clientToken
*/
public void setClientToken(String clientToken) {
this.clientToken = clientToken;
}
/**
* @return
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @param clientToken
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateCachediSCSIVolumeRequest withClientToken(String clientToken) {
setClientToken(clientToken);
return this;
}
/**
* Returns a string representation of this object; useful for testing and
* debugging.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getGatewayARN() != null)
sb.append("GatewayARN: " + getGatewayARN() + ",");
if (getVolumeSizeInBytes() != null)
sb.append("VolumeSizeInBytes: " + getVolumeSizeInBytes() + ",");
if (getSnapshotId() != null)
sb.append("SnapshotId: " + getSnapshotId() + ",");
if (getTargetName() != null)
sb.append("TargetName: " + getTargetName() + ",");
if (getNetworkInterfaceId() != null)
sb.append("NetworkInterfaceId: " + getNetworkInterfaceId() + ",");
if (getClientToken() != null)
sb.append("ClientToken: " + getClientToken());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CreateCachediSCSIVolumeRequest == false)
return false;
CreateCachediSCSIVolumeRequest other = (CreateCachediSCSIVolumeRequest) obj;
if (other.getGatewayARN() == null ^ this.getGatewayARN() == null)
return false;
if (other.getGatewayARN() != null
&& other.getGatewayARN().equals(this.getGatewayARN()) == false)
return false;
if (other.getVolumeSizeInBytes() == null
^ this.getVolumeSizeInBytes() == null)
return false;
if (other.getVolumeSizeInBytes() != null
&& other.getVolumeSizeInBytes().equals(
this.getVolumeSizeInBytes()) == false)
return false;
if (other.getSnapshotId() == null ^ this.getSnapshotId() == null)
return false;
if (other.getSnapshotId() != null
&& other.getSnapshotId().equals(this.getSnapshotId()) == false)
return false;
if (other.getTargetName() == null ^ this.getTargetName() == null)
return false;
if (other.getTargetName() != null
&& other.getTargetName().equals(this.getTargetName()) == false)
return false;
if (other.getNetworkInterfaceId() == null
^ this.getNetworkInterfaceId() == null)
return false;
if (other.getNetworkInterfaceId() != null
&& other.getNetworkInterfaceId().equals(
this.getNetworkInterfaceId()) == false)
return false;
if (other.getClientToken() == null ^ this.getClientToken() == null)
return false;
if (other.getClientToken() != null
&& other.getClientToken().equals(this.getClientToken()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode
+ ((getGatewayARN() == null) ? 0 : getGatewayARN().hashCode());
hashCode = prime
* hashCode
+ ((getVolumeSizeInBytes() == null) ? 0
: getVolumeSizeInBytes().hashCode());
hashCode = prime * hashCode
+ ((getSnapshotId() == null) ? 0 : getSnapshotId().hashCode());
hashCode = prime * hashCode
+ ((getTargetName() == null) ? 0 : getTargetName().hashCode());
hashCode = prime
* hashCode
+ ((getNetworkInterfaceId() == null) ? 0
: getNetworkInterfaceId().hashCode());
hashCode = prime
* hashCode
+ ((getClientToken() == null) ? 0 : getClientToken().hashCode());
return hashCode;
}
@Override
public CreateCachediSCSIVolumeRequest clone() {
return (CreateCachediSCSIVolumeRequest) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy