com.amazonaws.services.mediaconvert.model.transform.MotionImageInserterMarshaller 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;
/**
* MotionImageInserterMarshaller
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
@SdkInternalApi
public class MotionImageInserterMarshaller {
private static final MarshallingInfo FRAMERATE_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("framerate").build();
private static final MarshallingInfo INPUT_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("input").build();
private static final MarshallingInfo INSERTIONMODE_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("insertionMode").build();
private static final MarshallingInfo OFFSET_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("offset").build();
private static final MarshallingInfo PLAYBACK_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("playback").build();
private static final MarshallingInfo STARTTIME_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("startTime").build();
private static final MotionImageInserterMarshaller instance = new MotionImageInserterMarshaller();
public static MotionImageInserterMarshaller getInstance() {
return instance;
}
/**
* Marshall the given parameter object.
*/
public void marshall(MotionImageInserter motionImageInserter, ProtocolMarshaller protocolMarshaller) {
if (motionImageInserter == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(motionImageInserter.getFramerate(), FRAMERATE_BINDING);
protocolMarshaller.marshall(motionImageInserter.getInput(), INPUT_BINDING);
protocolMarshaller.marshall(motionImageInserter.getInsertionMode(), INSERTIONMODE_BINDING);
protocolMarshaller.marshall(motionImageInserter.getOffset(), OFFSET_BINDING);
protocolMarshaller.marshall(motionImageInserter.getPlayback(), PLAYBACK_BINDING);
protocolMarshaller.marshall(motionImageInserter.getStartTime(), STARTTIME_BINDING);
} catch (Exception e) {
throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
}
}
}