com.amazonaws.services.mediaconvert.model.CaptionSourceFramerate 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;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
* Ignore this setting unless your input captions format is SCC. To have the service compensate for differing frame
* rates between your input captions and input video, specify the frame rate of the captions file. Specify this value as
* a fraction. For example, you might specify 24 / 1 for 24 fps, 25 / 1 for 25 fps, 24000 / 1001 for 23.976 fps, or
* 30000 / 1001 for 29.97 fps.
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CaptionSourceFramerate implements Serializable, Cloneable, StructuredPojo {
/**
* Specify the denominator of the fraction that represents the frame rate for the setting Caption source frame rate.
* Use this setting along with the setting Framerate numerator.
*/
private Integer framerateDenominator;
/**
* Specify the numerator of the fraction that represents the frame rate for the setting Caption source frame rate.
* Use this setting along with the setting Framerate denominator.
*/
private Integer framerateNumerator;
/**
* Specify the denominator of the fraction that represents the frame rate for the setting Caption source frame rate.
* Use this setting along with the setting Framerate numerator.
*
* @param framerateDenominator
* Specify the denominator of the fraction that represents the frame rate for the setting Caption source
* frame rate. Use this setting along with the setting Framerate numerator.
*/
public void setFramerateDenominator(Integer framerateDenominator) {
this.framerateDenominator = framerateDenominator;
}
/**
* Specify the denominator of the fraction that represents the frame rate for the setting Caption source frame rate.
* Use this setting along with the setting Framerate numerator.
*
* @return Specify the denominator of the fraction that represents the frame rate for the setting Caption source
* frame rate. Use this setting along with the setting Framerate numerator.
*/
public Integer getFramerateDenominator() {
return this.framerateDenominator;
}
/**
* Specify the denominator of the fraction that represents the frame rate for the setting Caption source frame rate.
* Use this setting along with the setting Framerate numerator.
*
* @param framerateDenominator
* Specify the denominator of the fraction that represents the frame rate for the setting Caption source
* frame rate. Use this setting along with the setting Framerate numerator.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CaptionSourceFramerate withFramerateDenominator(Integer framerateDenominator) {
setFramerateDenominator(framerateDenominator);
return this;
}
/**
* Specify the numerator of the fraction that represents the frame rate for the setting Caption source frame rate.
* Use this setting along with the setting Framerate denominator.
*
* @param framerateNumerator
* Specify the numerator of the fraction that represents the frame rate for the setting Caption source frame
* rate. Use this setting along with the setting Framerate denominator.
*/
public void setFramerateNumerator(Integer framerateNumerator) {
this.framerateNumerator = framerateNumerator;
}
/**
* Specify the numerator of the fraction that represents the frame rate for the setting Caption source frame rate.
* Use this setting along with the setting Framerate denominator.
*
* @return Specify the numerator of the fraction that represents the frame rate for the setting Caption source frame
* rate. Use this setting along with the setting Framerate denominator.
*/
public Integer getFramerateNumerator() {
return this.framerateNumerator;
}
/**
* Specify the numerator of the fraction that represents the frame rate for the setting Caption source frame rate.
* Use this setting along with the setting Framerate denominator.
*
* @param framerateNumerator
* Specify the numerator of the fraction that represents the frame rate for the setting Caption source frame
* rate. Use this setting along with the setting Framerate denominator.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CaptionSourceFramerate withFramerateNumerator(Integer framerateNumerator) {
setFramerateNumerator(framerateNumerator);
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 (getFramerateDenominator() != null)
sb.append("FramerateDenominator: ").append(getFramerateDenominator()).append(",");
if (getFramerateNumerator() != null)
sb.append("FramerateNumerator: ").append(getFramerateNumerator());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CaptionSourceFramerate == false)
return false;
CaptionSourceFramerate other = (CaptionSourceFramerate) obj;
if (other.getFramerateDenominator() == null ^ this.getFramerateDenominator() == null)
return false;
if (other.getFramerateDenominator() != null && other.getFramerateDenominator().equals(this.getFramerateDenominator()) == false)
return false;
if (other.getFramerateNumerator() == null ^ this.getFramerateNumerator() == null)
return false;
if (other.getFramerateNumerator() != null && other.getFramerateNumerator().equals(this.getFramerateNumerator()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getFramerateDenominator() == null) ? 0 : getFramerateDenominator().hashCode());
hashCode = prime * hashCode + ((getFramerateNumerator() == null) ? 0 : getFramerateNumerator().hashCode());
return hashCode;
}
@Override
public CaptionSourceFramerate clone() {
try {
return (CaptionSourceFramerate) 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.CaptionSourceFramerateMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}