/** * 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 (getInput() != null) sb.append("Input: ").append(getInput()).append(","); if (getOutput() != null) sb.append("Output: ").append(getOutput()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getSettings() != null) sb.append("Settings: ").append(getSettings()).append(","); if (getRoleArn() != null) sb.append("RoleArn: ").append(getRoleArn()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getInput() == null) ? 0 : getInput().hashCode()); hashCode = prime * hashCode + ((getOutput() == null) ? 0 : getOutput().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getSettings() == null) ? 0 : getSettings().hashCode()); hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode()); return hashCode; }
/** * Marshall the given parameter object. */ public void marshall(CreateStreamProcessorRequest createStreamProcessorRequest, ProtocolMarshaller protocolMarshaller) { if (createStreamProcessorRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(createStreamProcessorRequest.getInput(), INPUT_BINDING); protocolMarshaller.marshall(createStreamProcessorRequest.getOutput(), OUTPUT_BINDING); protocolMarshaller.marshall(createStreamProcessorRequest.getName(), NAME_BINDING); protocolMarshaller.marshall(createStreamProcessorRequest.getSettings(), SETTINGS_BINDING); protocolMarshaller.marshall(createStreamProcessorRequest.getRoleArn(), ROLEARN_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
return false; CreateStreamProcessorRequest other = (CreateStreamProcessorRequest) obj; if (other.getInput() == null ^ this.getInput() == null) return false; if (other.getInput() != null && other.getInput().equals(this.getInput()) == false) return false; if (other.getOutput() == null ^ this.getOutput() == null)
/** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getInput() != null) sb.append("Input: " + getInput() + ","); if (getOutput() != null) sb.append("Output: " + getOutput() + ","); if (getName() != null) sb.append("Name: " + getName() + ","); if (getSettings() != null) sb.append("Settings: " + getSettings() + ","); if (getRoleArn() != null) sb.append("RoleArn: " + getRoleArn()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getInput() == null) ? 0 : getInput().hashCode()); hashCode = prime * hashCode + ((getOutput() == null) ? 0 : getOutput().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getSettings() == null) ? 0 : getSettings().hashCode()); hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode()); return hashCode; }