@Override public ListUserPoolsRequest build() { return new ListUserPoolsRequest(this); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof ListUserPoolsRequest)) { return false; } ListUserPoolsRequest other = (ListUserPoolsRequest) obj; return Objects.equals(nextToken(), other.nextToken()) && Objects.equals(maxResults(), other.maxResults()); }
throws InvalidParameterException, TooManyRequestsException, NotAuthorizedException, InternalErrorException, AwsServiceException, SdkClientException, CognitoIdentityProviderException { return listUserPools(ListUserPoolsRequest.builder().applyMutation(listUserPoolsRequest).build());
throws InvalidParameterException, TooManyRequestsException, NotAuthorizedException, InternalErrorException, AwsServiceException, SdkClientException, CognitoIdentityProviderException { return listUserPools(ListUserPoolsRequest.builder().applyMutation(listUserPoolsRequest).build());
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(nextToken()); hashCode = 31 * hashCode + Objects.hashCode(maxResults()); return hashCode; }
return listUserPools(ListUserPoolsRequest.builder().applyMutation(listUserPoolsRequest).build());
@Override public ListUserPoolsRequest build() { return new ListUserPoolsRequest(this); } }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof ListUserPoolsRequest)) { return false; } ListUserPoolsRequest other = (ListUserPoolsRequest) obj; return Objects.equals(nextToken(), other.nextToken()) && Objects.equals(maxResults(), other.maxResults()); }
return listUserPools(ListUserPoolsRequest.builder().applyMutation(listUserPoolsRequest).build());
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(nextToken()); hashCode = 31 * hashCode + Objects.hashCode(maxResults()); 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("ListUserPoolsRequest").add("NextToken", nextToken()).add("MaxResults", maxResults()).build(); }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "NextToken": return Optional.ofNullable(clazz.cast(nextToken())); case "MaxResults": return Optional.ofNullable(clazz.cast(maxResults())); default: return Optional.empty(); } }
@Override public String toString() { return ToString.builder("ListUserPoolsRequest").add("NextToken", nextToken()).add("MaxResults", maxResults()).build(); }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "NextToken": return Optional.ofNullable(clazz.cast(nextToken())); case "MaxResults": return Optional.ofNullable(clazz.cast(maxResults())); default: return Optional.empty(); } }
/** * Marshall the given parameter object */ public void marshall(ListUserPoolsRequest listUserPoolsRequest, ProtocolMarshaller protocolMarshaller) { Validate.paramNotNull(listUserPoolsRequest, "listUserPoolsRequest"); Validate.paramNotNull(protocolMarshaller, "protocolMarshaller"); try { protocolMarshaller.marshall(listUserPoolsRequest.nextToken(), NEXTTOKEN_BINDING); protocolMarshaller.marshall(listUserPoolsRequest.maxResults(), MAXRESULTS_BINDING); } catch (Exception e) { throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build(); } } }