(multiplexIds);
}
/**
* List of multiplex IDs
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setMultiplexIds(java.util.Collection)} or {@link #withMultiplexIds(java.util.Collection)} if you want to
* override the existing values.
*
*
* @param multiplexIds
* List of multiplex IDs
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BatchStopRequest withMultiplexIds(String... multiplexIds) {
if (this.multiplexIds == null) {
setMultiplexIds(new java.util.ArrayList(multiplexIds.length));
}
for (String ele : multiplexIds) {
this.multiplexIds.add(ele);
}
return this;
}
/**
* List of multiplex IDs
*
* @param multiplexIds
* List of multiplex IDs
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BatchStopRequest withMultiplexIds(java.util.Collection multiplexIds) {
setMultiplexIds(multiplexIds);
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 (getChannelIds() != null)
sb.append("ChannelIds: ").append(getChannelIds()).append(",");
if (getMultiplexIds() != null)
sb.append("MultiplexIds: ").append(getMultiplexIds());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof BatchStopRequest == false)
return false;
BatchStopRequest other = (BatchStopRequest) obj;
if (other.getChannelIds() == null ^ this.getChannelIds() == null)
return false;
if (other.getChannelIds() != null && other.getChannelIds().equals(this.getChannelIds()) == false)
return false;
if (other.getMultiplexIds() == null ^ this.getMultiplexIds() == null)
return false;
if (other.getMultiplexIds() != null && other.getMultiplexIds().equals(this.getMultiplexIds()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getChannelIds() == null) ? 0 : getChannelIds().hashCode());
hashCode = prime * hashCode + ((getMultiplexIds() == null) ? 0 : getMultiplexIds().hashCode());
return hashCode;
}
@Override
public BatchStopRequest clone() {
return (BatchStopRequest) super.clone();
}
}