(pageTypes);
}
/**
* Specify the page types for this Teletext page. If you don't specify a value here, the service sets the page type
* to the default value Subtitle. If you pass through the entire set of Teletext data, don't use this field. When
* you pass through a set of Teletext pages, your output has the same page types as your input.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setPageTypes(java.util.Collection)} or {@link #withPageTypes(java.util.Collection)} if you want to
* override the existing values.
*
*
* @param pageTypes
* Specify the page types for this Teletext page. If you don't specify a value here, the service sets the
* page type to the default value Subtitle. If you pass through the entire set of Teletext data, don't use
* this field. When you pass through a set of Teletext pages, your output has the same page types as your
* input.
* @return Returns a reference to this object so that method calls can be chained together.
* @see TeletextPageType
*/
public TeletextDestinationSettings withPageTypes(String... pageTypes) {
if (this.pageTypes == null) {
setPageTypes(new java.util.ArrayList(pageTypes.length));
}
for (String ele : pageTypes) {
this.pageTypes.add(ele);
}
return this;
}
/**
* Specify the page types for this Teletext page. If you don't specify a value here, the service sets the page type
* to the default value Subtitle. If you pass through the entire set of Teletext data, don't use this field. When
* you pass through a set of Teletext pages, your output has the same page types as your input.
*
* @param pageTypes
* Specify the page types for this Teletext page. If you don't specify a value here, the service sets the
* page type to the default value Subtitle. If you pass through the entire set of Teletext data, don't use
* this field. When you pass through a set of Teletext pages, your output has the same page types as your
* input.
* @return Returns a reference to this object so that method calls can be chained together.
* @see TeletextPageType
*/
public TeletextDestinationSettings withPageTypes(java.util.Collection pageTypes) {
setPageTypes(pageTypes);
return this;
}
/**
* Specify the page types for this Teletext page. If you don't specify a value here, the service sets the page type
* to the default value Subtitle. If you pass through the entire set of Teletext data, don't use this field. When
* you pass through a set of Teletext pages, your output has the same page types as your input.
*
* @param pageTypes
* Specify the page types for this Teletext page. If you don't specify a value here, the service sets the
* page type to the default value Subtitle. If you pass through the entire set of Teletext data, don't use
* this field. When you pass through a set of Teletext pages, your output has the same page types as your
* input.
* @return Returns a reference to this object so that method calls can be chained together.
* @see TeletextPageType
*/
public TeletextDestinationSettings withPageTypes(TeletextPageType... pageTypes) {
java.util.ArrayList pageTypesCopy = new java.util.ArrayList(pageTypes.length);
for (TeletextPageType value : pageTypes) {
pageTypesCopy.add(value.toString());
}
if (getPageTypes() == null) {
setPageTypes(pageTypesCopy);
} else {
getPageTypes().addAll(pageTypesCopy);
}
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 (getPageNumber() != null)
sb.append("PageNumber: ").append(getPageNumber()).append(",");
if (getPageTypes() != null)
sb.append("PageTypes: ").append(getPageTypes());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof TeletextDestinationSettings == false)
return false;
TeletextDestinationSettings other = (TeletextDestinationSettings) obj;
if (other.getPageNumber() == null ^ this.getPageNumber() == null)
return false;
if (other.getPageNumber() != null && other.getPageNumber().equals(this.getPageNumber()) == false)
return false;
if (other.getPageTypes() == null ^ this.getPageTypes() == null)
return false;
if (other.getPageTypes() != null && other.getPageTypes().equals(this.getPageTypes()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getPageNumber() == null) ? 0 : getPageNumber().hashCode());
hashCode = prime * hashCode + ((getPageTypes() == null) ? 0 : getPageTypes().hashCode());
return hashCode;
}
@Override
public TeletextDestinationSettings clone() {
try {
return (TeletextDestinationSettings) 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.TeletextDestinationSettingsMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}