com.amazonaws.services.mediaconvert.model.transform.DvbSubDestinationSettingsMarshaller 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;
/**
* DvbSubDestinationSettingsMarshaller
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
@SdkInternalApi
public class DvbSubDestinationSettingsMarshaller {
private static final MarshallingInfo ALIGNMENT_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("alignment").build();
private static final MarshallingInfo APPLYFONTCOLOR_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("applyFontColor").build();
private static final MarshallingInfo BACKGROUNDCOLOR_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("backgroundColor").build();
private static final MarshallingInfo BACKGROUNDOPACITY_BINDING = MarshallingInfo.builder(MarshallingType.INTEGER)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("backgroundOpacity").build();
private static final MarshallingInfo DDSHANDLING_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("ddsHandling").build();
private static final MarshallingInfo DDSXCOORDINATE_BINDING = MarshallingInfo.builder(MarshallingType.INTEGER)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("ddsXCoordinate").build();
private static final MarshallingInfo DDSYCOORDINATE_BINDING = MarshallingInfo.builder(MarshallingType.INTEGER)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("ddsYCoordinate").build();
private static final MarshallingInfo FALLBACKFONT_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("fallbackFont").build();
private static final MarshallingInfo FONTCOLOR_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("fontColor").build();
private static final MarshallingInfo FONTFILEBOLD_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("fontFileBold").build();
private static final MarshallingInfo FONTFILEBOLDITALIC_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("fontFileBoldItalic").build();
private static final MarshallingInfo FONTFILEITALIC_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("fontFileItalic").build();
private static final MarshallingInfo FONTFILEREGULAR_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("fontFileRegular").build();
private static final MarshallingInfo FONTOPACITY_BINDING = MarshallingInfo.builder(MarshallingType.INTEGER)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("fontOpacity").build();
private static final MarshallingInfo FONTRESOLUTION_BINDING = MarshallingInfo.builder(MarshallingType.INTEGER)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("fontResolution").build();
private static final MarshallingInfo FONTSCRIPT_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("fontScript").build();
private static final MarshallingInfo FONTSIZE_BINDING = MarshallingInfo.builder(MarshallingType.INTEGER)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("fontSize").build();
private static final MarshallingInfo HEIGHT_BINDING = MarshallingInfo.builder(MarshallingType.INTEGER).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("height").build();
private static final MarshallingInfo HEXFONTCOLOR_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("hexFontColor").build();
private static final MarshallingInfo OUTLINECOLOR_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("outlineColor").build();
private static final MarshallingInfo OUTLINESIZE_BINDING = MarshallingInfo.builder(MarshallingType.INTEGER)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("outlineSize").build();
private static final MarshallingInfo SHADOWCOLOR_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("shadowColor").build();
private static final MarshallingInfo SHADOWOPACITY_BINDING = MarshallingInfo.builder(MarshallingType.INTEGER)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("shadowOpacity").build();
private static final MarshallingInfo SHADOWXOFFSET_BINDING = MarshallingInfo.builder(MarshallingType.INTEGER)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("shadowXOffset").build();
private static final MarshallingInfo SHADOWYOFFSET_BINDING = MarshallingInfo.builder(MarshallingType.INTEGER)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("shadowYOffset").build();
private static final MarshallingInfo STYLEPASSTHROUGH_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("stylePassthrough").build();
private static final MarshallingInfo SUBTITLINGTYPE_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("subtitlingType").build();
private static final MarshallingInfo TELETEXTSPACING_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("teletextSpacing").build();
private static final MarshallingInfo WIDTH_BINDING = MarshallingInfo.builder(MarshallingType.INTEGER).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("width").build();
private static final MarshallingInfo XPOSITION_BINDING = MarshallingInfo.builder(MarshallingType.INTEGER)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("xPosition").build();
private static final MarshallingInfo YPOSITION_BINDING = MarshallingInfo.builder(MarshallingType.INTEGER)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("yPosition").build();
private static final DvbSubDestinationSettingsMarshaller instance = new DvbSubDestinationSettingsMarshaller();
public static DvbSubDestinationSettingsMarshaller getInstance() {
return instance;
}
/**
* Marshall the given parameter object.
*/
public void marshall(DvbSubDestinationSettings dvbSubDestinationSettings, ProtocolMarshaller protocolMarshaller) {
if (dvbSubDestinationSettings == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(dvbSubDestinationSettings.getAlignment(), ALIGNMENT_BINDING);
protocolMarshaller.marshall(dvbSubDestinationSettings.getApplyFontColor(), APPLYFONTCOLOR_BINDING);
protocolMarshaller.marshall(dvbSubDestinationSettings.getBackgroundColor(), BACKGROUNDCOLOR_BINDING);
protocolMarshaller.marshall(dvbSubDestinationSettings.getBackgroundOpacity(), BACKGROUNDOPACITY_BINDING);
protocolMarshaller.marshall(dvbSubDestinationSettings.getDdsHandling(), DDSHANDLING_BINDING);
protocolMarshaller.marshall(dvbSubDestinationSettings.getDdsXCoordinate(), DDSXCOORDINATE_BINDING);
protocolMarshaller.marshall(dvbSubDestinationSettings.getDdsYCoordinate(), DDSYCOORDINATE_BINDING);
protocolMarshaller.marshall(dvbSubDestinationSettings.getFallbackFont(), FALLBACKFONT_BINDING);
protocolMarshaller.marshall(dvbSubDestinationSettings.getFontColor(), FONTCOLOR_BINDING);
protocolMarshaller.marshall(dvbSubDestinationSettings.getFontFileBold(), FONTFILEBOLD_BINDING);
protocolMarshaller.marshall(dvbSubDestinationSettings.getFontFileBoldItalic(), FONTFILEBOLDITALIC_BINDING);
protocolMarshaller.marshall(dvbSubDestinationSettings.getFontFileItalic(), FONTFILEITALIC_BINDING);
protocolMarshaller.marshall(dvbSubDestinationSettings.getFontFileRegular(), FONTFILEREGULAR_BINDING);
protocolMarshaller.marshall(dvbSubDestinationSettings.getFontOpacity(), FONTOPACITY_BINDING);
protocolMarshaller.marshall(dvbSubDestinationSettings.getFontResolution(), FONTRESOLUTION_BINDING);
protocolMarshaller.marshall(dvbSubDestinationSettings.getFontScript(), FONTSCRIPT_BINDING);
protocolMarshaller.marshall(dvbSubDestinationSettings.getFontSize(), FONTSIZE_BINDING);
protocolMarshaller.marshall(dvbSubDestinationSettings.getHeight(), HEIGHT_BINDING);
protocolMarshaller.marshall(dvbSubDestinationSettings.getHexFontColor(), HEXFONTCOLOR_BINDING);
protocolMarshaller.marshall(dvbSubDestinationSettings.getOutlineColor(), OUTLINECOLOR_BINDING);
protocolMarshaller.marshall(dvbSubDestinationSettings.getOutlineSize(), OUTLINESIZE_BINDING);
protocolMarshaller.marshall(dvbSubDestinationSettings.getShadowColor(), SHADOWCOLOR_BINDING);
protocolMarshaller.marshall(dvbSubDestinationSettings.getShadowOpacity(), SHADOWOPACITY_BINDING);
protocolMarshaller.marshall(dvbSubDestinationSettings.getShadowXOffset(), SHADOWXOFFSET_BINDING);
protocolMarshaller.marshall(dvbSubDestinationSettings.getShadowYOffset(), SHADOWYOFFSET_BINDING);
protocolMarshaller.marshall(dvbSubDestinationSettings.getStylePassthrough(), STYLEPASSTHROUGH_BINDING);
protocolMarshaller.marshall(dvbSubDestinationSettings.getSubtitlingType(), SUBTITLINGTYPE_BINDING);
protocolMarshaller.marshall(dvbSubDestinationSettings.getTeletextSpacing(), TELETEXTSPACING_BINDING);
protocolMarshaller.marshall(dvbSubDestinationSettings.getWidth(), WIDTH_BINDING);
protocolMarshaller.marshall(dvbSubDestinationSettings.getXPosition(), XPOSITION_BINDING);
protocolMarshaller.marshall(dvbSubDestinationSettings.getYPosition(), YPOSITION_BINDING);
} catch (Exception e) {
throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
}
}
}