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

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

Best Java code snippets using com.amazonaws.services.ec2.model.DetachVolumeRequest.getInstanceId (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.modelDetachVolumeRequestgetInstanceId

Javadoc

The ID of the instance.

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.
  • getDevice
    The device name.
  • 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

  • Parsing JSON documents to java classes using gson
  • onCreateOptionsMenu (Activity)
  • putExtra (Intent)
  • setContentView (Activity)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Best plugins for Eclipse
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