public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "NamePrefix": return Optional.ofNullable(clazz.cast(namePrefix())); case "NextToken": return Optional.ofNullable(clazz.cast(nextToken())); case "Limit": return Optional.ofNullable(clazz.cast(limit())); default: return Optional.empty(); } }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(namePrefix()); hashCode = 31 * hashCode + Objects.hashCode(nextToken()); hashCode = 31 * hashCode + Objects.hashCode(limit()); return hashCode; }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "NamePrefix": return Optional.ofNullable(clazz.cast(namePrefix())); case "NextToken": return Optional.ofNullable(clazz.cast(nextToken())); case "Limit": return Optional.ofNullable(clazz.cast(limit())); 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("ListRulesRequest").add("NamePrefix", namePrefix()).add("NextToken", nextToken()) .add("Limit", limit()).build(); }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "NamePrefix": return Optional.ofNullable(clazz.cast(namePrefix())); case "NextToken": return Optional.ofNullable(clazz.cast(nextToken())); case "Limit": return Optional.ofNullable(clazz.cast(limit())); 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("ListRulesRequest").add("NamePrefix", namePrefix()).add("NextToken", nextToken()) .add("Limit", limit()).build(); }
@Override public String toString() { return ToString.builder("ListRulesRequest").add("NamePrefix", namePrefix()).add("NextToken", nextToken()) .add("Limit", limit()).build(); }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(namePrefix()); hashCode = 31 * hashCode + Objects.hashCode(nextToken()); hashCode = 31 * hashCode + Objects.hashCode(limit()); return hashCode; }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(namePrefix()); hashCode = 31 * hashCode + Objects.hashCode(nextToken()); hashCode = 31 * hashCode + Objects.hashCode(limit()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof ListRulesRequest)) { return false; } ListRulesRequest other = (ListRulesRequest) obj; return Objects.equals(namePrefix(), other.namePrefix()) && Objects.equals(nextToken(), other.nextToken()) && Objects.equals(limit(), other.limit()); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof ListRulesRequest)) { return false; } ListRulesRequest other = (ListRulesRequest) obj; return Objects.equals(namePrefix(), other.namePrefix()) && Objects.equals(nextToken(), other.nextToken()) && Objects.equals(limit(), other.limit()); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof ListRulesRequest)) { return false; } ListRulesRequest other = (ListRulesRequest) obj; return Objects.equals(namePrefix(), other.namePrefix()) && Objects.equals(nextToken(), other.nextToken()) && Objects.equals(limit(), other.limit()); }
/** * Marshall the given parameter object */ public void marshall(ListRulesRequest listRulesRequest, ProtocolMarshaller protocolMarshaller) { Validate.paramNotNull(listRulesRequest, "listRulesRequest"); Validate.paramNotNull(protocolMarshaller, "protocolMarshaller"); try { protocolMarshaller.marshall(listRulesRequest.namePrefix(), NAMEPREFIX_BINDING); protocolMarshaller.marshall(listRulesRequest.nextToken(), NEXTTOKEN_BINDING); protocolMarshaller.marshall(listRulesRequest.limit(), LIMIT_BINDING); } catch (Exception e) { throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build(); } } }