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

com.amazonaws.services.mediatailor.model.PutPlaybackConfigurationRequest Maven / Gradle / Ivy

/*
 * Copyright 2013-2018 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.mediatailor.model;

import java.io.Serializable;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

/**
 * 
 * @see AWS API Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class PutPlaybackConfigurationRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The URL for the ad decision server (ADS). This includes the specification of static parameters and placeholders * for dynamic parameters. AWS Elemental MediaTailor substitutes player-specific and session-specific parameters as * needed when calling the ADS. Alternately, for testing you can provide a static VAST URL. The maximum length is * 25000 characters. *

*/ private String adDecisionServerUrl; /** *

* The configuration for using a content delivery network (CDN), like Amazon CloudFront, for content and ad segment * management. *

*/ private CdnConfiguration cdnConfiguration; /** *

* The identifier for the configuration. *

*/ private String name; /** *

* The URL for a high-quality video asset to transcode and use to fill in time that's not used by ads. AWS Elemental * MediaTailor shows the slate to fill in gaps in media content. Configuring the slate is optional for non-VPAID * configurations. For VPAID, the slate is required because AWS Elemental MediaTailor provides it in the slots that * are designated for dynamic ad content. The slate must be a high-quality asset that contains both audio and video. *

*/ private String slateAdUrl; /** *

* The URL prefix for the master playlist for the stream, minus the asset ID. The maximum length is 512 characters. *

*/ private String videoContentSourceUrl; /** *

* The URL for the ad decision server (ADS). This includes the specification of static parameters and placeholders * for dynamic parameters. AWS Elemental MediaTailor substitutes player-specific and session-specific parameters as * needed when calling the ADS. Alternately, for testing you can provide a static VAST URL. The maximum length is * 25000 characters. *

* * @param adDecisionServerUrl * The URL for the ad decision server (ADS). This includes the specification of static parameters and * placeholders for dynamic parameters. AWS Elemental MediaTailor substitutes player-specific and * session-specific parameters as needed when calling the ADS. Alternately, for testing you can provide a * static VAST URL. The maximum length is 25000 characters. */ public void setAdDecisionServerUrl(String adDecisionServerUrl) { this.adDecisionServerUrl = adDecisionServerUrl; } /** *

* The URL for the ad decision server (ADS). This includes the specification of static parameters and placeholders * for dynamic parameters. AWS Elemental MediaTailor substitutes player-specific and session-specific parameters as * needed when calling the ADS. Alternately, for testing you can provide a static VAST URL. The maximum length is * 25000 characters. *

* * @return The URL for the ad decision server (ADS). This includes the specification of static parameters and * placeholders for dynamic parameters. AWS Elemental MediaTailor substitutes player-specific and * session-specific parameters as needed when calling the ADS. Alternately, for testing you can provide a * static VAST URL. The maximum length is 25000 characters. */ public String getAdDecisionServerUrl() { return this.adDecisionServerUrl; } /** *

* The URL for the ad decision server (ADS). This includes the specification of static parameters and placeholders * for dynamic parameters. AWS Elemental MediaTailor substitutes player-specific and session-specific parameters as * needed when calling the ADS. Alternately, for testing you can provide a static VAST URL. The maximum length is * 25000 characters. *

* * @param adDecisionServerUrl * The URL for the ad decision server (ADS). This includes the specification of static parameters and * placeholders for dynamic parameters. AWS Elemental MediaTailor substitutes player-specific and * session-specific parameters as needed when calling the ADS. Alternately, for testing you can provide a * static VAST URL. The maximum length is 25000 characters. * @return Returns a reference to this object so that method calls can be chained together. */ public PutPlaybackConfigurationRequest withAdDecisionServerUrl(String adDecisionServerUrl) { setAdDecisionServerUrl(adDecisionServerUrl); return this; } /** *

* The configuration for using a content delivery network (CDN), like Amazon CloudFront, for content and ad segment * management. *

* * @param cdnConfiguration * The configuration for using a content delivery network (CDN), like Amazon CloudFront, for content and ad * segment management. */ public void setCdnConfiguration(CdnConfiguration cdnConfiguration) { this.cdnConfiguration = cdnConfiguration; } /** *

* The configuration for using a content delivery network (CDN), like Amazon CloudFront, for content and ad segment * management. *

* * @return The configuration for using a content delivery network (CDN), like Amazon CloudFront, for content and ad * segment management. */ public CdnConfiguration getCdnConfiguration() { return this.cdnConfiguration; } /** *

* The configuration for using a content delivery network (CDN), like Amazon CloudFront, for content and ad segment * management. *

* * @param cdnConfiguration * The configuration for using a content delivery network (CDN), like Amazon CloudFront, for content and ad * segment management. * @return Returns a reference to this object so that method calls can be chained together. */ public PutPlaybackConfigurationRequest withCdnConfiguration(CdnConfiguration cdnConfiguration) { setCdnConfiguration(cdnConfiguration); return this; } /** *

* The identifier for the configuration. *

* * @param name * The identifier for the configuration. */ public void setName(String name) { this.name = name; } /** *

* The identifier for the configuration. *

* * @return The identifier for the configuration. */ public String getName() { return this.name; } /** *

* The identifier for the configuration. *

* * @param name * The identifier for the configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public PutPlaybackConfigurationRequest withName(String name) { setName(name); return this; } /** *

* The URL for a high-quality video asset to transcode and use to fill in time that's not used by ads. AWS Elemental * MediaTailor shows the slate to fill in gaps in media content. Configuring the slate is optional for non-VPAID * configurations. For VPAID, the slate is required because AWS Elemental MediaTailor provides it in the slots that * are designated for dynamic ad content. The slate must be a high-quality asset that contains both audio and video. *

* * @param slateAdUrl * The URL for a high-quality video asset to transcode and use to fill in time that's not used by ads. AWS * Elemental MediaTailor shows the slate to fill in gaps in media content. Configuring the slate is optional * for non-VPAID configurations. For VPAID, the slate is required because AWS Elemental MediaTailor provides * it in the slots that are designated for dynamic ad content. The slate must be a high-quality asset that * contains both audio and video. */ public void setSlateAdUrl(String slateAdUrl) { this.slateAdUrl = slateAdUrl; } /** *

* The URL for a high-quality video asset to transcode and use to fill in time that's not used by ads. AWS Elemental * MediaTailor shows the slate to fill in gaps in media content. Configuring the slate is optional for non-VPAID * configurations. For VPAID, the slate is required because AWS Elemental MediaTailor provides it in the slots that * are designated for dynamic ad content. The slate must be a high-quality asset that contains both audio and video. *

* * @return The URL for a high-quality video asset to transcode and use to fill in time that's not used by ads. AWS * Elemental MediaTailor shows the slate to fill in gaps in media content. Configuring the slate is optional * for non-VPAID configurations. For VPAID, the slate is required because AWS Elemental MediaTailor provides * it in the slots that are designated for dynamic ad content. The slate must be a high-quality asset that * contains both audio and video. */ public String getSlateAdUrl() { return this.slateAdUrl; } /** *

* The URL for a high-quality video asset to transcode and use to fill in time that's not used by ads. AWS Elemental * MediaTailor shows the slate to fill in gaps in media content. Configuring the slate is optional for non-VPAID * configurations. For VPAID, the slate is required because AWS Elemental MediaTailor provides it in the slots that * are designated for dynamic ad content. The slate must be a high-quality asset that contains both audio and video. *

* * @param slateAdUrl * The URL for a high-quality video asset to transcode and use to fill in time that's not used by ads. AWS * Elemental MediaTailor shows the slate to fill in gaps in media content. Configuring the slate is optional * for non-VPAID configurations. For VPAID, the slate is required because AWS Elemental MediaTailor provides * it in the slots that are designated for dynamic ad content. The slate must be a high-quality asset that * contains both audio and video. * @return Returns a reference to this object so that method calls can be chained together. */ public PutPlaybackConfigurationRequest withSlateAdUrl(String slateAdUrl) { setSlateAdUrl(slateAdUrl); return this; } /** *

* The URL prefix for the master playlist for the stream, minus the asset ID. The maximum length is 512 characters. *

* * @param videoContentSourceUrl * The URL prefix for the master playlist for the stream, minus the asset ID. The maximum length is 512 * characters. */ public void setVideoContentSourceUrl(String videoContentSourceUrl) { this.videoContentSourceUrl = videoContentSourceUrl; } /** *

* The URL prefix for the master playlist for the stream, minus the asset ID. The maximum length is 512 characters. *

* * @return The URL prefix for the master playlist for the stream, minus the asset ID. The maximum length is 512 * characters. */ public String getVideoContentSourceUrl() { return this.videoContentSourceUrl; } /** *

* The URL prefix for the master playlist for the stream, minus the asset ID. The maximum length is 512 characters. *

* * @param videoContentSourceUrl * The URL prefix for the master playlist for the stream, minus the asset ID. The maximum length is 512 * characters. * @return Returns a reference to this object so that method calls can be chained together. */ public PutPlaybackConfigurationRequest withVideoContentSourceUrl(String videoContentSourceUrl) { setVideoContentSourceUrl(videoContentSourceUrl); return this; } /** * Returns a string representation of this object; useful for testing and debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getAdDecisionServerUrl() != null) sb.append("AdDecisionServerUrl: ").append(getAdDecisionServerUrl()).append(","); if (getCdnConfiguration() != null) sb.append("CdnConfiguration: ").append(getCdnConfiguration()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getSlateAdUrl() != null) sb.append("SlateAdUrl: ").append(getSlateAdUrl()).append(","); if (getVideoContentSourceUrl() != null) sb.append("VideoContentSourceUrl: ").append(getVideoContentSourceUrl()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof PutPlaybackConfigurationRequest == false) return false; PutPlaybackConfigurationRequest other = (PutPlaybackConfigurationRequest) obj; if (other.getAdDecisionServerUrl() == null ^ this.getAdDecisionServerUrl() == null) return false; if (other.getAdDecisionServerUrl() != null && other.getAdDecisionServerUrl().equals(this.getAdDecisionServerUrl()) == false) return false; if (other.getCdnConfiguration() == null ^ this.getCdnConfiguration() == null) return false; if (other.getCdnConfiguration() != null && other.getCdnConfiguration().equals(this.getCdnConfiguration()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getSlateAdUrl() == null ^ this.getSlateAdUrl() == null) return false; if (other.getSlateAdUrl() != null && other.getSlateAdUrl().equals(this.getSlateAdUrl()) == false) return false; if (other.getVideoContentSourceUrl() == null ^ this.getVideoContentSourceUrl() == null) return false; if (other.getVideoContentSourceUrl() != null && other.getVideoContentSourceUrl().equals(this.getVideoContentSourceUrl()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAdDecisionServerUrl() == null) ? 0 : getAdDecisionServerUrl().hashCode()); hashCode = prime * hashCode + ((getCdnConfiguration() == null) ? 0 : getCdnConfiguration().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getSlateAdUrl() == null) ? 0 : getSlateAdUrl().hashCode()); hashCode = prime * hashCode + ((getVideoContentSourceUrl() == null) ? 0 : getVideoContentSourceUrl().hashCode()); return hashCode; } @Override public PutPlaybackConfigurationRequest clone() { return (PutPlaybackConfigurationRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy