Tabnine Logo
DetachVolumeRequest.getDevice
Code IndexAdd Tabnine to your IDE (free)

How to use
getDevice
method
in
com.amazonaws.services.ec2.model.DetachVolumeRequest

Best Java code snippets using com.amazonaws.services.ec2.model.DetachVolumeRequest.getDevice (Showing top 12 results out of 315)

origin: aws/aws-sdk-java

@Override
public int hashCode() {
  final int prime = 31;
  int hashCode = 1;
  hashCode = prime * hashCode + ((getDevice() == null) ? 0 : getDevice().hashCode());
  hashCode = prime * hashCode + ((getForce() == null) ? 0 : getForce().hashCode());
  hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode());
  hashCode = prime * hashCode + ((getVolumeId() == null) ? 0 : getVolumeId().hashCode());
  return hashCode;
}
origin: aws/aws-sdk-java

/**
 * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
 * redacted from this string using a placeholder value.
 *
 * @return A string representation of this object.
 *
 * @see java.lang.Object#toString()
 */
@Override
public String toString() {
  StringBuilder sb = new StringBuilder();
  sb.append("{");
  if (getDevice() != null)
    sb.append("Device: ").append(getDevice()).append(",");
  if (getForce() != null)
    sb.append("Force: ").append(getForce()).append(",");
  if (getInstanceId() != null)
    sb.append("InstanceId: ").append(getInstanceId()).append(",");
  if (getVolumeId() != null)
    sb.append("VolumeId: ").append(getVolumeId());
  sb.append("}");
  return sb.toString();
}
origin: aws/aws-sdk-java

@Override
public boolean equals(Object obj) {
  if (this == obj)
    return true;
  if (obj == null)
    return false;
  if (obj instanceof DetachVolumeRequest == false)
    return false;
  DetachVolumeRequest other = (DetachVolumeRequest) obj;
  if (other.getDevice() == null ^ this.getDevice() == null)
    return false;
  if (other.getDevice() != null && other.getDevice().equals(this.getDevice()) == false)
    return false;
  if (other.getForce() == null ^ this.getForce() == null)
    return false;
  if (other.getForce() != null && other.getForce().equals(this.getForce()) == false)
    return false;
  if (other.getInstanceId() == null ^ this.getInstanceId() == null)
    return false;
  if (other.getInstanceId() != null && other.getInstanceId().equals(this.getInstanceId()) == false)
    return false;
  if (other.getVolumeId() == null ^ this.getVolumeId() == null)
    return false;
  if (other.getVolumeId() != null && other.getVolumeId().equals(this.getVolumeId()) == false)
    return false;
  return true;
}
origin: aws/aws-sdk-java

public Request<DetachVolumeRequest> marshall(DetachVolumeRequest detachVolumeRequest) {
  if (detachVolumeRequest == null) {
    throw new SdkClientException("Invalid argument passed to marshall(...)");
  }
  Request<DetachVolumeRequest> request = new DefaultRequest<DetachVolumeRequest>(detachVolumeRequest, "AmazonEC2");
  request.addParameter("Action", "DetachVolume");
  request.addParameter("Version", "2016-11-15");
  request.setHttpMethod(HttpMethodName.POST);
  if (detachVolumeRequest.getDevice() != null) {
    request.addParameter("Device", StringUtils.fromString(detachVolumeRequest.getDevice()));
  }
  if (detachVolumeRequest.getForce() != null) {
    request.addParameter("Force", StringUtils.fromBoolean(detachVolumeRequest.getForce()));
  }
  if (detachVolumeRequest.getInstanceId() != null) {
    request.addParameter("InstanceId", StringUtils.fromString(detachVolumeRequest.getInstanceId()));
  }
  if (detachVolumeRequest.getVolumeId() != null) {
    request.addParameter("VolumeId", StringUtils.fromString(detachVolumeRequest.getVolumeId()));
  }
  return request;
}
origin: aws-amplify/aws-sdk-android

