public StartBulkVolumeReadRequest.Builder optionalAttributes(
     final java.util.Map<String, Object> attributes) {
   this.attributes =
       (attributes == null)
           ? Optional.<java.util.Map<String, Object>>empty()
           : Optional.of(attributes);
   return this;
 }
 /**
  * The Request object for the "StartBulkVolumeRead" API Service call.
  *
  * @param volumeID [required] ID of the volume to be read.
  * @param format [required] The format of the volume data. Can be either:
  * @param snapshotID (optional) ID of a previously created snapshot used for bulk volume reads.
  * @param script (optional) Executable name of a script.
  * @param scriptParameters (optional) JSON parameters to pass to the script.
  * @param attributes (optional) JSON attributes for the bulk volume job.
  * @since 7.0
  */
 @Since("7.0")
 public StartBulkVolumeReadRequest(
     Long volumeID,
     String format,
     Optional<Long> snapshotID,
     Optional<String> script,
     Optional<Object> scriptParameters,
     Optional<java.util.Map<String, Object>> attributes) {
   this.format = format;
   this.attributes =
       (attributes == null) ? Optional.<java.util.Map<String, Object>>empty() : attributes;
   this.volumeID = volumeID;
   this.script = (script == null) ? Optional.<String>empty() : script;
   this.snapshotID = (snapshotID == null) ? Optional.<Long>empty() : snapshotID;
   this.scriptParameters =
       (scriptParameters == null) ? Optional.<Object>empty() : scriptParameters;
 }
  @Override
  public String toString() {
    final StringBuilder sb = new StringBuilder();
    sb.append("{ ");

    sb.append(" volumeID : ").append(volumeID).append(",");
    sb.append(" format : ").append(format).append(",");
    if (null != snapshotID && snapshotID.isPresent())
      sb.append(" snapshotID : ").append(snapshotID.get()).append(",");
    if (null != script && script.isPresent())
      sb.append(" script : ").append(script.get()).append(",");
    if (null != scriptParameters && scriptParameters.isPresent())
      sb.append(" scriptParameters : ").append(scriptParameters.get()).append(",");
    if (null != attributes && attributes.isPresent())
      sb.append(" attributes : ").append(attributes.get());
    sb.append(" }");

    if (sb.lastIndexOf(", }") != -1) sb.deleteCharAt(sb.lastIndexOf(", }"));

    return sb.toString();
  }
 public StartBulkVolumeReadRequest.Builder optionalScriptParameters(
     final Object scriptParameters) {
   this.scriptParameters =
       (scriptParameters == null) ? Optional.<Object>empty() : Optional.of(scriptParameters);
   return this;
 }
 public StartBulkVolumeReadRequest.Builder optionalScript(final String script) {
   this.script = (script == null) ? Optional.<String>empty() : Optional.of(script);
   return this;
 }
 public StartBulkVolumeReadRequest.Builder optionalSnapshotID(final Long snapshotID) {
   this.snapshotID = (snapshotID == null) ? Optional.<Long>empty() : Optional.of(snapshotID);
   return this;
 }