com.amazonaws.services.medialive.model.MsSmoothOutputSettings 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;
/**
* Ms Smooth Output Settings
*
* @see AWS
* API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class MsSmoothOutputSettings implements Serializable, Cloneable, StructuredPojo {
/**
* Only applicable when this output is referencing an H.265 video description. Specifies whether MP4 segments should
* be packaged as HEV1 or HVC1.
*/
private String h265PackagingType;
/** String concatenated to the end of the destination filename. Required for multiple outputs of the same type. */
private String nameModifier;
/**
* Only applicable when this output is referencing an H.265 video description. Specifies whether MP4 segments should
* be packaged as HEV1 or HVC1.
*
* @param h265PackagingType
* Only applicable when this output is referencing an H.265 video description. Specifies whether MP4 segments
* should be packaged as HEV1 or HVC1.
* @see MsSmoothH265PackagingType
*/
public void setH265PackagingType(String h265PackagingType) {
this.h265PackagingType = h265PackagingType;
}
/**
* Only applicable when this output is referencing an H.265 video description. Specifies whether MP4 segments should
* be packaged as HEV1 or HVC1.
*
* @return Only applicable when this output is referencing an H.265 video description. Specifies whether MP4
* segments should be packaged as HEV1 or HVC1.
* @see MsSmoothH265PackagingType
*/
public String getH265PackagingType() {
return this.h265PackagingType;
}
/**
* Only applicable when this output is referencing an H.265 video description. Specifies whether MP4 segments should
* be packaged as HEV1 or HVC1.
*
* @param h265PackagingType
* Only applicable when this output is referencing an H.265 video description. Specifies whether MP4 segments
* should be packaged as HEV1 or HVC1.
* @return Returns a reference to this object so that method calls can be chained together.
* @see MsSmoothH265PackagingType
*/
public MsSmoothOutputSettings withH265PackagingType(String h265PackagingType) {
setH265PackagingType(h265PackagingType);
return this;
}
/**
* Only applicable when this output is referencing an H.265 video description. Specifies whether MP4 segments should
* be packaged as HEV1 or HVC1.
*
* @param h265PackagingType
* Only applicable when this output is referencing an H.265 video description. Specifies whether MP4 segments
* should be packaged as HEV1 or HVC1.
* @return Returns a reference to this object so that method calls can be chained together.
* @see MsSmoothH265PackagingType
*/
public MsSmoothOutputSettings withH265PackagingType(MsSmoothH265PackagingType h265PackagingType) {
this.h265PackagingType = h265PackagingType.toString();
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 MsSmoothOutputSettings 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 (getH265PackagingType() != null)
sb.append("H265PackagingType: ").append(getH265PackagingType()).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 MsSmoothOutputSettings == false)
return false;
MsSmoothOutputSettings other = (MsSmoothOutputSettings) obj;
if (other.getH265PackagingType() == null ^ this.getH265PackagingType() == null)
return false;
if (other.getH265PackagingType() != null && other.getH265PackagingType().equals(this.getH265PackagingType()) == 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 + ((getH265PackagingType() == null) ? 0 : getH265PackagingType().hashCode());
hashCode = prime * hashCode + ((getNameModifier() == null) ? 0 : getNameModifier().hashCode());
return hashCode;
}
@Override
public MsSmoothOutputSettings clone() {
try {
return (MsSmoothOutputSettings) 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.MsSmoothOutputSettingsMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}