(adTriggers);
}
/**
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setAdTriggers(java.util.Collection)} or {@link #withAdTriggers(java.util.Collection)} if you want to
* override the existing values.
*
*
* @param adTriggers
* @return Returns a reference to this object so that method calls can be chained together.
* @see AdTriggersElement
*/
public HlsManifestCreateOrUpdateParameters withAdTriggers(String... adTriggers) {
if (this.adTriggers == null) {
setAdTriggers(new java.util.ArrayList(adTriggers.length));
}
for (String ele : adTriggers) {
this.adTriggers.add(ele);
}
return this;
}
/**
* @param adTriggers
* @return Returns a reference to this object so that method calls can be chained together.
* @see AdTriggersElement
*/
public HlsManifestCreateOrUpdateParameters withAdTriggers(java.util.Collection adTriggers) {
setAdTriggers(adTriggers);
return this;
}
/**
* @param adTriggers
* @return Returns a reference to this object so that method calls can be chained together.
* @see AdTriggersElement
*/
public HlsManifestCreateOrUpdateParameters withAdTriggers(AdTriggersElement... adTriggers) {
java.util.ArrayList adTriggersCopy = new java.util.ArrayList(adTriggers.length);
for (AdTriggersElement value : adTriggers) {
adTriggersCopy.add(value.toString());
}
if (getAdTriggers() == null) {
setAdTriggers(adTriggersCopy);
} else {
getAdTriggers().addAll(adTriggersCopy);
}
return this;
}
/**
* @param adsOnDeliveryRestrictions
* @see AdsOnDeliveryRestrictions
*/
public void setAdsOnDeliveryRestrictions(String adsOnDeliveryRestrictions) {
this.adsOnDeliveryRestrictions = adsOnDeliveryRestrictions;
}
/**
* @return
* @see AdsOnDeliveryRestrictions
*/
public String getAdsOnDeliveryRestrictions() {
return this.adsOnDeliveryRestrictions;
}
/**
* @param adsOnDeliveryRestrictions
* @return Returns a reference to this object so that method calls can be chained together.
* @see AdsOnDeliveryRestrictions
*/
public HlsManifestCreateOrUpdateParameters withAdsOnDeliveryRestrictions(String adsOnDeliveryRestrictions) {
setAdsOnDeliveryRestrictions(adsOnDeliveryRestrictions);
return this;
}
/**
* @param adsOnDeliveryRestrictions
* @return Returns a reference to this object so that method calls can be chained together.
* @see AdsOnDeliveryRestrictions
*/
public HlsManifestCreateOrUpdateParameters withAdsOnDeliveryRestrictions(AdsOnDeliveryRestrictions adsOnDeliveryRestrictions) {
this.adsOnDeliveryRestrictions = adsOnDeliveryRestrictions.toString();
return this;
}
/**
* The ID of the manifest. The ID must be unique within the OriginEndpoint and it cannot be changed after it is
* created.
*
* @param id
* The ID of the manifest. The ID must be unique within the OriginEndpoint and it cannot be changed after it
* is created.
*/
public void setId(String id) {
this.id = id;
}
/**
* The ID of the manifest. The ID must be unique within the OriginEndpoint and it cannot be changed after it is
* created.
*
* @return The ID of the manifest. The ID must be unique within the OriginEndpoint and it cannot be changed after it
* is created.
*/
public String getId() {
return this.id;
}
/**
* The ID of the manifest. The ID must be unique within the OriginEndpoint and it cannot be changed after it is
* created.
*
* @param id
* The ID of the manifest. The ID must be unique within the OriginEndpoint and it cannot be changed after it
* is created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public HlsManifestCreateOrUpdateParameters withId(String id) {
setId(id);
return this;
}
/**
* When enabled, an I-Frame only stream will be included in the output.
*
* @param includeIframeOnlyStream
* When enabled, an I-Frame only stream will be included in the output.
*/
public void setIncludeIframeOnlyStream(Boolean includeIframeOnlyStream) {
this.includeIframeOnlyStream = includeIframeOnlyStream;
}
/**
* When enabled, an I-Frame only stream will be included in the output.
*
* @return When enabled, an I-Frame only stream will be included in the output.
*/
public Boolean getIncludeIframeOnlyStream() {
return this.includeIframeOnlyStream;
}
/**
* When enabled, an I-Frame only stream will be included in the output.
*
* @param includeIframeOnlyStream
* When enabled, an I-Frame only stream will be included in the output.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public HlsManifestCreateOrUpdateParameters withIncludeIframeOnlyStream(Boolean includeIframeOnlyStream) {
setIncludeIframeOnlyStream(includeIframeOnlyStream);
return this;
}
/**
* When enabled, an I-Frame only stream will be included in the output.
*
* @return When enabled, an I-Frame only stream will be included in the output.
*/
public Boolean isIncludeIframeOnlyStream() {
return this.includeIframeOnlyStream;
}
/**
* An optional short string appended to the end of the OriginEndpoint URL. If not specified, defaults to the
* manifestName for the OriginEndpoint.
*
* @param manifestName
* An optional short string appended to the end of the OriginEndpoint URL. If not specified, defaults to the
* manifestName for the OriginEndpoint.
*/
public void setManifestName(String manifestName) {
this.manifestName = manifestName;
}
/**
* An optional short string appended to the end of the OriginEndpoint URL. If not specified, defaults to the
* manifestName for the OriginEndpoint.
*
* @return An optional short string appended to the end of the OriginEndpoint URL. If not specified, defaults to the
* manifestName for the OriginEndpoint.
*/
public String getManifestName() {
return this.manifestName;
}
/**
* An optional short string appended to the end of the OriginEndpoint URL. If not specified, defaults to the
* manifestName for the OriginEndpoint.
*
* @param manifestName
* An optional short string appended to the end of the OriginEndpoint URL. If not specified, defaults to the
* manifestName for the OriginEndpoint.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public HlsManifestCreateOrUpdateParameters withManifestName(String manifestName) {
setManifestName(manifestName);
return this;
}
/**
* The HTTP Live Streaming (HLS) playlist type. When either "EVENT" or "VOD" is specified, a corresponding
* EXT-X-PLAYLIST-TYPE entry will be included in the media playlist.
*
* @param playlistType
* The HTTP Live Streaming (HLS) playlist type. When either "EVENT" or "VOD" is specified, a corresponding
* EXT-X-PLAYLIST-TYPE entry will be included in the media playlist.
* @see PlaylistType
*/
public void setPlaylistType(String playlistType) {
this.playlistType = playlistType;
}
/**
* The HTTP Live Streaming (HLS) playlist type. When either "EVENT" or "VOD" is specified, a corresponding
* EXT-X-PLAYLIST-TYPE entry will be included in the media playlist.
*
* @return The HTTP Live Streaming (HLS) playlist type. When either "EVENT" or "VOD" is specified, a corresponding
* EXT-X-PLAYLIST-TYPE entry will be included in the media playlist.
* @see PlaylistType
*/
public String getPlaylistType() {
return this.playlistType;
}
/**
* The HTTP Live Streaming (HLS) playlist type. When either "EVENT" or "VOD" is specified, a corresponding
* EXT-X-PLAYLIST-TYPE entry will be included in the media playlist.
*
* @param playlistType
* The HTTP Live Streaming (HLS) playlist type. When either "EVENT" or "VOD" is specified, a corresponding
* EXT-X-PLAYLIST-TYPE entry will be included in the media playlist.
* @return Returns a reference to this object so that method calls can be chained together.
* @see PlaylistType
*/
public HlsManifestCreateOrUpdateParameters withPlaylistType(String playlistType) {
setPlaylistType(playlistType);
return this;
}
/**
* The HTTP Live Streaming (HLS) playlist type. When either "EVENT" or "VOD" is specified, a corresponding
* EXT-X-PLAYLIST-TYPE entry will be included in the media playlist.
*
* @param playlistType
* The HTTP Live Streaming (HLS) playlist type. When either "EVENT" or "VOD" is specified, a corresponding
* EXT-X-PLAYLIST-TYPE entry will be included in the media playlist.
* @return Returns a reference to this object so that method calls can be chained together.
* @see PlaylistType
*/
public HlsManifestCreateOrUpdateParameters withPlaylistType(PlaylistType playlistType) {
this.playlistType = playlistType.toString();
return this;
}
/**
* Time window (in seconds) contained in each parent manifest.
*
* @param playlistWindowSeconds
* Time window (in seconds) contained in each parent manifest.
*/
public void setPlaylistWindowSeconds(Integer playlistWindowSeconds) {
this.playlistWindowSeconds = playlistWindowSeconds;
}
/**
* Time window (in seconds) contained in each parent manifest.
*
* @return Time window (in seconds) contained in each parent manifest.
*/
public Integer getPlaylistWindowSeconds() {
return this.playlistWindowSeconds;
}
/**
* Time window (in seconds) contained in each parent manifest.
*
* @param playlistWindowSeconds
* Time window (in seconds) contained in each parent manifest.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public HlsManifestCreateOrUpdateParameters withPlaylistWindowSeconds(Integer playlistWindowSeconds) {
setPlaylistWindowSeconds(playlistWindowSeconds);
return this;
}
/**
* The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag inserted into manifests. Additionally, when an
* interval is specified ID3Timed Metadata messages will be generated every 5 seconds using the ingest time of the
* content. If the interval is not specified, or set to 0, then no EXT-X-PROGRAM-DATE-TIME tags will be inserted
* into manifests and no ID3Timed Metadata messages will be generated. Note that irrespective of this parameter, if
* any ID3 Timed Metadata is found in HTTP Live Streaming (HLS) input, it will be passed through to HLS output.
*
* @param programDateTimeIntervalSeconds
* The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag inserted into manifests. Additionally,
* when an interval is specified ID3Timed Metadata messages will be generated every 5 seconds using the
* ingest time of the content. If the interval is not specified, or set to 0, then no EXT-X-PROGRAM-DATE-TIME
* tags will be inserted into manifests and no ID3Timed Metadata messages will be generated. Note that
* irrespective of this parameter, if any ID3 Timed Metadata is found in HTTP Live Streaming (HLS) input, it
* will be passed through to HLS output.
*/
public void setProgramDateTimeIntervalSeconds(Integer programDateTimeIntervalSeconds) {
this.programDateTimeIntervalSeconds = programDateTimeIntervalSeconds;
}
/**
* The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag inserted into manifests. Additionally, when an
* interval is specified ID3Timed Metadata messages will be generated every 5 seconds using the ingest time of the
* content. If the interval is not specified, or set to 0, then no EXT-X-PROGRAM-DATE-TIME tags will be inserted
* into manifests and no ID3Timed Metadata messages will be generated. Note that irrespective of this parameter, if
* any ID3 Timed Metadata is found in HTTP Live Streaming (HLS) input, it will be passed through to HLS output.
*
* @return The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag inserted into manifests. Additionally,
* when an interval is specified ID3Timed Metadata messages will be generated every 5 seconds using the
* ingest time of the content. If the interval is not specified, or set to 0, then no
* EXT-X-PROGRAM-DATE-TIME tags will be inserted into manifests and no ID3Timed Metadata messages will be
* generated. Note that irrespective of this parameter, if any ID3 Timed Metadata is found in HTTP Live
* Streaming (HLS) input, it will be passed through to HLS output.
*/
public Integer getProgramDateTimeIntervalSeconds() {
return this.programDateTimeIntervalSeconds;
}
/**
* The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag inserted into manifests. Additionally, when an
* interval is specified ID3Timed Metadata messages will be generated every 5 seconds using the ingest time of the
* content. If the interval is not specified, or set to 0, then no EXT-X-PROGRAM-DATE-TIME tags will be inserted
* into manifests and no ID3Timed Metadata messages will be generated. Note that irrespective of this parameter, if
* any ID3 Timed Metadata is found in HTTP Live Streaming (HLS) input, it will be passed through to HLS output.
*
* @param programDateTimeIntervalSeconds
* The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag inserted into manifests. Additionally,
* when an interval is specified ID3Timed Metadata messages will be generated every 5 seconds using the
* ingest time of the content. If the interval is not specified, or set to 0, then no EXT-X-PROGRAM-DATE-TIME
* tags will be inserted into manifests and no ID3Timed Metadata messages will be generated. Note that
* irrespective of this parameter, if any ID3 Timed Metadata is found in HTTP Live Streaming (HLS) input, it
* will be passed through to HLS output.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public HlsManifestCreateOrUpdateParameters withProgramDateTimeIntervalSeconds(Integer programDateTimeIntervalSeconds) {
setProgramDateTimeIntervalSeconds(programDateTimeIntervalSeconds);
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 (getAdMarkers() != null)
sb.append("AdMarkers: ").append(getAdMarkers()).append(",");
if (getAdTriggers() != null)
sb.append("AdTriggers: ").append(getAdTriggers()).append(",");
if (getAdsOnDeliveryRestrictions() != null)
sb.append("AdsOnDeliveryRestrictions: ").append(getAdsOnDeliveryRestrictions()).append(",");
if (getId() != null)
sb.append("Id: ").append(getId()).append(",");
if (getIncludeIframeOnlyStream() != null)
sb.append("IncludeIframeOnlyStream: ").append(getIncludeIframeOnlyStream()).append(",");
if (getManifestName() != null)
sb.append("ManifestName: ").append(getManifestName()).append(",");
if (getPlaylistType() != null)
sb.append("PlaylistType: ").append(getPlaylistType()).append(",");
if (getPlaylistWindowSeconds() != null)
sb.append("PlaylistWindowSeconds: ").append(getPlaylistWindowSeconds()).append(",");
if (getProgramDateTimeIntervalSeconds() != null)
sb.append("ProgramDateTimeIntervalSeconds: ").append(getProgramDateTimeIntervalSeconds());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof HlsManifestCreateOrUpdateParameters == false)
return false;
HlsManifestCreateOrUpdateParameters other = (HlsManifestCreateOrUpdateParameters) obj;
if (other.getAdMarkers() == null ^ this.getAdMarkers() == null)
return false;
if (other.getAdMarkers() != null && other.getAdMarkers().equals(this.getAdMarkers()) == false)
return false;
if (other.getAdTriggers() == null ^ this.getAdTriggers() == null)
return false;
if (other.getAdTriggers() != null && other.getAdTriggers().equals(this.getAdTriggers()) == false)
return false;
if (other.getAdsOnDeliveryRestrictions() == null ^ this.getAdsOnDeliveryRestrictions() == null)
return false;
if (other.getAdsOnDeliveryRestrictions() != null && other.getAdsOnDeliveryRestrictions().equals(this.getAdsOnDeliveryRestrictions()) == false)
return false;
if (other.getId() == null ^ this.getId() == null)
return false;
if (other.getId() != null && other.getId().equals(this.getId()) == false)
return false;
if (other.getIncludeIframeOnlyStream() == null ^ this.getIncludeIframeOnlyStream() == null)
return false;
if (other.getIncludeIframeOnlyStream() != null && other.getIncludeIframeOnlyStream().equals(this.getIncludeIframeOnlyStream()) == false)
return false;
if (other.getManifestName() == null ^ this.getManifestName() == null)
return false;
if (other.getManifestName() != null && other.getManifestName().equals(this.getManifestName()) == false)
return false;
if (other.getPlaylistType() == null ^ this.getPlaylistType() == null)
return false;
if (other.getPlaylistType() != null && other.getPlaylistType().equals(this.getPlaylistType()) == false)
return false;
if (other.getPlaylistWindowSeconds() == null ^ this.getPlaylistWindowSeconds() == null)
return false;
if (other.getPlaylistWindowSeconds() != null && other.getPlaylistWindowSeconds().equals(this.getPlaylistWindowSeconds()) == false)
return false;
if (other.getProgramDateTimeIntervalSeconds() == null ^ this.getProgramDateTimeIntervalSeconds() == null)
return false;
if (other.getProgramDateTimeIntervalSeconds() != null
&& other.getProgramDateTimeIntervalSeconds().equals(this.getProgramDateTimeIntervalSeconds()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getAdMarkers() == null) ? 0 : getAdMarkers().hashCode());
hashCode = prime * hashCode + ((getAdTriggers() == null) ? 0 : getAdTriggers().hashCode());
hashCode = prime * hashCode + ((getAdsOnDeliveryRestrictions() == null) ? 0 : getAdsOnDeliveryRestrictions().hashCode());
hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode());
hashCode = prime * hashCode + ((getIncludeIframeOnlyStream() == null) ? 0 : getIncludeIframeOnlyStream().hashCode());
hashCode = prime * hashCode + ((getManifestName() == null) ? 0 : getManifestName().hashCode());
hashCode = prime * hashCode + ((getPlaylistType() == null) ? 0 : getPlaylistType().hashCode());
hashCode = prime * hashCode + ((getPlaylistWindowSeconds() == null) ? 0 : getPlaylistWindowSeconds().hashCode());
hashCode = prime * hashCode + ((getProgramDateTimeIntervalSeconds() == null) ? 0 : getProgramDateTimeIntervalSeconds().hashCode());
return hashCode;
}
@Override
public HlsManifestCreateOrUpdateParameters clone() {
try {
return (HlsManifestCreateOrUpdateParameters) 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.mediapackage.model.transform.HlsManifestCreateOrUpdateParametersMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}