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