public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "exportIds": return Optional.ofNullable(clazz.cast(exportIds())); case "maxResults": return Optional.ofNullable(clazz.cast(maxResults())); case "nextToken": return Optional.ofNullable(clazz.cast(nextToken())); default: return Optional.empty(); } }
/** * 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("DescribeContinuousExportsRequest").add("ExportIds", exportIds()).add("MaxResults", maxResults()) .add("NextToken", nextToken()).build(); }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "exportIds": return Optional.ofNullable(clazz.cast(exportIds())); case "maxResults": return Optional.ofNullable(clazz.cast(maxResults())); case "nextToken": return Optional.ofNullable(clazz.cast(nextToken())); default: return Optional.empty(); } }
/** * 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("DescribeContinuousExportsRequest").add("ExportIds", exportIds()).add("MaxResults", maxResults()) .add("NextToken", nextToken()).build(); }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(exportIds()); hashCode = 31 * hashCode + Objects.hashCode(maxResults()); hashCode = 31 * hashCode + Objects.hashCode(nextToken()); return hashCode; }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(exportIds()); hashCode = 31 * hashCode + Objects.hashCode(maxResults()); hashCode = 31 * hashCode + Objects.hashCode(nextToken()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof DescribeContinuousExportsRequest)) { return false; } DescribeContinuousExportsRequest other = (DescribeContinuousExportsRequest) obj; return Objects.equals(exportIds(), other.exportIds()) && Objects.equals(maxResults(), other.maxResults()) && Objects.equals(nextToken(), other.nextToken()); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof DescribeContinuousExportsRequest)) { return false; } DescribeContinuousExportsRequest other = (DescribeContinuousExportsRequest) obj; return Objects.equals(exportIds(), other.exportIds()) && Objects.equals(maxResults(), other.maxResults()) && Objects.equals(nextToken(), other.nextToken()); }