All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.mediapackage.model.HlsManifest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Elemental MediaPackage module holds the client classes that are used for communicating with AWS Elemental MediaPackage Service

The newest version!
/*
 * Copyright 2019-2024 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.mediapackage.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * A HTTP Live Streaming (HLS) manifest configuration.
 * 
 * @see AWS API
 *      Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class HlsManifest implements Serializable, Cloneable, StructuredPojo {

    /**
     * This setting controls how ad markers are included in the packaged OriginEndpoint. "NONE" will omit all SCTE-35 ad
     * markers from the output. "PASSTHROUGH" causes the manifest to contain a copy of the SCTE-35 ad markers (comments)
     * taken directly from the input HTTP Live Streaming (HLS) manifest. "SCTE35_ENHANCED" generates ad markers and
     * blackout tags based on SCTE-35 messages in the input source. "DATERANGE" inserts EXT-X-DATERANGE tags to signal
     * ad and program transition events in HLS and CMAF manifests. For this option, you must set a
     * programDateTimeIntervalSeconds value that is greater than 0.
     */
    private String adMarkers;
    /**
     * The ID of the manifest. The ID must be unique within the OriginEndpoint and it cannot be changed after it is
     * created.
     */
    private String id;
    /** When enabled, an I-Frame only stream will be included in the output. */
    private Boolean includeIframeOnlyStream;
    /**
     * An optional short string appended to the end of the OriginEndpoint URL. If not specified, defaults to the
     * manifestName for the OriginEndpoint.
     */
    private String manifestName;
    /**
     * 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.
     */
    private String playlistType;
    /** Time window (in seconds) contained in each parent manifest. */
    private Integer playlistWindowSeconds;
    /**
     * 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.
     */
    private Integer programDateTimeIntervalSeconds;
    /** The URL of the packaged OriginEndpoint for consumption. */
    private String url;

    private java.util.List adTriggers;

    private String adsOnDeliveryRestrictions;

    /**
     * This setting controls how ad markers are included in the packaged OriginEndpoint. "NONE" will omit all SCTE-35 ad
     * markers from the output. "PASSTHROUGH" causes the manifest to contain a copy of the SCTE-35 ad markers (comments)
     * taken directly from the input HTTP Live Streaming (HLS) manifest. "SCTE35_ENHANCED" generates ad markers and
     * blackout tags based on SCTE-35 messages in the input source. "DATERANGE" inserts EXT-X-DATERANGE tags to signal
     * ad and program transition events in HLS and CMAF manifests. For this option, you must set a
     * programDateTimeIntervalSeconds value that is greater than 0.
     * 
     * @param adMarkers
     *        This setting controls how ad markers are included in the packaged OriginEndpoint. "NONE" will omit all
     *        SCTE-35 ad markers from the output. "PASSTHROUGH" causes the manifest to contain a copy of the SCTE-35 ad
     *        markers (comments) taken directly from the input HTTP Live Streaming (HLS) manifest. "SCTE35_ENHANCED"
     *        generates ad markers and blackout tags based on SCTE-35 messages in the input source. "DATERANGE" inserts
     *        EXT-X-DATERANGE tags to signal ad and program transition events in HLS and CMAF manifests. For this
     *        option, you must set a programDateTimeIntervalSeconds value that is greater than 0.
     * @see AdMarkers
     */

    public void setAdMarkers(String adMarkers) {
        this.adMarkers = adMarkers;
    }

    /**
     * This setting controls how ad markers are included in the packaged OriginEndpoint. "NONE" will omit all SCTE-35 ad
     * markers from the output. "PASSTHROUGH" causes the manifest to contain a copy of the SCTE-35 ad markers (comments)
     * taken directly from the input HTTP Live Streaming (HLS) manifest. "SCTE35_ENHANCED" generates ad markers and
     * blackout tags based on SCTE-35 messages in the input source. "DATERANGE" inserts EXT-X-DATERANGE tags to signal
     * ad and program transition events in HLS and CMAF manifests. For this option, you must set a
     * programDateTimeIntervalSeconds value that is greater than 0.
     * 
     * @return This setting controls how ad markers are included in the packaged OriginEndpoint. "NONE" will omit all
     *         SCTE-35 ad markers from the output. "PASSTHROUGH" causes the manifest to contain a copy of the SCTE-35 ad
     *         markers (comments) taken directly from the input HTTP Live Streaming (HLS) manifest. "SCTE35_ENHANCED"
     *         generates ad markers and blackout tags based on SCTE-35 messages in the input source. "DATERANGE" inserts
     *         EXT-X-DATERANGE tags to signal ad and program transition events in HLS and CMAF manifests. For this
     *         option, you must set a programDateTimeIntervalSeconds value that is greater than 0.
     * @see AdMarkers
     */

    public String getAdMarkers() {
        return this.adMarkers;
    }

    /**
     * This setting controls how ad markers are included in the packaged OriginEndpoint. "NONE" will omit all SCTE-35 ad
     * markers from the output. "PASSTHROUGH" causes the manifest to contain a copy of the SCTE-35 ad markers (comments)
     * taken directly from the input HTTP Live Streaming (HLS) manifest. "SCTE35_ENHANCED" generates ad markers and
     * blackout tags based on SCTE-35 messages in the input source. "DATERANGE" inserts EXT-X-DATERANGE tags to signal
     * ad and program transition events in HLS and CMAF manifests. For this option, you must set a
     * programDateTimeIntervalSeconds value that is greater than 0.
     * 
     * @param adMarkers
     *        This setting controls how ad markers are included in the packaged OriginEndpoint. "NONE" will omit all
     *        SCTE-35 ad markers from the output. "PASSTHROUGH" causes the manifest to contain a copy of the SCTE-35 ad
     *        markers (comments) taken directly from the input HTTP Live Streaming (HLS) manifest. "SCTE35_ENHANCED"
     *        generates ad markers and blackout tags based on SCTE-35 messages in the input source. "DATERANGE" inserts
     *        EXT-X-DATERANGE tags to signal ad and program transition events in HLS and CMAF manifests. For this
     *        option, you must set a programDateTimeIntervalSeconds value that is greater than 0.
     * @return Returns a reference to this object so that method calls can be chained together.
     * @see AdMarkers
     */

    public HlsManifest withAdMarkers(String adMarkers) {
        setAdMarkers(adMarkers);
        return this;
    }

    /**
     * This setting controls how ad markers are included in the packaged OriginEndpoint. "NONE" will omit all SCTE-35 ad
     * markers from the output. "PASSTHROUGH" causes the manifest to contain a copy of the SCTE-35 ad markers (comments)
     * taken directly from the input HTTP Live Streaming (HLS) manifest. "SCTE35_ENHANCED" generates ad markers and
     * blackout tags based on SCTE-35 messages in the input source. "DATERANGE" inserts EXT-X-DATERANGE tags to signal
     * ad and program transition events in HLS and CMAF manifests. For this option, you must set a
     * programDateTimeIntervalSeconds value that is greater than 0.
     * 
     * @param adMarkers
     *        This setting controls how ad markers are included in the packaged OriginEndpoint. "NONE" will omit all
     *        SCTE-35 ad markers from the output. "PASSTHROUGH" causes the manifest to contain a copy of the SCTE-35 ad
     *        markers (comments) taken directly from the input HTTP Live Streaming (HLS) manifest. "SCTE35_ENHANCED"
     *        generates ad markers and blackout tags based on SCTE-35 messages in the input source. "DATERANGE" inserts
     *        EXT-X-DATERANGE tags to signal ad and program transition events in HLS and CMAF manifests. For this
     *        option, you must set a programDateTimeIntervalSeconds value that is greater than 0.
     * @return Returns a reference to this object so that method calls can be chained together.
     * @see AdMarkers
     */

    public HlsManifest withAdMarkers(AdMarkers adMarkers) {
        this.adMarkers = adMarkers.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 HlsManifest 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 HlsManifest 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 HlsManifest 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 HlsManifest 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 HlsManifest 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 HlsManifest 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 HlsManifest withProgramDateTimeIntervalSeconds(Integer programDateTimeIntervalSeconds) {
        setProgramDateTimeIntervalSeconds(programDateTimeIntervalSeconds);
        return this;
    }

    /**
     * The URL of the packaged OriginEndpoint for consumption.
     * 
     * @param url
     *        The URL of the packaged OriginEndpoint for consumption.
     */

    public void setUrl(String url) {
        this.url = url;
    }

    /**
     * The URL of the packaged OriginEndpoint for consumption.
     * 
     * @return The URL of the packaged OriginEndpoint for consumption.
     */

    public String getUrl() {
        return this.url;
    }

    /**
     * The URL of the packaged OriginEndpoint for consumption.
     * 
     * @param url
     *        The URL of the packaged OriginEndpoint for consumption.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public HlsManifest withUrl(String url) {
        setUrl(url);
        return this;
    }

    /**
     * @return
     * @see AdTriggersElement
     */

    public java.util.List getAdTriggers() {
        return adTriggers;
    }

    /**
     * @param adTriggers
     * @see AdTriggersElement
     */

    public void setAdTriggers(java.util.Collection adTriggers) {
        if (adTriggers == null) {
            this.adTriggers = null;
            return;
        }

        this.adTriggers = new java.util.ArrayList(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 HlsManifest 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 HlsManifest 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 HlsManifest 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 HlsManifest 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 HlsManifest withAdsOnDeliveryRestrictions(AdsOnDeliveryRestrictions adsOnDeliveryRestrictions) { this.adsOnDeliveryRestrictions = adsOnDeliveryRestrictions.toString(); 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 (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()).append(","); if (getUrl() != null) sb.append("Url: ").append(getUrl()).append(","); if (getAdTriggers() != null) sb.append("AdTriggers: ").append(getAdTriggers()).append(","); if (getAdsOnDeliveryRestrictions() != null) sb.append("AdsOnDeliveryRestrictions: ").append(getAdsOnDeliveryRestrictions()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof HlsManifest == false) return false; HlsManifest other = (HlsManifest) obj; if (other.getAdMarkers() == null ^ this.getAdMarkers() == null) return false; if (other.getAdMarkers() != null && other.getAdMarkers().equals(this.getAdMarkers()) == 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; if (other.getUrl() == null ^ this.getUrl() == null) return false; if (other.getUrl() != null && other.getUrl().equals(this.getUrl()) == 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; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAdMarkers() == null) ? 0 : getAdMarkers().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()); hashCode = prime * hashCode + ((getUrl() == null) ? 0 : getUrl().hashCode()); hashCode = prime * hashCode + ((getAdTriggers() == null) ? 0 : getAdTriggers().hashCode()); hashCode = prime * hashCode + ((getAdsOnDeliveryRestrictions() == null) ? 0 : getAdsOnDeliveryRestrictions().hashCode()); return hashCode; } @Override public HlsManifest clone() { try { return (HlsManifest) 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.HlsManifestMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy