@Override public UserPoolType build() { return new UserPoolType(this); } }
@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(); }
/** * <p> * The container of metadata returned by the server to describe the pool. * </p> * This is a convenience that creates an instance of the {@link UserPoolType.Builder} avoiding the need to * create one manually via {@link UserPoolType#builder()}. * * When the {@link Consumer} completes, {@link UserPoolType.Builder#build()} is called immediately and its * result is passed to {@link #userPool(UserPoolType)}. * * @param userPool * a consumer that will call methods on {@link UserPoolType.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #userPool(UserPoolType) */ default Builder userPool(Consumer<UserPoolType.Builder> userPool) { return userPool(UserPoolType.builder().applyMutation(userPool).build()); } }
/** * <p> * A container for the user pool details. * </p> * This is a convenience that creates an instance of the {@link UserPoolType.Builder} avoiding the need to * create one manually via {@link UserPoolType#builder()}. * * When the {@link Consumer} completes, {@link UserPoolType.Builder#build()} is called immediately and its * result is passed to {@link #userPool(UserPoolType)}. * * @param userPool * a consumer that will call methods on {@link UserPoolType.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #userPool(UserPoolType) */ default Builder userPool(Consumer<UserPoolType.Builder> userPool) { return userPool(UserPoolType.builder().applyMutation(userPool).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(); }
/** * <p> * A container for the user pool details. * </p> * This is a convenience that creates an instance of the {@link UserPoolType.Builder} avoiding the need to * create one manually via {@link UserPoolType#builder()}. * * When the {@link Consumer} completes, {@link UserPoolType.Builder#build()} is called immediately and its * result is passed to {@link #userPool(UserPoolType)}. * * @param userPool * a consumer that will call methods on {@link UserPoolType.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #userPool(UserPoolType) */ default Builder userPool(Consumer<UserPoolType.Builder> userPool) { return userPool(UserPoolType.builder().applyMutation(userPool).build()); } }
@Override public UserPoolType build() { return new UserPoolType(this); }
return Objects.equals(id(), other.id()) && Objects.equals(name(), other.name()) && Objects.equals(policies(), other.policies()) && Objects.equals(lambdaConfig(), other.lambdaConfig()) && Objects.equals(statusAsString(), other.statusAsString()) && Objects.equals(lastModifiedDate(), other.lastModifiedDate()) && Objects.equals(creationDate(), other.creationDate()) && Objects.equals(schemaAttributes(), other.schemaAttributes()) && Objects.equals(autoVerifiedAttributesAsStrings(), other.autoVerifiedAttributesAsStrings()) && Objects.equals(aliasAttributesAsStrings(), other.aliasAttributesAsStrings()) && Objects.equals(usernameAttributesAsStrings(), other.usernameAttributesAsStrings()) && Objects.equals(smsVerificationMessage(), other.smsVerificationMessage()) && Objects.equals(emailVerificationMessage(), other.emailVerificationMessage()) && Objects.equals(emailVerificationSubject(), other.emailVerificationSubject()) && Objects.equals(verificationMessageTemplate(), other.verificationMessageTemplate()) && Objects.equals(smsAuthenticationMessage(), other.smsAuthenticationMessage()) && 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(userPoolTags(), other.userPoolTags()) && Objects.equals(smsConfigurationFailure(), other.smsConfigurationFailure()) && Objects.equals(emailConfigurationFailure(), other.emailConfigurationFailure()) && Objects.equals(adminCreateUserConfig(), other.adminCreateUserConfig());
/** * <p> * The container of metadata returned by the server to describe the pool. * </p> * This is a convenience that creates an instance of the {@link UserPoolType.Builder} avoiding the need to * create one manually via {@link UserPoolType#builder()}. * * When the {@link Consumer} completes, {@link UserPoolType.Builder#build()} is called immediately and its * result is passed to {@link #userPool(UserPoolType)}. * * @param userPool * a consumer that will call methods on {@link UserPoolType.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #userPool(UserPoolType) */ default Builder userPool(Consumer<UserPoolType.Builder> userPool) { return userPool(UserPoolType.builder().applyMutation(userPool).build()); } }
return Objects.equals(id(), other.id()) && Objects.equals(name(), other.name()) && Objects.equals(policies(), other.policies()) && Objects.equals(lambdaConfig(), other.lambdaConfig()) && Objects.equals(statusAsString(), other.statusAsString()) && Objects.equals(lastModifiedDate(), other.lastModifiedDate()) && Objects.equals(creationDate(), other.creationDate()) && Objects.equals(schemaAttributes(), other.schemaAttributes()) && Objects.equals(autoVerifiedAttributesAsStrings(), other.autoVerifiedAttributesAsStrings()) && Objects.equals(aliasAttributesAsStrings(), other.aliasAttributesAsStrings()) && Objects.equals(usernameAttributesAsStrings(), other.usernameAttributesAsStrings()) && Objects.equals(smsVerificationMessage(), other.smsVerificationMessage()) && Objects.equals(emailVerificationMessage(), other.emailVerificationMessage()) && Objects.equals(emailVerificationSubject(), other.emailVerificationSubject()) && Objects.equals(verificationMessageTemplate(), other.verificationMessageTemplate()) && Objects.equals(smsAuthenticationMessage(), other.smsAuthenticationMessage()) && 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(userPoolTags(), other.userPoolTags()) && Objects.equals(smsConfigurationFailure(), other.smsConfigurationFailure()) && 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());
public UserPoolType unmarshall(JsonUnmarshallerContext context) throws Exception { UserPoolType.Builder userPoolTypeBuilder = UserPoolType.builder();
@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; }
@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(domain()); hashCode = 31 * hashCode + Objects.hashCode(customDomain()); hashCode = 31 * hashCode + Objects.hashCode(adminCreateUserConfig());
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "Id": return Optional.ofNullable(clazz.cast(id())); case "Name": return Optional.ofNullable(clazz.cast(name())); case "Policies": return Optional.ofNullable(clazz.cast(policies())); case "LambdaConfig": return Optional.ofNullable(clazz.cast(lambdaConfig())); case "Status": return Optional.ofNullable(clazz.cast(statusAsString())); case "LastModifiedDate": return Optional.ofNullable(clazz.cast(lastModifiedDate())); case "CreationDate": return Optional.ofNullable(clazz.cast(creationDate())); case "SchemaAttributes": return Optional.ofNullable(clazz.cast(schemaAttributes())); case "AutoVerifiedAttributes": return Optional.ofNullable(clazz.cast(autoVerifiedAttributesAsStrings())); case "AliasAttributes": return Optional.ofNullable(clazz.cast(aliasAttributesAsStrings())); case "UsernameAttributes": return Optional.ofNullable(clazz.cast(usernameAttributesAsStrings())); case "SmsVerificationMessage": return Optional.ofNullable(clazz.cast(smsVerificationMessage())); case "EmailVerificationMessage": return Optional.ofNullable(clazz.cast(emailVerificationMessage())); case "EmailVerificationSubject": return Optional.ofNullable(clazz.cast(emailVerificationSubject()));
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "Id": return Optional.ofNullable(clazz.cast(id())); case "Name": return Optional.ofNullable(clazz.cast(name())); case "Policies": return Optional.ofNullable(clazz.cast(policies())); case "LambdaConfig": return Optional.ofNullable(clazz.cast(lambdaConfig())); case "Status": return Optional.ofNullable(clazz.cast(statusAsString())); case "LastModifiedDate": return Optional.ofNullable(clazz.cast(lastModifiedDate())); case "CreationDate": return Optional.ofNullable(clazz.cast(creationDate())); case "SchemaAttributes": return Optional.ofNullable(clazz.cast(schemaAttributes())); case "AutoVerifiedAttributes": return Optional.ofNullable(clazz.cast(autoVerifiedAttributesAsStrings())); case "AliasAttributes": return Optional.ofNullable(clazz.cast(aliasAttributesAsStrings())); case "UsernameAttributes": return Optional.ofNullable(clazz.cast(usernameAttributesAsStrings())); case "SmsVerificationMessage": return Optional.ofNullable(clazz.cast(smsVerificationMessage())); case "EmailVerificationMessage": return Optional.ofNullable(clazz.cast(emailVerificationMessage())); case "EmailVerificationSubject": return Optional.ofNullable(clazz.cast(emailVerificationSubject()));
Validate.paramNotNull(protocolMarshaller, "protocolMarshaller"); try { protocolMarshaller.marshall(userPoolType.id(), ID_BINDING); protocolMarshaller.marshall(userPoolType.name(), NAME_BINDING); protocolMarshaller.marshall(userPoolType.policies(), POLICIES_BINDING); protocolMarshaller.marshall(userPoolType.lambdaConfig(), LAMBDACONFIG_BINDING); protocolMarshaller.marshall(userPoolType.statusAsString(), STATUS_BINDING); protocolMarshaller.marshall(userPoolType.lastModifiedDate(), LASTMODIFIEDDATE_BINDING); protocolMarshaller.marshall(userPoolType.creationDate(), CREATIONDATE_BINDING); protocolMarshaller.marshall(userPoolType.schemaAttributes(), SCHEMAATTRIBUTES_BINDING); protocolMarshaller.marshall(userPoolType.autoVerifiedAttributesAsStrings(), AUTOVERIFIEDATTRIBUTES_BINDING); protocolMarshaller.marshall(userPoolType.aliasAttributesAsStrings(), ALIASATTRIBUTES_BINDING); protocolMarshaller.marshall(userPoolType.usernameAttributesAsStrings(), USERNAMEATTRIBUTES_BINDING); protocolMarshaller.marshall(userPoolType.smsVerificationMessage(), SMSVERIFICATIONMESSAGE_BINDING); protocolMarshaller.marshall(userPoolType.emailVerificationMessage(), EMAILVERIFICATIONMESSAGE_BINDING); protocolMarshaller.marshall(userPoolType.emailVerificationSubject(), EMAILVERIFICATIONSUBJECT_BINDING); protocolMarshaller.marshall(userPoolType.verificationMessageTemplate(), VERIFICATIONMESSAGETEMPLATE_BINDING); protocolMarshaller.marshall(userPoolType.smsAuthenticationMessage(), SMSAUTHENTICATIONMESSAGE_BINDING); 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); protocolMarshaller.marshall(userPoolType.userPoolTags(), USERPOOLTAGS_BINDING); 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();