@Override
public int hashCode() {
  final int prime = 31;
  int hashCode = 1;
  
  hashCode = prime * hashCode + ((getVolumeId() == null) ? 0 : getVolumeId().hashCode()); 
  hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); 
  hashCode = prime * hashCode + ((getDevice() == null) ? 0 : getDevice().hashCode()); 
  hashCode = prime * hashCode + ((isForce() == null) ? 0 : isForce().hashCode()); 
  return hashCode;
}

origin: aws-amplify/aws-sdk-android

/**
 * 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 (getVolumeId() != null) sb.append("VolumeId: " + getVolumeId() + ",");
  if (getInstanceId() != null) sb.append("InstanceId: " + getInstanceId() + ",");
  if (getDevice() != null) sb.append("Device: " + getDevice() + ",");
  if (isForce() != null) sb.append("Force: " + isForce() );
  sb.append("}");
  return sb.toString();
}

origin: aws-amplify/aws-sdk-android

@Override
public boolean equals(Object obj) {
  if (this == obj) return true;
  if (obj == null) return false;
  if (obj instanceof DetachVolumeRequest == false) return false;
  DetachVolumeRequest other = (DetachVolumeRequest)obj;
  
  if (other.getVolumeId() == null ^ this.getVolumeId() == null) return false;
  if (other.getVolumeId() != null && other.getVolumeId().equals(this.getVolumeId()) == false) return false; 
  if (other.getInstanceId() == null ^ this.getInstanceId() == null) return false;
  if (other.getInstanceId() != null && other.getInstanceId().equals(this.getInstanceId()) == false) return false; 
  if (other.getDevice() == null ^ this.getDevice() == null) return false;
  if (other.getDevice() != null && other.getDevice().equals(this.getDevice()) == false) return false; 
  if (other.isForce() == null ^ this.isForce() == null) return false;
  if (other.isForce() != null && other.isForce().equals(this.isForce()) == false) return false; 
  return true;
}

origin: aws-amplify/aws-sdk-android

  public Request<DetachVolumeRequest> marshall(DetachVolumeRequest detachVolumeRequest) {

    if (detachVolumeRequest == null) {
      throw new AmazonClientException("Invalid argument passed to marshall(...)");
    }

    Request<DetachVolumeRequest> request = new DefaultRequest<DetachVolumeRequest>(detachVolumeRequest, "AmazonEC2");
    request.addParameter("Action", "DetachVolume");
    request.addParameter("Version", "2015-10-01");

    if (detachVolumeRequest.getVolumeId() != null) {
      request.addParameter("VolumeId", StringUtils.fromString(detachVolumeRequest.getVolumeId()));
    }
    if (detachVolumeRequest.getInstanceId() != null) {
      request.addParameter("InstanceId", StringUtils.fromString(detachVolumeRequest.getInstanceId()));
    }
    if (detachVolumeRequest.getDevice() != null) {
      request.addParameter("Device", StringUtils.fromString(detachVolumeRequest.getDevice()));
    }
    if (detachVolumeRequest.isForce() != null) {
      request.addParameter("Force", StringUtils.fromBoolean(detachVolumeRequest.isForce()));
    }

    return request;
  }
}
origin: com.amazonaws/aws-java-sdk-ec2

@Override
public int hashCode() {
  final int prime = 31;
  int hashCode = 1;
  hashCode = prime * hashCode + ((getDevice() == null) ? 0 : getDevice().hashCode());
  hashCode = prime * hashCode + ((getForce() == null) ? 0 : getForce().hashCode());
  hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode());
  hashCode = prime * hashCode + ((getVolumeId() == null) ? 0 : getVolumeId().hashCode());
  return hashCode;
}
origin: com.amazonaws/aws-java-sdk-ec2

/**
 * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
 * redacted from this string using a placeholder value.
 *
 * @return A string representation of this object.
 *
 * @see java.lang.Object#toString()
 */
