com.amazonaws.services.mediaconvert.model.transform.ProresSettingsMarshaller Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-mediaconvert Show documentation
Show all versions of aws-java-sdk-mediaconvert Show documentation
The AWS Java SDK for AWS Elemental MediaConvert module holds the client classes that are used for communicating with AWS Elemental MediaConvert Service
/*
* Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.mediaconvert.model.transform;
import javax.annotation.Generated;
import com.amazonaws.SdkClientException;
import com.amazonaws.services.mediaconvert.model.*;
import com.amazonaws.protocol.*;
import com.amazonaws.annotation.SdkInternalApi;
/**
* ProresSettingsMarshaller
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
@SdkInternalApi
public class ProresSettingsMarshaller {
private static final MarshallingInfo CHROMASAMPLING_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("chromaSampling").build();
private static final MarshallingInfo CODECPROFILE_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("codecProfile").build();
private static final MarshallingInfo FRAMERATECONTROL_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("framerateControl").build();
private static final MarshallingInfo FRAMERATECONVERSIONALGORITHM_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("framerateConversionAlgorithm").build();
private static final MarshallingInfo FRAMERATEDENOMINATOR_BINDING = MarshallingInfo.builder(MarshallingType.INTEGER)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("framerateDenominator").build();
private static final MarshallingInfo FRAMERATENUMERATOR_BINDING = MarshallingInfo.builder(MarshallingType.INTEGER)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("framerateNumerator").build();
private static final MarshallingInfo INTERLACEMODE_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("interlaceMode").build();
private static final MarshallingInfo PARCONTROL_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("parControl").build();
private static final MarshallingInfo PARDENOMINATOR_BINDING = MarshallingInfo.builder(MarshallingType.INTEGER)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("parDenominator").build();
private static final MarshallingInfo PARNUMERATOR_BINDING = MarshallingInfo.builder(MarshallingType.INTEGER)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("parNumerator").build();
private static final MarshallingInfo SCANTYPECONVERSIONMODE_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("scanTypeConversionMode").build();
private static final MarshallingInfo SLOWPAL_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("slowPal").build();
private static final MarshallingInfo TELECINE_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("telecine").build();
private static final ProresSettingsMarshaller instance = new ProresSettingsMarshaller();
public static ProresSettingsMarshaller getInstance() {
return instance;
}
/**
* Marshall the given parameter object.
*/
public void marshall(ProresSettings proresSettings, ProtocolMarshaller protocolMarshaller) {
if (proresSettings == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(proresSettings.getChromaSampling(), CHROMASAMPLING_BINDING);
protocolMarshaller.marshall(proresSettings.getCodecProfile(), CODECPROFILE_BINDING);
protocolMarshaller.marshall(proresSettings.getFramerateControl(), FRAMERATECONTROL_BINDING);
protocolMarshaller.marshall(proresSettings.getFramerateConversionAlgorithm(), FRAMERATECONVERSIONALGORITHM_BINDING);
protocolMarshaller.marshall(proresSettings.getFramerateDenominator(), FRAMERATEDENOMINATOR_BINDING);
protocolMarshaller.marshall(proresSettings.getFramerateNumerator(), FRAMERATENUMERATOR_BINDING);
protocolMarshaller.marshall(proresSettings.getInterlaceMode(), INTERLACEMODE_BINDING);
protocolMarshaller.marshall(proresSettings.getParControl(), PARCONTROL_BINDING);
protocolMarshaller.marshall(proresSettings.getParDenominator(), PARDENOMINATOR_BINDING);
protocolMarshaller.marshall(proresSettings.getParNumerator(), PARNUMERATOR_BINDING);
protocolMarshaller.marshall(proresSettings.getScanTypeConversionMode(), SCANTYPECONVERSIONMODE_BINDING);
protocolMarshaller.marshall(proresSettings.getSlowPal(), SLOWPAL_BINDING);
protocolMarshaller.marshall(proresSettings.getTelecine(), TELECINE_BINDING);
} catch (Exception e) {
throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
}
}
}