com.amazonaws.services.mediaconvert.model.InputClipping Maven / Gradle / Ivy
/*
* Copyright 2013-2018 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;
/**
* Include one instance of (InputClipping) for each input clip.
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class InputClipping implements Serializable, Cloneable, StructuredPojo {
/**
* Set End timecode (EndTimecode) to the end of the portion of the input you are clipping. The frame corresponding
* to the End timecode value is included in the clip. Start timecode or End timecode may be left blank, but not
* both. When choosing this value, take into account your setting for Input timecode source. For example, if you have
* embedded timecodes that start at 01:00:00:00 and you want your clip to begin five minutes into the video, use
* 01:00:05:00.
*/
private String endTimecode;
/**
* Set Start timecode (StartTimecode) to the beginning of the portion of the input you are clipping. The frame
* corresponding to the Start timecode value is included in the clip. Start timecode or End timecode may be left
* blank, but not both. When choosing this value, take into account your setting for Input timecode source. For
* example, if you have embedded timecodes that start at 01:00:00:00 and you want your clip to begin five minutes
* into the video, use 01:00:05:00.
*/
private String startTimecode;
/**
* Set End timecode (EndTimecode) to the end of the portion of the input you are clipping. The frame corresponding
* to the End timecode value is included in the clip. Start timecode or End timecode may be left blank, but not
* both. When choosing this value, take into account your setting for Input timecode source. For example, if you have
* embedded timecodes that start at 01:00:00:00 and you want your clip to begin five minutes into the video, use
* 01:00:05:00.
*
* @param endTimecode
* Set End timecode (EndTimecode) to the end of the portion of the input you are clipping. The frame
* corresponding to the End timecode value is included in the clip. Start timecode or End timecode may be
* left blank, but not both. When choosing this value, take into account your setting for Input timecode
* source. For example, if you have embedded timecodes that start at 01:00:00:00 and you want your clip to
* begin five minutes into the video, use 01:00:05:00.
*/
public void setEndTimecode(String endTimecode) {
this.endTimecode = endTimecode;
}
/**
* Set End timecode (EndTimecode) to the end of the portion of the input you are clipping. The frame corresponding
* to the End timecode value is included in the clip. Start timecode or End timecode may be left blank, but not
* both. When choosing this value, take into account your setting for Input timecode source. For example, if you have
* embedded timecodes that start at 01:00:00:00 and you want your clip to begin five minutes into the video, use
* 01:00:05:00.
*
* @return Set End timecode (EndTimecode) to the end of the portion of the input you are clipping. The frame
* corresponding to the End timecode value is included in the clip. Start timecode or End timecode may be
* left blank, but not both. When choosing this value, take into account your setting for Input timecode
* source. For example, if you have embedded timecodes that start at 01:00:00:00 and you want your clip to
* begin five minutes into the video, use 01:00:05:00.
*/
public String getEndTimecode() {
return this.endTimecode;
}
/**
* Set End timecode (EndTimecode) to the end of the portion of the input you are clipping. The frame corresponding
* to the End timecode value is included in the clip. Start timecode or End timecode may be left blank, but not
* both. When choosing this value, take into account your setting for Input timecode source. For example, if you have
* embedded timecodes that start at 01:00:00:00 and you want your clip to begin five minutes into the video, use
* 01:00:05:00.
*
* @param endTimecode
* Set End timecode (EndTimecode) to the end of the portion of the input you are clipping. The frame
* corresponding to the End timecode value is included in the clip. Start timecode or End timecode may be
* left blank, but not both. When choosing this value, take into account your setting for Input timecode
* source. For example, if you have embedded timecodes that start at 01:00:00:00 and you want your clip to
* begin five minutes into the video, use 01:00:05:00.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public InputClipping withEndTimecode(String endTimecode) {
setEndTimecode(endTimecode);
return this;
}
/**
* Set Start timecode (StartTimecode) to the beginning of the portion of the input you are clipping. The frame
* corresponding to the Start timecode value is included in the clip. Start timecode or End timecode may be left
* blank, but not both. When choosing this value, take into account your setting for Input timecode source. For
* example, if you have embedded timecodes that start at 01:00:00:00 and you want your clip to begin five minutes
* into the video, use 01:00:05:00.
*
* @param startTimecode
* Set Start timecode (StartTimecode) to the beginning of the portion of the input you are clipping. The
* frame corresponding to the Start timecode value is included in the clip. Start timecode or End timecode
* may be left blank, but not both. When choosing this value, take into account your setting for Input
* timecode source. For example, if you have embedded timecodes that start at 01:00:00:00 and you want your
* clip to begin five minutes into the video, use 01:00:05:00.
*/
public void setStartTimecode(String startTimecode) {
this.startTimecode = startTimecode;
}
/**
* Set Start timecode (StartTimecode) to the beginning of the portion of the input you are clipping. The frame
* corresponding to the Start timecode value is included in the clip. Start timecode or End timecode may be left
* blank, but not both. When choosing this value, take into account your setting for Input timecode source. For
* example, if you have embedded timecodes that start at 01:00:00:00 and you want your clip to begin five minutes
* into the video, use 01:00:05:00.
*
* @return Set Start timecode (StartTimecode) to the beginning of the portion of the input you are clipping. The
* frame corresponding to the Start timecode value is included in the clip. Start timecode or End timecode
* may be left blank, but not both. When choosing this value, take into account your setting for Input
* timecode source. For example, if you have embedded timecodes that start at 01:00:00:00 and you want your
* clip to begin five minutes into the video, use 01:00:05:00.
*/
public String getStartTimecode() {
return this.startTimecode;
}
/**
* Set Start timecode (StartTimecode) to the beginning of the portion of the input you are clipping. The frame
* corresponding to the Start timecode value is included in the clip. Start timecode or End timecode may be left
* blank, but not both. When choosing this value, take into account your setting for Input timecode source. For
* example, if you have embedded timecodes that start at 01:00:00:00 and you want your clip to begin five minutes
* into the video, use 01:00:05:00.
*
* @param startTimecode
* Set Start timecode (StartTimecode) to the beginning of the portion of the input you are clipping. The
* frame corresponding to the Start timecode value is included in the clip. Start timecode or End timecode
* may be left blank, but not both. When choosing this value, take into account your setting for Input
* timecode source. For example, if you have embedded timecodes that start at 01:00:00:00 and you want your
* clip to begin five minutes into the video, use 01:00:05:00.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public InputClipping withStartTimecode(String startTimecode) {
setStartTimecode(startTimecode);
return this;
}
/**
* Returns a string representation of this object; useful for testing and debugging.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getEndTimecode() != null)
sb.append("EndTimecode: ").append(getEndTimecode()).append(",");
if (getStartTimecode() != null)
sb.append("StartTimecode: ").append(getStartTimecode());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof InputClipping == false)
return false;
InputClipping other = (InputClipping) obj;
if (other.getEndTimecode() == null ^ this.getEndTimecode() == null)
return false;
if (other.getEndTimecode() != null && other.getEndTimecode().equals(this.getEndTimecode()) == false)
return false;
if (other.getStartTimecode() == null ^ this.getStartTimecode() == null)
return false;
if (other.getStartTimecode() != null && other.getStartTimecode().equals(this.getStartTimecode()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getEndTimecode() == null) ? 0 : getEndTimecode().hashCode());
hashCode = prime * hashCode + ((getStartTimecode() == null) ? 0 : getStartTimecode().hashCode());
return hashCode;
}
@Override
public InputClipping clone() {
try {
return (InputClipping) 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.InputClippingMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy