(pipelineDetails);
}
/**
* Contains information about the current sources for the specified program in the specified multiplex. Keep in mind
* that each multiplex pipeline connects to both pipelines in a given source channel (the channel identified by the
* program). But only one of those channel pipelines is ever active at one time.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setPipelineDetails(java.util.Collection)} or {@link #withPipelineDetails(java.util.Collection)} if you
* want to override the existing values.
*
*
* @param pipelineDetails
* Contains information about the current sources for the specified program in the specified multiplex. Keep
* in mind that each multiplex pipeline connects to both pipelines in a given source channel (the channel
* identified by the program). But only one of those channel pipelines is ever active at one time.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DeleteMultiplexProgramResult withPipelineDetails(MultiplexProgramPipelineDetail... pipelineDetails) {
if (this.pipelineDetails == null) {
setPipelineDetails(new java.util.ArrayList(pipelineDetails.length));
}
for (MultiplexProgramPipelineDetail ele : pipelineDetails) {
this.pipelineDetails.add(ele);
}
return this;
}
/**
* Contains information about the current sources for the specified program in the specified multiplex. Keep in mind
* that each multiplex pipeline connects to both pipelines in a given source channel (the channel identified by the
* program). But only one of those channel pipelines is ever active at one time.
*
* @param pipelineDetails
* Contains information about the current sources for the specified program in the specified multiplex. Keep
* in mind that each multiplex pipeline connects to both pipelines in a given source channel (the channel
* identified by the program). But only one of those channel pipelines is ever active at one time.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DeleteMultiplexProgramResult withPipelineDetails(java.util.Collection pipelineDetails) {
setPipelineDetails(pipelineDetails);
return this;
}
/**
* The name of the multiplex program.
*
* @param programName
* The name of the multiplex program.
*/
public void setProgramName(String programName) {
this.programName = programName;
}
/**
* The name of the multiplex program.
*
* @return The name of the multiplex program.
*/
public String getProgramName() {
return this.programName;
}
/**
* The name of the multiplex program.
*
* @param programName
* The name of the multiplex program.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DeleteMultiplexProgramResult withProgramName(String programName) {
setProgramName(programName);
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 (getChannelId() != null)
sb.append("ChannelId: ").append(getChannelId()).append(",");
if (getMultiplexProgramSettings() != null)
sb.append("MultiplexProgramSettings: ").append(getMultiplexProgramSettings()).append(",");
if (getPacketIdentifiersMap() != null)
sb.append("PacketIdentifiersMap: ").append(getPacketIdentifiersMap()).append(",");
if (getPipelineDetails() != null)
sb.append("PipelineDetails: ").append(getPipelineDetails()).append(",");
if (getProgramName() != null)
sb.append("ProgramName: ").append(getProgramName());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DeleteMultiplexProgramResult == false)
return false;
DeleteMultiplexProgramResult other = (DeleteMultiplexProgramResult) obj;
if (other.getChannelId() == null ^ this.getChannelId() == null)
return false;
if (other.getChannelId() != null && other.getChannelId().equals(this.getChannelId()) == false)
return false;
if (other.getMultiplexProgramSettings() == null ^ this.getMultiplexProgramSettings() == null)
return false;
if (other.getMultiplexProgramSettings() != null && other.getMultiplexProgramSettings().equals(this.getMultiplexProgramSettings()) == false)
return false;
if (other.getPacketIdentifiersMap() == null ^ this.getPacketIdentifiersMap() == null)
return false;
if (other.getPacketIdentifiersMap() != null && other.getPacketIdentifiersMap().equals(this.getPacketIdentifiersMap()) == false)
return false;
if (other.getPipelineDetails() == null ^ this.getPipelineDetails() == null)
return false;
if (other.getPipelineDetails() != null && other.getPipelineDetails().equals(this.getPipelineDetails()) == false)
return false;
if (other.getProgramName() == null ^ this.getProgramName() == null)
return false;
if (other.getProgramName() != null && other.getProgramName().equals(this.getProgramName()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getChannelId() == null) ? 0 : getChannelId().hashCode());
hashCode = prime * hashCode + ((getMultiplexProgramSettings() == null) ? 0 : getMultiplexProgramSettings().hashCode());
hashCode = prime * hashCode + ((getPacketIdentifiersMap() == null) ? 0 : getPacketIdentifiersMap().hashCode());
hashCode = prime * hashCode + ((getPipelineDetails() == null) ? 0 : getPipelineDetails().hashCode());
hashCode = prime * hashCode + ((getProgramName() == null) ? 0 : getProgramName().hashCode());
return hashCode;
}
@Override
public DeleteMultiplexProgramResult clone() {
try {
return (DeleteMultiplexProgramResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}