@Override public ListDevicesResponse build() { return new ListDevicesResponse(this); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof ListDevicesResponse)) { return false; } ListDevicesResponse other = (ListDevicesResponse) obj; return Objects.equals(devices(), other.devices()) && Objects.equals(paginationToken(), other.paginationToken()); }
public ListDevicesResponse unmarshall(JsonUnmarshallerContext context) throws Exception { ListDevicesResponse.Builder listDevicesResponseBuilder = ListDevicesResponse.builder();
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof ListDevicesResponse)) { return false; } ListDevicesResponse other = (ListDevicesResponse) obj; return Objects.equals(devices(), other.devices()) && Objects.equals(paginationToken(), other.paginationToken()); }
@Override public ListDevicesResponse build() { return new ListDevicesResponse(this); } }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(devices()); hashCode = 31 * hashCode + Objects.hashCode(paginationToken()); return hashCode; }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(devices()); hashCode = 31 * hashCode + Objects.hashCode(paginationToken()); return hashCode; }
@Override public String toString() { return ToString.builder("ListDevicesResponse").add("Devices", devices()).add("PaginationToken", paginationToken()) .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("ListDevicesResponse").add("Devices", devices()).add("PaginationToken", paginationToken()) .build(); }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "Devices": return Optional.ofNullable(clazz.cast(devices())); case "PaginationToken": return Optional.ofNullable(clazz.cast(paginationToken())); default: return Optional.empty(); } }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "Devices": return Optional.ofNullable(clazz.cast(devices())); case "PaginationToken": return Optional.ofNullable(clazz.cast(paginationToken())); default: return Optional.empty(); } }