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

com.amazonaws.services.elastictranscoder.model.CreatePresetRequest Maven / Gradle / Ivy

Go to download

The AWS SDK for Java with support for OSGi. The AWS SDK for Java provides Java APIs for building software on AWS' cost-effective, scalable, and reliable infrastructure products. The AWS Java SDK allows developers to code against APIs for all of Amazon's infrastructure web services (Amazon S3, Amazon EC2, Amazon SQS, Amazon Relational Database Service, Amazon AutoScaling, etc).

There is a newer version: 1.11.60
Show newest version
/*
 * Copyright 2011-2016 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.elastictranscoder.model;

import java.io.Serializable;
import com.amazonaws.AmazonWebServiceRequest;

/**
 * 

* The CreatePresetRequest structure. *

*/ public class CreatePresetRequest extends AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* The name of the preset. We recommend that the name be unique within the * AWS account, but uniqueness is not enforced. *

*/ private String name; /** *

* A description of the preset. *

*/ private String description; /** *

* The container type for the output file. Valid values include * flac, flv, fmp4, gif, * mp3, mp4, mpg, mxf, * oga, ogg, ts, and * webm. *

*/ private String container; /** *

* A section of the request body that specifies the video parameters. *

*/ private VideoParameters video; /** *

* A section of the request body that specifies the audio parameters. *

*/ private AudioParameters audio; /** *

* A section of the request body that specifies the thumbnail parameters, if * any. *

*/ private Thumbnails thumbnails; /** *

* The name of the preset. We recommend that the name be unique within the * AWS account, but uniqueness is not enforced. *

* * @param name * The name of the preset. We recommend that the name be unique * within the AWS account, but uniqueness is not enforced. */ public void setName(String name) { this.name = name; } /** *

* The name of the preset. We recommend that the name be unique within the * AWS account, but uniqueness is not enforced. *

* * @return The name of the preset. We recommend that the name be unique * within the AWS account, but uniqueness is not enforced. */ public String getName() { return this.name; } /** *

* The name of the preset. We recommend that the name be unique within the * AWS account, but uniqueness is not enforced. *

* * @param name * The name of the preset. We recommend that the name be unique * within the AWS account, but uniqueness is not enforced. * @return Returns a reference to this object so that method calls can be * chained together. */ public CreatePresetRequest withName(String name) { setName(name); return this; } /** *

* A description of the preset. *

* * @param description * A description of the preset. */ public void setDescription(String description) { this.description = description; } /** *

* A description of the preset. *

* * @return A description of the preset. */ public String getDescription() { return this.description; } /** *

* A description of the preset. *

* * @param description * A description of the preset. * @return Returns a reference to this object so that method calls can be * chained together. */ public CreatePresetRequest withDescription(String description) { setDescription(description); return this; } /** *

* The container type for the output file. Valid values include * flac, flv, fmp4, gif, * mp3, mp4, mpg, mxf, * oga, ogg, ts, and * webm. *

* * @param container * The container type for the output file. Valid values include * flac, flv, fmp4, * gif, mp3, mp4, * mpg, mxf, oga, * ogg, ts, and webm. */ public void setContainer(String container) { this.container = container; } /** *

* The container type for the output file. Valid values include * flac, flv, fmp4, gif, * mp3, mp4, mpg, mxf, * oga, ogg, ts, and * webm. *

* * @return The container type for the output file. Valid values include * flac, flv, fmp4, * gif, mp3, mp4, * mpg, mxf, oga, * ogg, ts, and webm. */ public String getContainer() { return this.container; } /** *

* The container type for the output file. Valid values include * flac, flv, fmp4, gif, * mp3, mp4, mpg, mxf, * oga, ogg, ts, and * webm. *

* * @param container * The container type for the output file. Valid values include * flac, flv, fmp4, * gif, mp3, mp4, * mpg, mxf, oga, * ogg, ts, and webm. * @return Returns a reference to this object so that method calls can be * chained together. */ public CreatePresetRequest withContainer(String container) { setContainer(container); return this; } /** *

* A section of the request body that specifies the video parameters. *

* * @param video * A section of the request body that specifies the video parameters. */ public void setVideo(VideoParameters video) { this.video = video; } /** *

* A section of the request body that specifies the video parameters. *

* * @return A section of the request body that specifies the video * parameters. */ public VideoParameters getVideo() { return this.video; } /** *

* A section of the request body that specifies the video parameters. *

* * @param video * A section of the request body that specifies the video parameters. * @return Returns a reference to this object so that method calls can be * chained together. */ public CreatePresetRequest withVideo(VideoParameters video) { setVideo(video); return this; } /** *

* A section of the request body that specifies the audio parameters. *

* * @param audio * A section of the request body that specifies the audio parameters. */ public void setAudio(AudioParameters audio) { this.audio = audio; } /** *

* A section of the request body that specifies the audio parameters. *

* * @return A section of the request body that specifies the audio * parameters. */ public AudioParameters getAudio() { return this.audio; } /** *

* A section of the request body that specifies the audio parameters. *

* * @param audio * A section of the request body that specifies the audio parameters. * @return Returns a reference to this object so that method calls can be * chained together. */ public CreatePresetRequest withAudio(AudioParameters audio) { setAudio(audio); return this; } /** *

* A section of the request body that specifies the thumbnail parameters, if * any. *

* * @param thumbnails * A section of the request body that specifies the thumbnail * parameters, if any. */ public void setThumbnails(Thumbnails thumbnails) { this.thumbnails = thumbnails; } /** *

* A section of the request body that specifies the thumbnail parameters, if * any. *

* * @return A section of the request body that specifies the thumbnail * parameters, if any. */ public Thumbnails getThumbnails() { return this.thumbnails; } /** *

* A section of the request body that specifies the thumbnail parameters, if * any. *

* * @param thumbnails * A section of the request body that specifies the thumbnail * parameters, if any. * @return Returns a reference to this object so that method calls can be * chained together. */ public CreatePresetRequest withThumbnails(Thumbnails thumbnails) { setThumbnails(thumbnails); 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 (getName() != null) sb.append("Name: " + getName() + ","); if (getDescription() != null) sb.append("Description: " + getDescription() + ","); if (getContainer() != null) sb.append("Container: " + getContainer() + ","); if (getVideo() != null) sb.append("Video: " + getVideo() + ","); if (getAudio() != null) sb.append("Audio: " + getAudio() + ","); if (getThumbnails() != null) sb.append("Thumbnails: " + getThumbnails()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreatePresetRequest == false) return false; CreatePresetRequest other = (CreatePresetRequest) obj; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getContainer() == null ^ this.getContainer() == null) return false; if (other.getContainer() != null && other.getContainer().equals(this.getContainer()) == false) return false; if (other.getVideo() == null ^ this.getVideo() == null) return false; if (other.getVideo() != null && other.getVideo().equals(this.getVideo()) == false) return false; if (other.getAudio() == null ^ this.getAudio() == null) return false; if (other.getAudio() != null && other.getAudio().equals(this.getAudio()) == false) return false; if (other.getThumbnails() == null ^ this.getThumbnails() == null) return false; if (other.getThumbnails() != null && other.getThumbnails().equals(this.getThumbnails()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getContainer() == null) ? 0 : getContainer().hashCode()); hashCode = prime * hashCode + ((getVideo() == null) ? 0 : getVideo().hashCode()); hashCode = prime * hashCode + ((getAudio() == null) ? 0 : getAudio().hashCode()); hashCode = prime * hashCode + ((getThumbnails() == null) ? 0 : getThumbnails().hashCode()); return hashCode; } @Override public CreatePresetRequest clone() { return (CreatePresetRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy