(vpcInterfaces);
}
/**
* The VPC interfaces you want on the flow.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setVpcInterfaces(java.util.Collection)} or {@link #withVpcInterfaces(java.util.Collection)} if you want
* to override the existing values.
*
*
* @param vpcInterfaces
* The VPC interfaces you want on the flow.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateFlowRequest withVpcInterfaces(VpcInterfaceRequest... vpcInterfaces) {
if (this.vpcInterfaces == null) {
setVpcInterfaces(new java.util.ArrayList(vpcInterfaces.length));
}
for (VpcInterfaceRequest ele : vpcInterfaces) {
this.vpcInterfaces.add(ele);
}
return this;
}
/**
* The VPC interfaces you want on the flow.
*
* @param vpcInterfaces
* The VPC interfaces you want on the flow.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateFlowRequest withVpcInterfaces(java.util.Collection vpcInterfaces) {
setVpcInterfaces(vpcInterfaces);
return this;
}
/**
* @param maintenance
*/
public void setMaintenance(AddMaintenance maintenance) {
this.maintenance = maintenance;
}
/**
* @return
*/
public AddMaintenance getMaintenance() {
return this.maintenance;
}
/**
* @param maintenance
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateFlowRequest withMaintenance(AddMaintenance maintenance) {
setMaintenance(maintenance);
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 (getAvailabilityZone() != null)
sb.append("AvailabilityZone: ").append(getAvailabilityZone()).append(",");
if (getEntitlements() != null)
sb.append("Entitlements: ").append(getEntitlements()).append(",");
if (getMediaStreams() != null)
sb.append("MediaStreams: ").append(getMediaStreams()).append(",");
if (getName() != null)
sb.append("Name: ").append(getName()).append(",");
if (getOutputs() != null)
sb.append("Outputs: ").append(getOutputs()).append(",");
if (getSource() != null)
sb.append("Source: ").append(getSource()).append(",");
if (getSourceFailoverConfig() != null)
sb.append("SourceFailoverConfig: ").append(getSourceFailoverConfig()).append(",");
if (getSources() != null)
sb.append("Sources: ").append(getSources()).append(",");
if (getVpcInterfaces() != null)
sb.append("VpcInterfaces: ").append(getVpcInterfaces()).append(",");
if (getMaintenance() != null)
sb.append("Maintenance: ").append(getMaintenance());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CreateFlowRequest == false)
return false;
CreateFlowRequest other = (CreateFlowRequest) obj;
if (other.getAvailabilityZone() == null ^ this.getAvailabilityZone() == null)
return false;
if (other.getAvailabilityZone() != null && other.getAvailabilityZone().equals(this.getAvailabilityZone()) == false)
return false;
if (other.getEntitlements() == null ^ this.getEntitlements() == null)
return false;
if (other.getEntitlements() != null && other.getEntitlements().equals(this.getEntitlements()) == false)
return false;
if (other.getMediaStreams() == null ^ this.getMediaStreams() == null)
return false;
if (other.getMediaStreams() != null && other.getMediaStreams().equals(this.getMediaStreams()) == false)
return false;
if (other.getName() == null ^ this.getName() == null)
return false;
if (other.getName() != null && other.getName().equals(this.getName()) == false)
return false;
if (other.getOutputs() == null ^ this.getOutputs() == null)
return false;
if (other.getOutputs() != null && other.getOutputs().equals(this.getOutputs()) == false)
return false;
if (other.getSource() == null ^ this.getSource() == null)
return false;
if (other.getSource() != null && other.getSource().equals(this.getSource()) == false)
return false;
if (other.getSourceFailoverConfig() == null ^ this.getSourceFailoverConfig() == null)
return false;
if (other.getSourceFailoverConfig() != null && other.getSourceFailoverConfig().equals(this.getSourceFailoverConfig()) == false)
return false;
if (other.getSources() == null ^ this.getSources() == null)
return false;
if (other.getSources() != null && other.getSources().equals(this.getSources()) == false)
return false;
if (other.getVpcInterfaces() == null ^ this.getVpcInterfaces() == null)
return false;
if (other.getVpcInterfaces() != null && other.getVpcInterfaces().equals(this.getVpcInterfaces()) == false)
return false;
if (other.getMaintenance() == null ^ this.getMaintenance() == null)
return false;
if (other.getMaintenance() != null && other.getMaintenance().equals(this.getMaintenance()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getAvailabilityZone() == null) ? 0 : getAvailabilityZone().hashCode());
hashCode = prime * hashCode + ((getEntitlements() == null) ? 0 : getEntitlements().hashCode());
hashCode = prime * hashCode + ((getMediaStreams() == null) ? 0 : getMediaStreams().hashCode());
hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
hashCode = prime * hashCode + ((getOutputs() == null) ? 0 : getOutputs().hashCode());
hashCode = prime * hashCode + ((getSource() == null) ? 0 : getSource().hashCode());
hashCode = prime * hashCode + ((getSourceFailoverConfig() == null) ? 0 : getSourceFailoverConfig().hashCode());
hashCode = prime * hashCode + ((getSources() == null) ? 0 : getSources().hashCode());
hashCode = prime * hashCode + ((getVpcInterfaces() == null) ? 0 : getVpcInterfaces().hashCode());
hashCode = prime * hashCode + ((getMaintenance() == null) ? 0 : getMaintenance().hashCode());
return hashCode;
}
@Override
public CreateFlowRequest clone() {
return (CreateFlowRequest) super.clone();
}
}