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

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

Go to download

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

There is a newer version: 1.12.772
Show 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.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 UpdateLiveSourceRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* A list of HTTP package configurations for the live source on this account. *

*/ private java.util.List httpPackageConfigurations; /** *

* The name of the live source. *

*/ private String liveSourceName; /** *

* The name of the source location associated with this Live Source. *

*/ private String sourceLocationName; /** *

* A list of HTTP package configurations for the live source on this account. *

* * @return A list of HTTP package configurations for the live source on this account. */ public java.util.List getHttpPackageConfigurations() { return httpPackageConfigurations; } /** *

* A list of HTTP package configurations for the live source on this account. *

* * @param httpPackageConfigurations * A list of HTTP package configurations for the live source on this account. */ public void setHttpPackageConfigurations(java.util.Collection httpPackageConfigurations) { if (httpPackageConfigurations == null) { this.httpPackageConfigurations = null; return; } this.httpPackageConfigurations = new java.util.ArrayList(httpPackageConfigurations); } /** *

* A list of HTTP package configurations for the live source on this account. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setHttpPackageConfigurations(java.util.Collection)} or * {@link #withHttpPackageConfigurations(java.util.Collection)} if you want to override the existing values. *

* * @param httpPackageConfigurations * A list of HTTP package configurations for the live source on this account. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateLiveSourceRequest withHttpPackageConfigurations(HttpPackageConfiguration... httpPackageConfigurations) { if (this.httpPackageConfigurations == null) { setHttpPackageConfigurations(new java.util.ArrayList(httpPackageConfigurations.length)); } for (HttpPackageConfiguration ele : httpPackageConfigurations) { this.httpPackageConfigurations.add(ele); } return this; } /** *

* A list of HTTP package configurations for the live source on this account. *

* * @param httpPackageConfigurations * A list of HTTP package configurations for the live source on this account. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateLiveSourceRequest withHttpPackageConfigurations(java.util.Collection httpPackageConfigurations) { setHttpPackageConfigurations(httpPackageConfigurations); return this; } /** *

* The name of the live source. *

* * @param liveSourceName * The name of the live source. */ public void setLiveSourceName(String liveSourceName) { this.liveSourceName = liveSourceName; } /** *

* The name of the live source. *

* * @return The name of the live source. */ public String getLiveSourceName() { return this.liveSourceName; } /** *

* The name of the live source. *

* * @param liveSourceName * The name of the live source. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateLiveSourceRequest withLiveSourceName(String liveSourceName) { setLiveSourceName(liveSourceName); return this; } /** *

* The name of the source location associated with this Live Source. *

* * @param sourceLocationName * The name of the source location associated with this Live Source. */ public void setSourceLocationName(String sourceLocationName) { this.sourceLocationName = sourceLocationName; } /** *

* The name of the source location associated with this Live Source. *

* * @return The name of the source location associated with this Live Source. */ public String getSourceLocationName() { return this.sourceLocationName; } /** *

* The name of the source location associated with this Live Source. *

* * @param sourceLocationName * The name of the source location associated with this Live Source. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateLiveSourceRequest withSourceLocationName(String sourceLocationName) { setSourceLocationName(sourceLocationName); 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 (getHttpPackageConfigurations() != null) sb.append("HttpPackageConfigurations: ").append(getHttpPackageConfigurations()).append(","); if (getLiveSourceName() != null) sb.append("LiveSourceName: ").append(getLiveSourceName()).append(","); if (getSourceLocationName() != null) sb.append("SourceLocationName: ").append(getSourceLocationName()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateLiveSourceRequest == false) return false; UpdateLiveSourceRequest other = (UpdateLiveSourceRequest) obj; if (other.getHttpPackageConfigurations() == null ^ this.getHttpPackageConfigurations() == null) return false; if (other.getHttpPackageConfigurations() != null && other.getHttpPackageConfigurations().equals(this.getHttpPackageConfigurations()) == false) return false; if (other.getLiveSourceName() == null ^ this.getLiveSourceName() == null) return false; if (other.getLiveSourceName() != null && other.getLiveSourceName().equals(this.getLiveSourceName()) == false) return false; if (other.getSourceLocationName() == null ^ this.getSourceLocationName() == null) return false; if (other.getSourceLocationName() != null && other.getSourceLocationName().equals(this.getSourceLocationName()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getHttpPackageConfigurations() == null) ? 0 : getHttpPackageConfigurations().hashCode()); hashCode = prime * hashCode + ((getLiveSourceName() == null) ? 0 : getLiveSourceName().hashCode()); hashCode = prime * hashCode + ((getSourceLocationName() == null) ? 0 : getSourceLocationName().hashCode()); return hashCode; } @Override public UpdateLiveSourceRequest clone() { return (UpdateLiveSourceRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy