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