@Override
  public boolean equals(Object obj) {
    if (this == obj) return true;
    if (obj == null) return false;

    if (obj instanceof DeleteVirtualMFADeviceRequest == false) return false;
    DeleteVirtualMFADeviceRequest other = (DeleteVirtualMFADeviceRequest) obj;

    if (other.getSerialNumber() == null ^ this.getSerialNumber() == null) return false;
    if (other.getSerialNumber() != null
        && other.getSerialNumber().equals(this.getSerialNumber()) == false) return false;
    return true;
  }
  public Request<DeleteVirtualMFADeviceRequest> marshall(
      DeleteVirtualMFADeviceRequest deleteVirtualMFADeviceRequest) {

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

    Request<DeleteVirtualMFADeviceRequest> request =
        new DefaultRequest<DeleteVirtualMFADeviceRequest>(
            deleteVirtualMFADeviceRequest, "AmazonIdentityManagement");
    request.addParameter("Action", "DeleteVirtualMFADevice");
    request.addParameter("Version", "2010-05-08");
    request.setHttpMethod(HttpMethodName.POST);

    if (deleteVirtualMFADeviceRequest.getSerialNumber() != null) {
      request.addParameter(
          "SerialNumber", StringUtils.fromString(deleteVirtualMFADeviceRequest.getSerialNumber()));
    }

    return request;
  }