(inputSecurityGroupIds);
}
/**
* List of input security group IDs
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setInputSecurityGroupIds(java.util.Collection)} or
* {@link #withInputSecurityGroupIds(java.util.Collection)} if you want to override the existing values.
*
*
* @param inputSecurityGroupIds
* List of input security group IDs
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BatchDeleteRequest withInputSecurityGroupIds(String... inputSecurityGroupIds) {
if (this.inputSecurityGroupIds == null) {
setInputSecurityGroupIds(new java.util.ArrayList(inputSecurityGroupIds.length));
}
for (String ele : inputSecurityGroupIds) {
this.inputSecurityGroupIds.add(ele);
}
return this;
}
/**
* List of input security group IDs
*
* @param inputSecurityGroupIds
* List of input security group IDs
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BatchDeleteRequest withInputSecurityGroupIds(java.util.Collection inputSecurityGroupIds) {
setInputSecurityGroupIds(inputSecurityGroupIds);
return this;
}
/**
* List of multiplex IDs
*
* @return List of multiplex IDs
*/
public java.util.List getMultiplexIds() {
return multiplexIds;
}
/**
* List of multiplex IDs
*
* @param multiplexIds
* List of multiplex IDs
*/
public void setMultiplexIds(java.util.Collection multiplexIds) {
if (multiplexIds == null) {
this.multiplexIds = null;
return;
}
this.multiplexIds = new java.util.ArrayList(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 BatchDeleteRequest 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 BatchDeleteRequest 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 (getInputIds() != null)
sb.append("InputIds: ").append(getInputIds()).append(",");
if (getInputSecurityGroupIds() != null)
sb.append("InputSecurityGroupIds: ").append(getInputSecurityGroupIds()).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 BatchDeleteRequest == false)
return false;
BatchDeleteRequest other = (BatchDeleteRequest) obj;
if (other.getChannelIds() == null ^ this.getChannelIds() == null)
return false;
if (other.getChannelIds() != null && other.getChannelIds().equals(this.getChannelIds()) == false)
return false;
if (other.getInputIds() == null ^ this.getInputIds() == null)
return false;
if (other.getInputIds() != null && other.getInputIds().equals(this.getInputIds()) == false)
return false;
if (other.getInputSecurityGroupIds() == null ^ this.getInputSecurityGroupIds() == null)
return false;
if (other.getInputSecurityGroupIds() != null && other.getInputSecurityGroupIds().equals(this.getInputSecurityGroupIds()) == 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 + ((getInputIds() == null) ? 0 : getInputIds().hashCode());
hashCode = prime * hashCode + ((getInputSecurityGroupIds() == null) ? 0 : getInputSecurityGroupIds().hashCode());
hashCode = prime * hashCode + ((getMultiplexIds() == null) ? 0 : getMultiplexIds().hashCode());
return hashCode;
}
@Override
public BatchDeleteRequest clone() {
return (BatchDeleteRequest) super.clone();
}
}