@Override
public String toString() {
  StringBuilder sb = new StringBuilder();
  sb.append("{");
  if (getDevice() != null)
    sb.append("Device: ").append(getDevice()).append(",");
  if (getForce() != null)
    sb.append("Force: ").append(getForce()).append(",");
  if (getInstanceId() != null)
    sb.append("InstanceId: ").append(getInstanceId()).append(",");
  if (getVolumeId() != null)
    sb.append("VolumeId: ").append(getVolumeId());
  sb.append("}");
  return sb.toString();
}
origin: com.amazonaws/aws-java-sdk-ec2

@Override
public boolean equals(Object obj) {
  if (this == obj)
    return true;
  if (obj == null)
    return false;
  if (obj instanceof DetachVolumeRequest == false)
    return false;
  DetachVolumeRequest other = (DetachVolumeRequest) obj;
  if (other.getDevice() == null ^ this.getDevice() == null)
    return false;
  if (other.getDevice() != null && other.getDevice().equals(this.getDevice()) == false)
    return false;
  if (other.getForce() == null ^ this.getForce() == null)
    return false;
  if (other.getForce() != null && other.getForce().equals(this.getForce()) == false)
    return false;
  if (other.getInstanceId() == null ^ this.getInstanceId() == null)
    return false;
  if (other.getInstanceId() != null && other.getInstanceId().equals(this.getInstanceId()) == false)
    return false;
  if (other.getVolumeId() == null ^ this.getVolumeId() == null)
    return false;
  if (other.getVolumeId() != null && other.getVolumeId().equals(this.getVolumeId()) == false)
    return false;
  return true;
}
origin: com.amazonaws/aws-java-sdk-ec2

public Request<DetachVolumeRequest> marshall(DetachVolumeRequest detachVolumeRequest) {
  if (detachVolumeRequest == null) {
    throw new SdkClientException("Invalid argument passed to marshall(...)");
  }
  Request<DetachVolumeRequest> request = new DefaultRequest<DetachVolumeRequest>(detachVolumeRequest, "AmazonEC2");
  request.addParameter("Action", "DetachVolume");
  request.addParameter("Version", "2016-11-15");
  request.setHttpMethod(HttpMethodName.POST);
  if (detachVolumeRequest.getDevice() != null) {
    request.addParameter("Device", StringUtils.fromString(detachVolumeRequest.getDevice()));
  }
  if (detachVolumeRequest.getForce() != null) {
    request.addParameter("Force", StringUtils.fromBoolean(detachVolumeRequest.getForce()));
  }
  if (detachVolumeRequest.getInstanceId() != null) {
    request.addParameter("InstanceId", StringUtils.fromString(detachVolumeRequest.getInstanceId()));
  }
  if (detachVolumeRequest.getVolumeId() != null) {
    request.addParameter("VolumeId", StringUtils.fromString(detachVolumeRequest.getVolumeId()));
  }
  return request;
}
com.amazonaws.services.ec2.modelDetachVolumeRequestgetDevice

Javadoc

The device name.

Popular methods of DetachVolumeRequest

  • <init>
    Constructs a new DetachVolumeRequest object. Callers should use the setter or fluent setter (with...
  • setVolumeId
    The ID of the volume.
  • getInstanceId
    The ID of the instance.
  • getVolumeId
    The ID of the volume.
  • setDevice
    The device name.
  • setInstanceId
    The ID of the instance.
  • getForce
    Forces detachment if the previous detachment attempt did not occur cleanly (for example, logging in
  • isForce
    Forces detachment if the previous detachment attempt did not occur cleanly (for example, logging in
  • setForce
    Forces detachment if the previous detachment attempt did not occur cleanly (for example, logging in
  • withDevice
    The device name.
  • withForce
    Forces detachment if the previous detachment attempt did not occur cleanly (for example, logging in
  • withInstanceId
    The ID of the instance.
  • withForce,
  • withInstanceId,
  • withVolumeId

Popular in Java

  • Creating JSON documents from java classes using gson
  • compareTo (BigDecimal)
  • getSharedPreferences (Context)
  • addToBackStack (FragmentTransaction)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • JLabel (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now