All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.mediaconvert.model.SccDestinationSettings Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Elemental MediaConvert module holds the client classes that are used for communicating with AWS Elemental MediaConvert Service

There is a newer version: 1.12.778
Show newest version
/*
 * 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;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * Settings related to SCC captions. SCC is a sidecar format that holds captions in a file that is separate from the
 * video container. Set up sidecar captions in the same output group, but different output from your video. For more
 * information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/scc-srt-output-captions.html.
 * 
 * @see AWS API Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class SccDestinationSettings implements Serializable, Cloneable, StructuredPojo {

    /**
     * Set Framerate to make sure that the captions and the video are synchronized in the output. Specify a frame rate
     * that matches the frame rate of the associated video. If the video frame rate is 29.97, choose 29.97 dropframe
     * only if the video has video_insertion=true and drop_frame_timecode=true; otherwise, choose 29.97 non-dropframe.
     */
    private String framerate;

    /**
     * Set Framerate to make sure that the captions and the video are synchronized in the output. Specify a frame rate
     * that matches the frame rate of the associated video. If the video frame rate is 29.97, choose 29.97 dropframe
     * only if the video has video_insertion=true and drop_frame_timecode=true; otherwise, choose 29.97 non-dropframe.
     * 
     * @param framerate
     *        Set Framerate to make sure that the captions and the video are synchronized in the output. Specify a frame
     *        rate that matches the frame rate of the associated video. If the video frame rate is 29.97, choose 29.97
     *        dropframe only if the video has video_insertion=true and drop_frame_timecode=true; otherwise, choose 29.97
     *        non-dropframe.
     * @see SccDestinationFramerate
     */

    public void setFramerate(String framerate) {
        this.framerate = framerate;
    }

    /**
     * Set Framerate to make sure that the captions and the video are synchronized in the output. Specify a frame rate
     * that matches the frame rate of the associated video. If the video frame rate is 29.97, choose 29.97 dropframe
     * only if the video has video_insertion=true and drop_frame_timecode=true; otherwise, choose 29.97 non-dropframe.
     * 
     * @return Set Framerate to make sure that the captions and the video are synchronized in the output. Specify a
     *         frame rate that matches the frame rate of the associated video. If the video frame rate is 29.97, choose
     *         29.97 dropframe only if the video has video_insertion=true and drop_frame_timecode=true; otherwise,
     *         choose 29.97 non-dropframe.
     * @see SccDestinationFramerate
     */

    public String getFramerate() {
        return this.framerate;
    }

    /**
     * Set Framerate to make sure that the captions and the video are synchronized in the output. Specify a frame rate
     * that matches the frame rate of the associated video. If the video frame rate is 29.97, choose 29.97 dropframe
     * only if the video has video_insertion=true and drop_frame_timecode=true; otherwise, choose 29.97 non-dropframe.
     * 
     * @param framerate
     *        Set Framerate to make sure that the captions and the video are synchronized in the output. Specify a frame
     *        rate that matches the frame rate of the associated video. If the video frame rate is 29.97, choose 29.97
     *        dropframe only if the video has video_insertion=true and drop_frame_timecode=true; otherwise, choose 29.97
     *        non-dropframe.
     * @return Returns a reference to this object so that method calls can be chained together.
     * @see SccDestinationFramerate
     */

    public SccDestinationSettings withFramerate(String framerate) {
        setFramerate(framerate);
        return this;
    }

    /**
     * Set Framerate to make sure that the captions and the video are synchronized in the output. Specify a frame rate
     * that matches the frame rate of the associated video. If the video frame rate is 29.97, choose 29.97 dropframe
     * only if the video has video_insertion=true and drop_frame_timecode=true; otherwise, choose 29.97 non-dropframe.
     * 
     * @param framerate
     *        Set Framerate to make sure that the captions and the video are synchronized in the output. Specify a frame
     *        rate that matches the frame rate of the associated video. If the video frame rate is 29.97, choose 29.97
     *        dropframe only if the video has video_insertion=true and drop_frame_timecode=true; otherwise, choose 29.97
     *        non-dropframe.
     * @return Returns a reference to this object so that method calls can be chained together.
     * @see SccDestinationFramerate
     */

    public SccDestinationSettings withFramerate(SccDestinationFramerate framerate) {
        this.framerate = framerate.toString();
        return this;
    }

    /**
     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
     * redacted from this string using a placeholder value.
     *
     * @return A string representation of this object.
     *
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getFramerate() != null)
            sb.append("Framerate: ").append(getFramerate());
        sb.append("}");
        return sb.toString();
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;

        if (obj instanceof SccDestinationSettings == false)
            return false;
        SccDestinationSettings other = (SccDestinationSettings) obj;
        if (other.getFramerate() == null ^ this.getFramerate() == null)
            return false;
        if (other.getFramerate() != null && other.getFramerate().equals(this.getFramerate()) == false)
            return false;
        return true;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;

        hashCode = prime * hashCode + ((getFramerate() == null) ? 0 : getFramerate().hashCode());
        return hashCode;
    }

    @Override
    public SccDestinationSettings clone() {
        try {
            return (SccDestinationSettings) super.clone();
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
        }
    }

    @com.amazonaws.annotation.SdkInternalApi
    @Override
    public void marshall(ProtocolMarshaller protocolMarshaller) {
        com.amazonaws.services.mediaconvert.model.transform.SccDestinationSettingsMarshaller.getInstance().marshall(this, protocolMarshaller);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy