(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);
}
}