(selectedOutputs);
}
/**
* Specify the outputs that you want this additional top-level manifest to reference.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setSelectedOutputs(java.util.Collection)} or {@link #withSelectedOutputs(java.util.Collection)} if you
* want to override the existing values.
*
*
* @param selectedOutputs
* Specify the outputs that you want this additional top-level manifest to reference.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DashAdditionalManifest withSelectedOutputs(String... selectedOutputs) {
if (this.selectedOutputs == null) {
setSelectedOutputs(new java.util.ArrayList(selectedOutputs.length));
}
for (String ele : selectedOutputs) {
this.selectedOutputs.add(ele);
}
return this;
}
/**
* Specify the outputs that you want this additional top-level manifest to reference.
*
* @param selectedOutputs
* Specify the outputs that you want this additional top-level manifest to reference.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DashAdditionalManifest withSelectedOutputs(java.util.Collection selectedOutputs) {
setSelectedOutputs(selectedOutputs);
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 (getManifestNameModifier() != null)
sb.append("ManifestNameModifier: ").append(getManifestNameModifier()).append(",");
if (getSelectedOutputs() != null)
sb.append("SelectedOutputs: ").append(getSelectedOutputs());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DashAdditionalManifest == false)
return false;
DashAdditionalManifest other = (DashAdditionalManifest) obj;
if (other.getManifestNameModifier() == null ^ this.getManifestNameModifier() == null)
return false;
if (other.getManifestNameModifier() != null && other.getManifestNameModifier().equals(this.getManifestNameModifier()) == false)
return false;
if (other.getSelectedOutputs() == null ^ this.getSelectedOutputs() == null)
return false;
if (other.getSelectedOutputs() != null && other.getSelectedOutputs().equals(this.getSelectedOutputs()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getManifestNameModifier() == null) ? 0 : getManifestNameModifier().hashCode());
hashCode = prime * hashCode + ((getSelectedOutputs() == null) ? 0 : getSelectedOutputs().hashCode());
return hashCode;
}
@Override
public DashAdditionalManifest clone() {
try {
return (DashAdditionalManifest) 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.DashAdditionalManifestMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}