(ingestEndpoints);
}
/**
* A list of endpoints to which the source stream should be sent.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setIngestEndpoints(java.util.Collection)} or {@link #withIngestEndpoints(java.util.Collection)} if you
* want to override the existing values.
*
*
* @param ingestEndpoints
* A list of endpoints to which the source stream should be sent.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public HlsIngest withIngestEndpoints(IngestEndpoint... ingestEndpoints) {
if (this.ingestEndpoints == null) {
setIngestEndpoints(new java.util.ArrayList(ingestEndpoints.length));
}
for (IngestEndpoint ele : ingestEndpoints) {
this.ingestEndpoints.add(ele);
}
return this;
}
/**
* A list of endpoints to which the source stream should be sent.
*
* @param ingestEndpoints
* A list of endpoints to which the source stream should be sent.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public HlsIngest withIngestEndpoints(java.util.Collection ingestEndpoints) {
setIngestEndpoints(ingestEndpoints);
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 (getIngestEndpoints() != null)
sb.append("IngestEndpoints: ").append(getIngestEndpoints());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof HlsIngest == false)
return false;
HlsIngest other = (HlsIngest) obj;
if (other.getIngestEndpoints() == null ^ this.getIngestEndpoints() == null)
return false;
if (other.getIngestEndpoints() != null && other.getIngestEndpoints().equals(this.getIngestEndpoints()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getIngestEndpoints() == null) ? 0 : getIngestEndpoints().hashCode());
return hashCode;
}
@Override
public HlsIngest clone() {
try {
return (HlsIngest) 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.HlsIngestMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}