public Request<DescribeRulesPackagesRequest> marshall(
      DescribeRulesPackagesRequest describeRulesPackagesRequest) {

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

    Request<DescribeRulesPackagesRequest> request =
        new DefaultRequest<DescribeRulesPackagesRequest>(
            describeRulesPackagesRequest, "AmazonInspector");
    request.addHeader("X-Amz-Target", "InspectorService.DescribeRulesPackages");

    request.setHttpMethod(HttpMethodName.POST);

    request.setResourcePath("");

    try {
      final StructuredJsonGenerator jsonGenerator =
          SdkJsonProtocolFactory.createWriter(false, "1.1");

      jsonGenerator.writeStartObject();

      java.util.List<String> rulesPackageArnsList =
          describeRulesPackagesRequest.getRulesPackageArns();
      if (rulesPackageArnsList != null) {
        jsonGenerator.writeFieldName("rulesPackageArns");
        jsonGenerator.writeStartArray();
        for (String rulesPackageArnsListValue : rulesPackageArnsList) {
          if (rulesPackageArnsListValue != null) {
            jsonGenerator.writeValue(rulesPackageArnsListValue);
          }
        }
        jsonGenerator.writeEndArray();
      }
      if (describeRulesPackagesRequest.getLocale() != null) {
        jsonGenerator.writeFieldName("locale").writeValue(describeRulesPackagesRequest.getLocale());
      }

      jsonGenerator.writeEndObject();

      byte[] content = jsonGenerator.getBytes();
      request.setContent(new ByteArrayInputStream(content));
      request.addHeader("Content-Length", Integer.toString(content.length));
      request.addHeader("Content-Type", jsonGenerator.getContentType());
    } catch (Throwable t) {
      throw new AmazonClientException("Unable to marshall request to JSON: " + t.getMessage(), t);
    }

    return request;
  }
  /** Marshall the given parameter object, and output to a SdkJsonGenerator */
  public void marshall(Snapshot snapshot, StructuredJsonGenerator jsonGenerator) {

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

    try {
      jsonGenerator.writeStartObject();

      if (snapshot.getDirectoryId() != null) {
        jsonGenerator.writeFieldName("DirectoryId").writeValue(snapshot.getDirectoryId());
      }
      if (snapshot.getSnapshotId() != null) {
        jsonGenerator.writeFieldName("SnapshotId").writeValue(snapshot.getSnapshotId());
      }
      if (snapshot.getType() != null) {
        jsonGenerator.writeFieldName("Type").writeValue(snapshot.getType());
      }
      if (snapshot.getName() != null) {
        jsonGenerator.writeFieldName("Name").writeValue(snapshot.getName());
      }
      if (snapshot.getStatus() != null) {
        jsonGenerator.writeFieldName("Status").writeValue(snapshot.getStatus());
      }
      if (snapshot.getStartTime() != null) {
        jsonGenerator.writeFieldName("StartTime").writeValue(snapshot.getStartTime());
      }

      jsonGenerator.writeEndObject();
    } catch (Throwable t) {
      throw new AmazonClientException("Unable to marshall request to JSON: " + t.getMessage(), t);
    }
  }
  /** Marshall the given parameter object, and output to a SdkJsonGenerator */
  public void marshall(WafAction wafAction, StructuredJsonGenerator jsonGenerator) {

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

    try {
      jsonGenerator.writeStartObject();

      if (wafAction.getType() != null) {
        jsonGenerator.writeFieldName("Type").writeValue(wafAction.getType());
      }

      jsonGenerator.writeEndObject();
    } catch (Throwable t) {
      throw new AmazonClientException("Unable to marshall request to JSON: " + t.getMessage(), t);
    }
  }
  /** Marshall the given parameter object, and output to a SdkJsonGenerator */
  public void marshall(ResourceGroupTag resourceGroupTag, StructuredJsonGenerator jsonGenerator) {

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

    try {
      jsonGenerator.writeStartObject();

      if (resourceGroupTag.getKey() != null) {
        jsonGenerator.writeFieldName("key").writeValue(resourceGroupTag.getKey());
      }
      if (resourceGroupTag.getValue() != null) {
        jsonGenerator.writeFieldName("value").writeValue(resourceGroupTag.getValue());
      }

      jsonGenerator.writeEndObject();
    } catch (Throwable t) {
      throw new AmazonClientException("Unable to marshall request to JSON: " + t.getMessage(), t);
    }
  }
  /** Marshall the given parameter object, and output to a SdkJsonGenerator */
  public void marshall(Attribute attribute, StructuredJsonGenerator jsonGenerator) {

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

    try {
      jsonGenerator.writeStartObject();

      if (attribute.getName() != null) {
        jsonGenerator.writeFieldName("name").writeValue(attribute.getName());
      }
      if (attribute.getValue() != null) {
        jsonGenerator.writeFieldName("value").writeValue(attribute.getValue());
      }

      jsonGenerator.writeEndObject();
    } catch (Throwable t) {
      throw new AmazonClientException("Unable to marshall request to JSON: " + t.getMessage(), t);
    }
  }
  /** Marshall the given parameter object, and output to a SdkJsonGenerator */
  public void marshall(Encryption encryption, StructuredJsonGenerator jsonGenerator) {

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

    try {
      jsonGenerator.writeStartObject();

      if (encryption.getMode() != null) {
        jsonGenerator.writeFieldName("Mode").writeValue(encryption.getMode());
      }
      if (encryption.getKey() != null) {
        jsonGenerator.writeFieldName("Key").writeValue(encryption.getKey());
      }
      if (encryption.getKeyMd5() != null) {
        jsonGenerator.writeFieldName("KeyMd5").writeValue(encryption.getKeyMd5());
      }
      if (encryption.getInitializationVector() != null) {
        jsonGenerator
            .writeFieldName("InitializationVector")
            .writeValue(encryption.getInitializationVector());
      }

      jsonGenerator.writeEndObject();
    } catch (Throwable t) {
      throw new AmazonClientException("Unable to marshall request to JSON: " + t.getMessage(), t);
    }
  }
  /** Marshall the given parameter object, and output to a SdkJsonGenerator */
  public void marshall(PipelineSummary pipelineSummary, StructuredJsonGenerator jsonGenerator) {

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

    try {
      jsonGenerator.writeStartObject();

      if (pipelineSummary.getName() != null) {
        jsonGenerator.writeFieldName("name").writeValue(pipelineSummary.getName());
      }
      if (pipelineSummary.getVersion() != null) {
        jsonGenerator.writeFieldName("version").writeValue(pipelineSummary.getVersion());
      }
      if (pipelineSummary.getCreated() != null) {
        jsonGenerator.writeFieldName("created").writeValue(pipelineSummary.getCreated());
      }
      if (pipelineSummary.getUpdated() != null) {
        jsonGenerator.writeFieldName("updated").writeValue(pipelineSummary.getUpdated());
      }

      jsonGenerator.writeEndObject();
    } catch (Throwable t) {
      throw new AmazonClientException("Unable to marshall request to JSON: " + t.getMessage(), t);
    }
  }
  /** Marshall the given parameter object, and output to a SdkJsonGenerator */
  public void marshall(ParameterObject parameterObject, StructuredJsonGenerator jsonGenerator) {

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

    try {
      jsonGenerator.writeStartObject();

      if (parameterObject.getId() != null) {
        jsonGenerator.writeFieldName("id").writeValue(parameterObject.getId());
      }

      com.amazonaws.internal.SdkInternalList<ParameterAttribute> attributesList =
          (com.amazonaws.internal.SdkInternalList<ParameterAttribute>)
              parameterObject.getAttributes();
      if (!attributesList.isEmpty() || !attributesList.isAutoConstruct()) {
        jsonGenerator.writeFieldName("attributes");
        jsonGenerator.writeStartArray();
        for (ParameterAttribute attributesListValue : attributesList) {
          if (attributesListValue != null) {

            ParameterAttributeJsonMarshaller.getInstance()
                .marshall(attributesListValue, jsonGenerator);
          }
        }
        jsonGenerator.writeEndArray();
      }

      jsonGenerator.writeEndObject();
    } catch (Throwable t) {
      throw new AmazonClientException("Unable to marshall request to JSON: " + t.getMessage(), t);
    }
  }
  /** Marshall the given parameter object, and output to a SdkJsonGenerator */
  public void marshall(FleetUtilization fleetUtilization, StructuredJsonGenerator jsonGenerator) {

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

    try {
      jsonGenerator.writeStartObject();

      if (fleetUtilization.getFleetId() != null) {
        jsonGenerator.writeFieldName("FleetId").writeValue(fleetUtilization.getFleetId());
      }
      if (fleetUtilization.getActiveGameSessionCount() != null) {
        jsonGenerator
            .writeFieldName("ActiveGameSessionCount")
            .writeValue(fleetUtilization.getActiveGameSessionCount());
      }
      if (fleetUtilization.getCurrentPlayerSessionCount() != null) {
        jsonGenerator
            .writeFieldName("CurrentPlayerSessionCount")
            .writeValue(fleetUtilization.getCurrentPlayerSessionCount());
      }
      if (fleetUtilization.getMaximumPlayerSessionCount() != null) {
        jsonGenerator
            .writeFieldName("MaximumPlayerSessionCount")
            .writeValue(fleetUtilization.getMaximumPlayerSessionCount());
      }

      jsonGenerator.writeEndObject();
    } catch (Throwable t) {
      throw new AmazonClientException("Unable to marshall request to JSON: " + t.getMessage(), t);
    }
  }
  public Request<DeleteInstanceRequest> marshall(DeleteInstanceRequest deleteInstanceRequest) {

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

    Request<DeleteInstanceRequest> request =
        new DefaultRequest<DeleteInstanceRequest>(deleteInstanceRequest, "AWSOpsWorks");
    request.addHeader("X-Amz-Target", "OpsWorks_20130218.DeleteInstance");

    request.setHttpMethod(HttpMethodName.POST);

    request.setResourcePath("");

    try {
      final StructuredJsonGenerator jsonGenerator =
          SdkJsonProtocolFactory.createWriter(false, "1.1");

      jsonGenerator.writeStartObject();

      if (deleteInstanceRequest.getInstanceId() != null) {
        jsonGenerator
            .writeFieldName("InstanceId")
            .writeValue(deleteInstanceRequest.getInstanceId());
      }
      if (deleteInstanceRequest.getDeleteElasticIp() != null) {
        jsonGenerator
            .writeFieldName("DeleteElasticIp")
            .writeValue(deleteInstanceRequest.getDeleteElasticIp());
      }
      if (deleteInstanceRequest.getDeleteVolumes() != null) {
        jsonGenerator
            .writeFieldName("DeleteVolumes")
            .writeValue(deleteInstanceRequest.getDeleteVolumes());
      }

      jsonGenerator.writeEndObject();

      byte[] content = jsonGenerator.getBytes();
      request.setContent(new ByteArrayInputStream(content));
      request.addHeader("Content-Length", Integer.toString(content.length));
      request.addHeader("Content-Type", jsonGenerator.getContentType());
    } catch (Throwable t) {
      throw new AmazonClientException("Unable to marshall request to JSON: " + t.getMessage(), t);
    }

    return request;
  }
  /** Marshall the given parameter object, and output to a SdkJsonGenerator */
  public void marshall(
      ByteMatchSetUpdate byteMatchSetUpdate, StructuredJsonGenerator jsonGenerator) {

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

    try {
      jsonGenerator.writeStartObject();

      if (byteMatchSetUpdate.getAction() != null) {
        jsonGenerator.writeFieldName("Action").writeValue(byteMatchSetUpdate.getAction());
      }
      if (byteMatchSetUpdate.getByteMatchTuple() != null) {
        jsonGenerator.writeFieldName("ByteMatchTuple");
        ByteMatchTupleJsonMarshaller.getInstance()
            .marshall(byteMatchSetUpdate.getByteMatchTuple(), jsonGenerator);
      }

      jsonGenerator.writeEndObject();
    } catch (Throwable t) {
      throw new AmazonClientException("Unable to marshall request to JSON: " + t.getMessage(), t);
    }
  }
  public Request<CreateSnapshotRequest> marshall(CreateSnapshotRequest createSnapshotRequest) {

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

    Request<CreateSnapshotRequest> request =
        new DefaultRequest<CreateSnapshotRequest>(createSnapshotRequest, "AWSStorageGateway");
    request.addHeader("X-Amz-Target", "StorageGateway_20130630.CreateSnapshot");

    request.setHttpMethod(HttpMethodName.POST);

    request.setResourcePath("");

    try {
      final StructuredJsonGenerator jsonGenerator =
          SdkJsonProtocolFactory.createWriter(false, "1.1");

      jsonGenerator.writeStartObject();

      if (createSnapshotRequest.getVolumeARN() != null) {
        jsonGenerator.writeFieldName("VolumeARN").writeValue(createSnapshotRequest.getVolumeARN());
      }
      if (createSnapshotRequest.getSnapshotDescription() != null) {
        jsonGenerator
            .writeFieldName("SnapshotDescription")
            .writeValue(createSnapshotRequest.getSnapshotDescription());
      }

      jsonGenerator.writeEndObject();

      byte[] content = jsonGenerator.getBytes();
      request.setContent(new ByteArrayInputStream(content));
      request.addHeader("Content-Length", Integer.toString(content.length));
      request.addHeader("Content-Type", jsonGenerator.getContentType());
    } catch (Throwable t) {
      throw new AmazonClientException("Unable to marshall request to JSON: " + t.getMessage(), t);
    }

    return request;
  }
  public Request<ListDomainsRequest> marshall(ListDomainsRequest listDomainsRequest) {

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

    Request<ListDomainsRequest> request =
        new DefaultRequest<ListDomainsRequest>(listDomainsRequest, "AmazonRoute53Domains");
    request.addHeader("X-Amz-Target", "Route53Domains_v20140515.ListDomains");

    request.setHttpMethod(HttpMethodName.POST);

    request.setResourcePath("");

    try {
      final StructuredJsonGenerator jsonGenerator =
          SdkJsonProtocolFactory.createWriter(false, "1.1");

      jsonGenerator.writeStartObject();

      if (listDomainsRequest.getMarker() != null) {
        jsonGenerator.writeFieldName("Marker").writeValue(listDomainsRequest.getMarker());
      }
      if (listDomainsRequest.getMaxItems() != null) {
        jsonGenerator.writeFieldName("MaxItems").writeValue(listDomainsRequest.getMaxItems());
      }

      jsonGenerator.writeEndObject();

      byte[] content = jsonGenerator.getBytes();
      request.setContent(new ByteArrayInputStream(content));
      request.addHeader("Content-Length", Integer.toString(content.length));
      request.addHeader("Content-Type", jsonGenerator.getContentType());
    } catch (Throwable t) {
      throw new AmazonClientException("Unable to marshall request to JSON: " + t.getMessage(), t);
    }

    return request;
  }
  /** Marshall the given parameter object, and output to a SdkJsonGenerator */
  public void marshall(
      CertificateDescription certificateDescription, StructuredJsonGenerator jsonGenerator) {

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

    try {
      jsonGenerator.writeStartObject();

      if (certificateDescription.getCertificateArn() != null) {
        jsonGenerator
            .writeFieldName("certificateArn")
            .writeValue(certificateDescription.getCertificateArn());
      }
      if (certificateDescription.getCertificateId() != null) {
        jsonGenerator
            .writeFieldName("certificateId")
            .writeValue(certificateDescription.getCertificateId());
      }
      if (certificateDescription.getCaCertificateId() != null) {
        jsonGenerator
            .writeFieldName("caCertificateId")
            .writeValue(certificateDescription.getCaCertificateId());
      }
      if (certificateDescription.getStatus() != null) {
        jsonGenerator.writeFieldName("status").writeValue(certificateDescription.getStatus());
      }
      if (certificateDescription.getCertificatePem() != null) {
        jsonGenerator
            .writeFieldName("certificatePem")
            .writeValue(certificateDescription.getCertificatePem());
      }
      if (certificateDescription.getOwnedBy() != null) {
        jsonGenerator.writeFieldName("ownedBy").writeValue(certificateDescription.getOwnedBy());
      }
      if (certificateDescription.getPreviousOwnedBy() != null) {
        jsonGenerator
            .writeFieldName("previousOwnedBy")
            .writeValue(certificateDescription.getPreviousOwnedBy());
      }
      if (certificateDescription.getCreationDate() != null) {
        jsonGenerator
            .writeFieldName("creationDate")
            .writeValue(certificateDescription.getCreationDate());
      }
      if (certificateDescription.getLastModifiedDate() != null) {
        jsonGenerator
            .writeFieldName("lastModifiedDate")
            .writeValue(certificateDescription.getLastModifiedDate());
      }
      if (certificateDescription.getTransferData() != null) {
        jsonGenerator.writeFieldName("transferData");
        TransferDataJsonMarshaller.getInstance()
            .marshall(certificateDescription.getTransferData(), jsonGenerator);
      }

      jsonGenerator.writeEndObject();
    } catch (Throwable t) {
      throw new AmazonClientException("Unable to marshall request to JSON: " + t.getMessage(), t);
    }
  }
  public Request<DescribeMLModelsRequest> marshall(
      DescribeMLModelsRequest describeMLModelsRequest) {

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

    Request<DescribeMLModelsRequest> request =
        new DefaultRequest<DescribeMLModelsRequest>(
            describeMLModelsRequest, "AmazonMachineLearning");
    request.addHeader("X-Amz-Target", "AmazonML_20141212.DescribeMLModels");

    request.setHttpMethod(HttpMethodName.POST);

    request.setResourcePath("");

    try {
      final StructuredJsonGenerator jsonGenerator =
          SdkJsonProtocolFactory.createWriter(false, "1.1");

      jsonGenerator.writeStartObject();

      if (describeMLModelsRequest.getFilterVariable() != null) {
        jsonGenerator
            .writeFieldName("FilterVariable")
            .writeValue(describeMLModelsRequest.getFilterVariable());
      }
      if (describeMLModelsRequest.getEQ() != null) {
        jsonGenerator.writeFieldName("EQ").writeValue(describeMLModelsRequest.getEQ());
      }
      if (describeMLModelsRequest.getGT() != null) {
        jsonGenerator.writeFieldName("GT").writeValue(describeMLModelsRequest.getGT());
      }
      if (describeMLModelsRequest.getLT() != null) {
        jsonGenerator.writeFieldName("LT").writeValue(describeMLModelsRequest.getLT());
      }
      if (describeMLModelsRequest.getGE() != null) {
        jsonGenerator.writeFieldName("GE").writeValue(describeMLModelsRequest.getGE());
      }
      if (describeMLModelsRequest.getLE() != null) {
        jsonGenerator.writeFieldName("LE").writeValue(describeMLModelsRequest.getLE());
      }
      if (describeMLModelsRequest.getNE() != null) {
        jsonGenerator.writeFieldName("NE").writeValue(describeMLModelsRequest.getNE());
      }
      if (describeMLModelsRequest.getPrefix() != null) {
        jsonGenerator.writeFieldName("Prefix").writeValue(describeMLModelsRequest.getPrefix());
      }
      if (describeMLModelsRequest.getSortOrder() != null) {
        jsonGenerator
            .writeFieldName("SortOrder")
            .writeValue(describeMLModelsRequest.getSortOrder());
      }
      if (describeMLModelsRequest.getNextToken() != null) {
        jsonGenerator
            .writeFieldName("NextToken")
            .writeValue(describeMLModelsRequest.getNextToken());
      }
      if (describeMLModelsRequest.getLimit() != null) {
        jsonGenerator.writeFieldName("Limit").writeValue(describeMLModelsRequest.getLimit());
      }

      jsonGenerator.writeEndObject();

      byte[] content = jsonGenerator.getBytes();
      request.setContent(new ByteArrayInputStream(content));
      request.addHeader("Content-Length", Integer.toString(content.length));
      request.addHeader("Content-Type", jsonGenerator.getContentType());
    } catch (Throwable t) {
      throw new AmazonClientException("Unable to marshall request to JSON: " + t.getMessage(), t);
    }

    return request;
  }
  public Request<DescribeEcsClustersRequest> marshall(
      DescribeEcsClustersRequest describeEcsClustersRequest) {

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

    Request<DescribeEcsClustersRequest> request =
        new DefaultRequest<DescribeEcsClustersRequest>(describeEcsClustersRequest, "AWSOpsWorks");
    request.addHeader("X-Amz-Target", "OpsWorks_20130218.DescribeEcsClusters");

    request.setHttpMethod(HttpMethodName.POST);

    request.setResourcePath("");

    try {
      final StructuredJsonGenerator jsonGenerator =
          SdkJsonProtocolFactory.createWriter(false, "1.1");

      jsonGenerator.writeStartObject();

      com.amazonaws.internal.SdkInternalList<String> ecsClusterArnsList =
          (com.amazonaws.internal.SdkInternalList<String>)
              describeEcsClustersRequest.getEcsClusterArns();
      if (!ecsClusterArnsList.isEmpty() || !ecsClusterArnsList.isAutoConstruct()) {
        jsonGenerator.writeFieldName("EcsClusterArns");
        jsonGenerator.writeStartArray();
        for (String ecsClusterArnsListValue : ecsClusterArnsList) {
          if (ecsClusterArnsListValue != null) {
            jsonGenerator.writeValue(ecsClusterArnsListValue);
          }
        }
        jsonGenerator.writeEndArray();
      }
      if (describeEcsClustersRequest.getStackId() != null) {
        jsonGenerator.writeFieldName("StackId").writeValue(describeEcsClustersRequest.getStackId());
      }
      if (describeEcsClustersRequest.getNextToken() != null) {
        jsonGenerator
            .writeFieldName("NextToken")
            .writeValue(describeEcsClustersRequest.getNextToken());
      }
      if (describeEcsClustersRequest.getMaxResults() != null) {
        jsonGenerator
            .writeFieldName("MaxResults")
            .writeValue(describeEcsClustersRequest.getMaxResults());
      }

      jsonGenerator.writeEndObject();

      byte[] content = jsonGenerator.getBytes();
      request.setContent(new ByteArrayInputStream(content));
      request.addHeader("Content-Length", Integer.toString(content.length));
      request.addHeader("Content-Type", jsonGenerator.getContentType());
    } catch (Throwable t) {
      throw new AmazonClientException("Unable to marshall request to JSON: " + t.getMessage(), t);
    }

    return request;
  }
  /** Marshall the given parameter object, and output to a SdkJsonGenerator */
  public void marshall(JobOutput jobOutput, StructuredJsonGenerator jsonGenerator) {

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

    try {
      jsonGenerator.writeStartObject();

      if (jobOutput.getId() != null) {
        jsonGenerator.writeFieldName("Id").writeValue(jobOutput.getId());
      }
      if (jobOutput.getKey() != null) {
        jsonGenerator.writeFieldName("Key").writeValue(jobOutput.getKey());
      }
      if (jobOutput.getThumbnailPattern() != null) {
        jsonGenerator
            .writeFieldName("ThumbnailPattern")
            .writeValue(jobOutput.getThumbnailPattern());
      }
      if (jobOutput.getThumbnailEncryption() != null) {
        jsonGenerator.writeFieldName("ThumbnailEncryption");
        EncryptionJsonMarshaller.getInstance()
            .marshall(jobOutput.getThumbnailEncryption(), jsonGenerator);
      }
      if (jobOutput.getRotate() != null) {
        jsonGenerator.writeFieldName("Rotate").writeValue(jobOutput.getRotate());
      }
      if (jobOutput.getPresetId() != null) {
        jsonGenerator.writeFieldName("PresetId").writeValue(jobOutput.getPresetId());
      }
      if (jobOutput.getSegmentDuration() != null) {
        jsonGenerator.writeFieldName("SegmentDuration").writeValue(jobOutput.getSegmentDuration());
      }
      if (jobOutput.getStatus() != null) {
        jsonGenerator.writeFieldName("Status").writeValue(jobOutput.getStatus());
      }
      if (jobOutput.getStatusDetail() != null) {
        jsonGenerator.writeFieldName("StatusDetail").writeValue(jobOutput.getStatusDetail());
      }
      if (jobOutput.getDuration() != null) {
        jsonGenerator.writeFieldName("Duration").writeValue(jobOutput.getDuration());
      }
      if (jobOutput.getWidth() != null) {
        jsonGenerator.writeFieldName("Width").writeValue(jobOutput.getWidth());
      }
      if (jobOutput.getHeight() != null) {
        jsonGenerator.writeFieldName("Height").writeValue(jobOutput.getHeight());
      }
      if (jobOutput.getFrameRate() != null) {
        jsonGenerator.writeFieldName("FrameRate").writeValue(jobOutput.getFrameRate());
      }
      if (jobOutput.getFileSize() != null) {
        jsonGenerator.writeFieldName("FileSize").writeValue(jobOutput.getFileSize());
      }
      if (jobOutput.getDurationMillis() != null) {
        jsonGenerator.writeFieldName("DurationMillis").writeValue(jobOutput.getDurationMillis());
      }

      com.amazonaws.internal.SdkInternalList<JobWatermark> watermarksList =
          (com.amazonaws.internal.SdkInternalList<JobWatermark>) jobOutput.getWatermarks();
      if (!watermarksList.isEmpty() || !watermarksList.isAutoConstruct()) {
        jsonGenerator.writeFieldName("Watermarks");
        jsonGenerator.writeStartArray();
        for (JobWatermark watermarksListValue : watermarksList) {
          if (watermarksListValue != null) {

            JobWatermarkJsonMarshaller.getInstance().marshall(watermarksListValue, jsonGenerator);
          }
        }
        jsonGenerator.writeEndArray();
      }
      if (jobOutput.getAlbumArt() != null) {
        jsonGenerator.writeFieldName("AlbumArt");
        JobAlbumArtJsonMarshaller.getInstance().marshall(jobOutput.getAlbumArt(), jsonGenerator);
      }

      com.amazonaws.internal.SdkInternalList<Clip> compositionList =
          (com.amazonaws.internal.SdkInternalList<Clip>) jobOutput.getComposition();
      if (!compositionList.isEmpty() || !compositionList.isAutoConstruct()) {
        jsonGenerator.writeFieldName("Composition");
        jsonGenerator.writeStartArray();
        for (Clip compositionListValue : compositionList) {
          if (compositionListValue != null) {

            ClipJsonMarshaller.getInstance().marshall(compositionListValue, jsonGenerator);
          }
        }
        jsonGenerator.writeEndArray();
      }
      if (jobOutput.getCaptions() != null) {
        jsonGenerator.writeFieldName("Captions");
        CaptionsJsonMarshaller.getInstance().marshall(jobOutput.getCaptions(), jsonGenerator);
      }
      if (jobOutput.getEncryption() != null) {
        jsonGenerator.writeFieldName("Encryption");
        EncryptionJsonMarshaller.getInstance().marshall(jobOutput.getEncryption(), jsonGenerator);
      }
      if (jobOutput.getAppliedColorSpaceConversion() != null) {
        jsonGenerator
            .writeFieldName("AppliedColorSpaceConversion")
            .writeValue(jobOutput.getAppliedColorSpaceConversion());
      }

      jsonGenerator.writeEndObject();
    } catch (Throwable t) {
      throw new AmazonClientException("Unable to marshall request to JSON: " + t.getMessage(), t);
    }
  }