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