@Override public String toString() { return ToString.builder("UserPoolType").add("Id", id()).add("Name", name()).add("Policies", policies()) .add("LambdaConfig", lambdaConfig()).add("Status", statusAsString()).add("LastModifiedDate", lastModifiedDate()) .add("CreationDate", creationDate()).add("SchemaAttributes", schemaAttributes()) .add("AutoVerifiedAttributes", autoVerifiedAttributesAsStrings()) .add("AliasAttributes", aliasAttributesAsStrings()).add("UsernameAttributes", usernameAttributesAsStrings()) .add("SmsVerificationMessage", smsVerificationMessage()) .add("EmailVerificationMessage", emailVerificationMessage()) .add("EmailVerificationSubject", emailVerificationSubject()) .add("VerificationMessageTemplate", verificationMessageTemplate()) .add("SmsAuthenticationMessage", smsAuthenticationMessage()).add("MfaConfiguration", mfaConfigurationAsString()) .add("DeviceConfiguration", deviceConfiguration()).add("EstimatedNumberOfUsers", estimatedNumberOfUsers()) .add("EmailConfiguration", emailConfiguration()).add("SmsConfiguration", smsConfiguration()) .add("UserPoolTags", userPoolTags()).add("SmsConfigurationFailure", smsConfigurationFailure()) .add("EmailConfigurationFailure", emailConfigurationFailure()) .add("AdminCreateUserConfig", adminCreateUserConfig()).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("UserPoolType").add("Id", id()).add("Name", name()).add("Policies", policies()) .add("LambdaConfig", lambdaConfig()).add("Status", statusAsString()).add("LastModifiedDate", lastModifiedDate()) .add("CreationDate", creationDate()).add("SchemaAttributes", schemaAttributes()) .add("AutoVerifiedAttributes", autoVerifiedAttributesAsStrings()) .add("AliasAttributes", aliasAttributesAsStrings()).add("UsernameAttributes", usernameAttributesAsStrings()) .add("SmsVerificationMessage", smsVerificationMessage()) .add("EmailVerificationMessage", emailVerificationMessage()) .add("EmailVerificationSubject", emailVerificationSubject()) .add("VerificationMessageTemplate", verificationMessageTemplate()) .add("SmsAuthenticationMessage", smsAuthenticationMessage()).add("MfaConfiguration", mfaConfigurationAsString()) .add("DeviceConfiguration", deviceConfiguration()).add("EstimatedNumberOfUsers", estimatedNumberOfUsers()) .add("EmailConfiguration", emailConfiguration()).add("SmsConfiguration", smsConfiguration()) .add("UserPoolTags", userPoolTags()).add("SmsConfigurationFailure", smsConfigurationFailure()) .add("EmailConfigurationFailure", emailConfigurationFailure()).add("Domain", domain()) .add("CustomDomain", customDomain()).add("AdminCreateUserConfig", adminCreateUserConfig()) .add("UserPoolAddOns", userPoolAddOns()).add("Arn", arn()).build(); }
return Optional.ofNullable(clazz.cast(emailConfigurationFailure())); case "AdminCreateUserConfig": return Optional.ofNullable(clazz.cast(adminCreateUserConfig())); default: return Optional.empty();
return Optional.ofNullable(clazz.cast(customDomain())); case "AdminCreateUserConfig": return Optional.ofNullable(clazz.cast(adminCreateUserConfig())); case "UserPoolAddOns": return Optional.ofNullable(clazz.cast(userPoolAddOns()));
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(id()); hashCode = 31 * hashCode + Objects.hashCode(name()); hashCode = 31 * hashCode + Objects.hashCode(policies()); hashCode = 31 * hashCode + Objects.hashCode(lambdaConfig()); hashCode = 31 * hashCode + Objects.hashCode(statusAsString()); hashCode = 31 * hashCode + Objects.hashCode(lastModifiedDate()); hashCode = 31 * hashCode + Objects.hashCode(creationDate()); hashCode = 31 * hashCode + Objects.hashCode(schemaAttributes()); hashCode = 31 * hashCode + Objects.hashCode(autoVerifiedAttributesAsStrings()); hashCode = 31 * hashCode + Objects.hashCode(aliasAttributesAsStrings()); hashCode = 31 * hashCode + Objects.hashCode(usernameAttributesAsStrings()); hashCode = 31 * hashCode + Objects.hashCode(smsVerificationMessage()); hashCode = 31 * hashCode + Objects.hashCode(emailVerificationMessage()); hashCode = 31 * hashCode + Objects.hashCode(emailVerificationSubject()); hashCode = 31 * hashCode + Objects.hashCode(verificationMessageTemplate()); hashCode = 31 * hashCode + Objects.hashCode(smsAuthenticationMessage()); hashCode = 31 * hashCode + Objects.hashCode(mfaConfigurationAsString()); hashCode = 31 * hashCode + Objects.hashCode(deviceConfiguration()); hashCode = 31 * hashCode + Objects.hashCode(estimatedNumberOfUsers()); hashCode = 31 * hashCode + Objects.hashCode(emailConfiguration()); hashCode = 31 * hashCode + Objects.hashCode(smsConfiguration()); hashCode = 31 * hashCode + Objects.hashCode(userPoolTags()); hashCode = 31 * hashCode + Objects.hashCode(smsConfigurationFailure()); hashCode = 31 * hashCode + Objects.hashCode(emailConfigurationFailure()); hashCode = 31 * hashCode + Objects.hashCode(adminCreateUserConfig()); return hashCode; }
hashCode = 31 * hashCode + Objects.hashCode(domain()); hashCode = 31 * hashCode + Objects.hashCode(customDomain()); hashCode = 31 * hashCode + Objects.hashCode(adminCreateUserConfig()); hashCode = 31 * hashCode + Objects.hashCode(userPoolAddOns()); hashCode = 31 * hashCode + Objects.hashCode(arn());
&& Objects.equals(smsConfigurationFailure(), other.smsConfigurationFailure()) && Objects.equals(emailConfigurationFailure(), other.emailConfigurationFailure()) && Objects.equals(adminCreateUserConfig(), other.adminCreateUserConfig());
&& Objects.equals(emailConfigurationFailure(), other.emailConfigurationFailure()) && Objects.equals(domain(), other.domain()) && Objects.equals(customDomain(), other.customDomain()) && Objects.equals(adminCreateUserConfig(), other.adminCreateUserConfig()) && Objects.equals(userPoolAddOns(), other.userPoolAddOns()) && Objects.equals(arn(), other.arn());
protocolMarshaller.marshall(userPoolType.smsConfigurationFailure(), SMSCONFIGURATIONFAILURE_BINDING); protocolMarshaller.marshall(userPoolType.emailConfigurationFailure(), EMAILCONFIGURATIONFAILURE_BINDING); protocolMarshaller.marshall(userPoolType.adminCreateUserConfig(), ADMINCREATEUSERCONFIG_BINDING); } catch (Exception e) { throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build();