@Override public String toString() { return ToString.builder("UpdateUserPoolClientRequest").add("UserPoolId", userPoolId()).add("ClientId", clientId()) .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()).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("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(logoutURLs())); case "DefaultRedirectURI": return Optional.ofNullable(clazz.cast(defaultRedirectURI())); case "AllowedOAuthFlows": return Optional.ofNullable(clazz.cast(allowedOAuthFlowsAsStrings()));
return Optional.ofNullable(clazz.cast(logoutURLs())); case "DefaultRedirectURI": return Optional.ofNullable(clazz.cast(defaultRedirectURI())); case "AllowedOAuthFlows": return Optional.ofNullable(clazz.cast(allowedOAuthFlowsAsStrings()));
@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()); return hashCode; }
@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()); }
@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()); }
/** * Marshall the given parameter object */ public void marshall(UpdateUserPoolClientRequest updateUserPoolClientRequest, ProtocolMarshaller protocolMarshaller) { Validate.paramNotNull(updateUserPoolClientRequest, "updateUserPoolClientRequest"); Validate.paramNotNull(protocolMarshaller, "protocolMarshaller"); try { protocolMarshaller.marshall(updateUserPoolClientRequest.userPoolId(), USERPOOLID_BINDING); protocolMarshaller.marshall(updateUserPoolClientRequest.clientId(), CLIENTID_BINDING); protocolMarshaller.marshall(updateUserPoolClientRequest.clientName(), CLIENTNAME_BINDING); protocolMarshaller.marshall(updateUserPoolClientRequest.refreshTokenValidity(), REFRESHTOKENVALIDITY_BINDING); protocolMarshaller.marshall(updateUserPoolClientRequest.readAttributes(), READATTRIBUTES_BINDING); protocolMarshaller.marshall(updateUserPoolClientRequest.writeAttributes(), WRITEATTRIBUTES_BINDING); protocolMarshaller.marshall(updateUserPoolClientRequest.explicitAuthFlowsAsStrings(), EXPLICITAUTHFLOWS_BINDING); protocolMarshaller.marshall(updateUserPoolClientRequest.supportedIdentityProviders(), SUPPORTEDIDENTITYPROVIDERS_BINDING); protocolMarshaller.marshall(updateUserPoolClientRequest.callbackURLs(), CALLBACKURLS_BINDING); protocolMarshaller.marshall(updateUserPoolClientRequest.logoutURLs(), LOGOUTURLS_BINDING); protocolMarshaller.marshall(updateUserPoolClientRequest.defaultRedirectURI(), DEFAULTREDIRECTURI_BINDING); protocolMarshaller.marshall(updateUserPoolClientRequest.allowedOAuthFlowsAsStrings(), ALLOWEDOAUTHFLOWS_BINDING); protocolMarshaller.marshall(updateUserPoolClientRequest.allowedOAuthScopes(), ALLOWEDOAUTHSCOPES_BINDING); protocolMarshaller.marshall(updateUserPoolClientRequest.allowedOAuthFlowsUserPoolClient(), ALLOWEDOAUTHFLOWSUSERPOOLCLIENT_BINDING); } catch (Exception e) { throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build(); } } }