@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(deviceConfiguration())); case "EstimatedNumberOfUsers": return Optional.ofNullable(clazz.cast(estimatedNumberOfUsers())); case "EmailConfiguration": return Optional.ofNullable(clazz.cast(emailConfiguration()));
return Optional.ofNullable(clazz.cast(deviceConfiguration())); case "EstimatedNumberOfUsers": return Optional.ofNullable(clazz.cast(estimatedNumberOfUsers())); case "EmailConfiguration": return Optional.ofNullable(clazz.cast(emailConfiguration()));
@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(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());
&& Objects.equals(mfaConfigurationAsString(), other.mfaConfigurationAsString()) && Objects.equals(deviceConfiguration(), other.deviceConfiguration()) && Objects.equals(estimatedNumberOfUsers(), other.estimatedNumberOfUsers()) && Objects.equals(emailConfiguration(), other.emailConfiguration()) && Objects.equals(smsConfiguration(), other.smsConfiguration())
&& Objects.equals(mfaConfigurationAsString(), other.mfaConfigurationAsString()) && Objects.equals(deviceConfiguration(), other.deviceConfiguration()) && Objects.equals(estimatedNumberOfUsers(), other.estimatedNumberOfUsers()) && Objects.equals(emailConfiguration(), other.emailConfiguration()) && Objects.equals(smsConfiguration(), other.smsConfiguration())
protocolMarshaller.marshall(userPoolType.mfaConfigurationAsString(), MFACONFIGURATION_BINDING); protocolMarshaller.marshall(userPoolType.deviceConfiguration(), DEVICECONFIGURATION_BINDING); protocolMarshaller.marshall(userPoolType.estimatedNumberOfUsers(), ESTIMATEDNUMBEROFUSERS_BINDING); protocolMarshaller.marshall(userPoolType.emailConfiguration(), EMAILCONFIGURATION_BINDING); protocolMarshaller.marshall(userPoolType.smsConfiguration(), SMSCONFIGURATION_BINDING);