com.amazonaws.services.medialive.model.ArchiveOutputSettings Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-medialive Show documentation
Show all versions of aws-java-sdk-medialive Show documentation
The AWS Java SDK for AWS Elemental MediaLive module holds the client classes that are used for communicating with AWS Elemental MediaLive Service
/*
* Copyright 2018-2023 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.medialive.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
* Archive Output Settings
*
* @see AWS
* API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ArchiveOutputSettings implements Serializable, Cloneable, StructuredPojo {
/** Settings specific to the container type of the file. */
private ArchiveContainerSettings containerSettings;
/** Output file extension. If excluded, this will be auto-selected from the container type. */
private String extension;
/** String concatenated to the end of the destination filename. Required for multiple outputs of the same type. */
private String nameModifier;
/**
* Settings specific to the container type of the file.
*
* @param containerSettings
* Settings specific to the container type of the file.
*/
public void setContainerSettings(ArchiveContainerSettings containerSettings) {
this.containerSettings = containerSettings;
}
/**
* Settings specific to the container type of the file.
*
* @return Settings specific to the container type of the file.
*/
public ArchiveContainerSettings getContainerSettings() {
return this.containerSettings;
}
/**
* Settings specific to the container type of the file.
*
* @param containerSettings
* Settings specific to the container type of the file.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ArchiveOutputSettings withContainerSettings(ArchiveContainerSettings containerSettings) {
setContainerSettings(containerSettings);
return this;
}
/**
* Output file extension. If excluded, this will be auto-selected from the container type.
*
* @param extension
* Output file extension. If excluded, this will be auto-selected from the container type.
*/
public void setExtension(String extension) {
this.extension = extension;
}
/**
* Output file extension. If excluded, this will be auto-selected from the container type.
*
* @return Output file extension. If excluded, this will be auto-selected from the container type.
*/
public String getExtension() {
return this.extension;
}
/**
* Output file extension. If excluded, this will be auto-selected from the container type.
*
* @param extension
* Output file extension. If excluded, this will be auto-selected from the container type.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ArchiveOutputSettings withExtension(String extension) {
setExtension(extension);
return this;
}
/**
* String concatenated to the end of the destination filename. Required for multiple outputs of the same type.
*
* @param nameModifier
* String concatenated to the end of the destination filename. Required for multiple outputs of the same
* type.
*/
public void setNameModifier(String nameModifier) {
this.nameModifier = nameModifier;
}
/**
* String concatenated to the end of the destination filename. Required for multiple outputs of the same type.
*
* @return String concatenated to the end of the destination filename. Required for multiple outputs of the same
* type.
*/
public String getNameModifier() {
return this.nameModifier;
}
/**
* String concatenated to the end of the destination filename. Required for multiple outputs of the same type.
*
* @param nameModifier
* String concatenated to the end of the destination filename. Required for multiple outputs of the same
* type.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ArchiveOutputSettings withNameModifier(String nameModifier) {
setNameModifier(nameModifier);
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 (getContainerSettings() != null)
sb.append("ContainerSettings: ").append(getContainerSettings()).append(",");
if (getExtension() != null)
sb.append("Extension: ").append(getExtension()).append(",");
if (getNameModifier() != null)
sb.append("NameModifier: ").append(getNameModifier());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ArchiveOutputSettings == false)
return false;
ArchiveOutputSettings other = (ArchiveOutputSettings) obj;
if (other.getContainerSettings() == null ^ this.getContainerSettings() == null)
return false;
if (other.getContainerSettings() != null && other.getContainerSettings().equals(this.getContainerSettings()) == false)
return false;
if (other.getExtension() == null ^ this.getExtension() == null)
return false;
if (other.getExtension() != null && other.getExtension().equals(this.getExtension()) == false)
return false;
if (other.getNameModifier() == null ^ this.getNameModifier() == null)
return false;
if (other.getNameModifier() != null && other.getNameModifier().equals(this.getNameModifier()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getContainerSettings() == null) ? 0 : getContainerSettings().hashCode());
hashCode = prime * hashCode + ((getExtension() == null) ? 0 : getExtension().hashCode());
hashCode = prime * hashCode + ((getNameModifier() == null) ? 0 : getNameModifier().hashCode());
return hashCode;
}
@Override
public ArchiveOutputSettings clone() {
try {
return (ArchiveOutputSettings) 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.medialive.model.transform.ArchiveOutputSettingsMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}