@Override public AddLayerVersionPermissionResponse build() { return new AddLayerVersionPermissionResponse(this); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof AddLayerVersionPermissionResponse)) { return false; } AddLayerVersionPermissionResponse other = (AddLayerVersionPermissionResponse) obj; return Objects.equals(statement(), other.statement()) && Objects.equals(revisionId(), other.revisionId()); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof AddLayerVersionPermissionResponse)) { return false; } AddLayerVersionPermissionResponse other = (AddLayerVersionPermissionResponse) obj; return Objects.equals(statement(), other.statement()) && Objects.equals(revisionId(), other.revisionId()); }
@Override public AddLayerVersionPermissionResponse build() { return new AddLayerVersionPermissionResponse(this); }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(statement()); hashCode = 31 * hashCode + Objects.hashCode(revisionId()); return hashCode; }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(statement()); hashCode = 31 * hashCode + Objects.hashCode(revisionId()); return hashCode; }
/** * 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. */ @Override public String toString() { return ToString.builder("AddLayerVersionPermissionResponse").add("Statement", statement()) .add("RevisionId", revisionId()).build(); }
/** * 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. */ @Override public String toString() { return ToString.builder("AddLayerVersionPermissionResponse").add("Statement", statement()) .add("RevisionId", revisionId()).build(); }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "Statement": return Optional.ofNullable(clazz.cast(statement())); case "RevisionId": return Optional.ofNullable(clazz.cast(revisionId())); default: return Optional.empty(); } }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "Statement": return Optional.ofNullable(clazz.cast(statement())); case "RevisionId": return Optional.ofNullable(clazz.cast(revisionId())); default: return Optional.empty(); } }