com.amazonaws.services.mediaconvert.model.Mp4Settings 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 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;
/**
* Settings for MP4 Container
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class Mp4Settings implements Serializable, Cloneable, StructuredPojo {
private String cslgAtom;
private String freeSpaceBox;
private String moovPlacement;
/** Overrides the "Major Brand" field in the output file. Usually not necessary to specify. */
private String mp4MajorBrand;
/**
* @param cslgAtom
* @see Mp4CslgAtom
*/
public void setCslgAtom(String cslgAtom) {
this.cslgAtom = cslgAtom;
}
/**
* @return
* @see Mp4CslgAtom
*/
public String getCslgAtom() {
return this.cslgAtom;
}
/**
* @param cslgAtom
* @return Returns a reference to this object so that method calls can be chained together.
* @see Mp4CslgAtom
*/
public Mp4Settings withCslgAtom(String cslgAtom) {
setCslgAtom(cslgAtom);
return this;
}
/**
* @param cslgAtom
* @return Returns a reference to this object so that method calls can be chained together.
* @see Mp4CslgAtom
*/
public Mp4Settings withCslgAtom(Mp4CslgAtom cslgAtom) {
this.cslgAtom = cslgAtom.toString();
return this;
}
/**
* @param freeSpaceBox
* @see Mp4FreeSpaceBox
*/
public void setFreeSpaceBox(String freeSpaceBox) {
this.freeSpaceBox = freeSpaceBox;
}
/**
* @return
* @see Mp4FreeSpaceBox
*/
public String getFreeSpaceBox() {
return this.freeSpaceBox;
}
/**
* @param freeSpaceBox
* @return Returns a reference to this object so that method calls can be chained together.
* @see Mp4FreeSpaceBox
*/
public Mp4Settings withFreeSpaceBox(String freeSpaceBox) {
setFreeSpaceBox(freeSpaceBox);
return this;
}
/**
* @param freeSpaceBox
* @return Returns a reference to this object so that method calls can be chained together.
* @see Mp4FreeSpaceBox
*/
public Mp4Settings withFreeSpaceBox(Mp4FreeSpaceBox freeSpaceBox) {
this.freeSpaceBox = freeSpaceBox.toString();
return this;
}
/**
* @param moovPlacement
* @see Mp4MoovPlacement
*/
public void setMoovPlacement(String moovPlacement) {
this.moovPlacement = moovPlacement;
}
/**
* @return
* @see Mp4MoovPlacement
*/
public String getMoovPlacement() {
return this.moovPlacement;
}
/**
* @param moovPlacement
* @return Returns a reference to this object so that method calls can be chained together.
* @see Mp4MoovPlacement
*/
public Mp4Settings withMoovPlacement(String moovPlacement) {
setMoovPlacement(moovPlacement);
return this;
}
/**
* @param moovPlacement
* @return Returns a reference to this object so that method calls can be chained together.
* @see Mp4MoovPlacement
*/
public Mp4Settings withMoovPlacement(Mp4MoovPlacement moovPlacement) {
this.moovPlacement = moovPlacement.toString();
return this;
}
/**
* Overrides the "Major Brand" field in the output file. Usually not necessary to specify.
*
* @param mp4MajorBrand
* Overrides the "Major Brand" field in the output file. Usually not necessary to specify.
*/
public void setMp4MajorBrand(String mp4MajorBrand) {
this.mp4MajorBrand = mp4MajorBrand;
}
/**
* Overrides the "Major Brand" field in the output file. Usually not necessary to specify.
*
* @return Overrides the "Major Brand" field in the output file. Usually not necessary to specify.
*/
public String getMp4MajorBrand() {
return this.mp4MajorBrand;
}
/**
* Overrides the "Major Brand" field in the output file. Usually not necessary to specify.
*
* @param mp4MajorBrand
* Overrides the "Major Brand" field in the output file. Usually not necessary to specify.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Mp4Settings withMp4MajorBrand(String mp4MajorBrand) {
setMp4MajorBrand(mp4MajorBrand);
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 (getCslgAtom() != null)
sb.append("CslgAtom: ").append(getCslgAtom()).append(",");
if (getFreeSpaceBox() != null)
sb.append("FreeSpaceBox: ").append(getFreeSpaceBox()).append(",");
if (getMoovPlacement() != null)
sb.append("MoovPlacement: ").append(getMoovPlacement()).append(",");
if (getMp4MajorBrand() != null)
sb.append("Mp4MajorBrand: ").append(getMp4MajorBrand());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof Mp4Settings == false)
return false;
Mp4Settings other = (Mp4Settings) obj;
if (other.getCslgAtom() == null ^ this.getCslgAtom() == null)
return false;
if (other.getCslgAtom() != null && other.getCslgAtom().equals(this.getCslgAtom()) == false)
return false;
if (other.getFreeSpaceBox() == null ^ this.getFreeSpaceBox() == null)
return false;
if (other.getFreeSpaceBox() != null && other.getFreeSpaceBox().equals(this.getFreeSpaceBox()) == false)
return false;
if (other.getMoovPlacement() == null ^ this.getMoovPlacement() == null)
return false;
if (other.getMoovPlacement() != null && other.getMoovPlacement().equals(this.getMoovPlacement()) == false)
return false;
if (other.getMp4MajorBrand() == null ^ this.getMp4MajorBrand() == null)
return false;
if (other.getMp4MajorBrand() != null && other.getMp4MajorBrand().equals(this.getMp4MajorBrand()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getCslgAtom() == null) ? 0 : getCslgAtom().hashCode());
hashCode = prime * hashCode + ((getFreeSpaceBox() == null) ? 0 : getFreeSpaceBox().hashCode());
hashCode = prime * hashCode + ((getMoovPlacement() == null) ? 0 : getMoovPlacement().hashCode());
hashCode = prime * hashCode + ((getMp4MajorBrand() == null) ? 0 : getMp4MajorBrand().hashCode());
return hashCode;
}
@Override
public Mp4Settings clone() {
try {
return (Mp4Settings) 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.Mp4SettingsMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy