/** * 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("UpdateUserPoolClientRequest").add("UserPoolId", userPoolId()) .add("ClientId", clientId() == null ? null : "*** Sensitive Data Redacted ***").add("ClientName", clientName()) .add("RefreshTokenValidity", refreshTokenValidity()).add("ReadAttributes", readAttributes()) .add("WriteAttributes", writeAttributes()).add("ExplicitAuthFlows", explicitAuthFlowsAsStrings()) .add("SupportedIdentityProviders", supportedIdentityProviders()).add("CallbackURLs", callbackURLs()) .add("LogoutURLs", logoutURLs()).add("DefaultRedirectURI", defaultRedirectURI()) .add("AllowedOAuthFlows", allowedOAuthFlowsAsStrings()).add("AllowedOAuthScopes", allowedOAuthScopes()) .add("AllowedOAuthFlowsUserPoolClient", allowedOAuthFlowsUserPoolClient()) .add("AnalyticsConfiguration", analyticsConfiguration()).build(); }
return Optional.ofNullable(clazz.cast(allowedOAuthFlowsUserPoolClient())); case "AnalyticsConfiguration": return Optional.ofNullable(clazz.cast(analyticsConfiguration())); default: return Optional.empty();
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(userPoolId()); hashCode = 31 * hashCode + Objects.hashCode(clientId()); hashCode = 31 * hashCode + Objects.hashCode(clientName()); hashCode = 31 * hashCode + Objects.hashCode(refreshTokenValidity()); hashCode = 31 * hashCode + Objects.hashCode(readAttributes()); hashCode = 31 * hashCode + Objects.hashCode(writeAttributes()); hashCode = 31 * hashCode + Objects.hashCode(explicitAuthFlowsAsStrings()); hashCode = 31 * hashCode + Objects.hashCode(supportedIdentityProviders()); hashCode = 31 * hashCode + Objects.hashCode(callbackURLs()); hashCode = 31 * hashCode + Objects.hashCode(logoutURLs()); hashCode = 31 * hashCode + Objects.hashCode(defaultRedirectURI()); hashCode = 31 * hashCode + Objects.hashCode(allowedOAuthFlowsAsStrings()); hashCode = 31 * hashCode + Objects.hashCode(allowedOAuthScopes()); hashCode = 31 * hashCode + Objects.hashCode(allowedOAuthFlowsUserPoolClient()); hashCode = 31 * hashCode + Objects.hashCode(analyticsConfiguration()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof UpdateUserPoolClientRequest)) { return false; } UpdateUserPoolClientRequest other = (UpdateUserPoolClientRequest) obj; return Objects.equals(userPoolId(), other.userPoolId()) && Objects.equals(clientId(), other.clientId()) && Objects.equals(clientName(), other.clientName()) && Objects.equals(refreshTokenValidity(), other.refreshTokenValidity()) && Objects.equals(readAttributes(), other.readAttributes()) && Objects.equals(writeAttributes(), other.writeAttributes()) && Objects.equals(explicitAuthFlowsAsStrings(), other.explicitAuthFlowsAsStrings()) && Objects.equals(supportedIdentityProviders(), other.supportedIdentityProviders()) && Objects.equals(callbackURLs(), other.callbackURLs()) && Objects.equals(logoutURLs(), other.logoutURLs()) && Objects.equals(defaultRedirectURI(), other.defaultRedirectURI()) && Objects.equals(allowedOAuthFlowsAsStrings(), other.allowedOAuthFlowsAsStrings()) && Objects.equals(allowedOAuthScopes(), other.allowedOAuthScopes()) && Objects.equals(allowedOAuthFlowsUserPoolClient(), other.allowedOAuthFlowsUserPoolClient()) && Objects.equals(analyticsConfiguration(), other.analyticsConfiguration()); }