@Override public String toString() { return ToString.builder("CreateUserPoolRequest").add("PoolName", poolName()).add("Policies", policies()) .add("LambdaConfig", lambdaConfig()).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("EmailConfiguration", emailConfiguration()) .add("SmsConfiguration", smsConfiguration()).add("UserPoolTags", userPoolTags()) .add("AdminCreateUserConfig", adminCreateUserConfig()).add("Schema", schema()).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("CreateUserPoolRequest").add("PoolName", poolName()).add("Policies", policies()) .add("LambdaConfig", lambdaConfig()).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("EmailConfiguration", emailConfiguration()) .add("SmsConfiguration", smsConfiguration()).add("UserPoolTags", userPoolTags()) .add("AdminCreateUserConfig", adminCreateUserConfig()).add("Schema", schema()) .add("UserPoolAddOns", userPoolAddOns()).build(); }
return Optional.ofNullable(clazz.cast(emailVerificationMessage())); case "EmailVerificationSubject": return Optional.ofNullable(clazz.cast(emailVerificationSubject())); case "VerificationMessageTemplate": return Optional.ofNullable(clazz.cast(verificationMessageTemplate()));
return Optional.ofNullable(clazz.cast(emailVerificationMessage())); case "EmailVerificationSubject": return Optional.ofNullable(clazz.cast(emailVerificationSubject())); case "VerificationMessageTemplate": return Optional.ofNullable(clazz.cast(verificationMessageTemplate()));
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(poolName()); hashCode = 31 * hashCode + Objects.hashCode(policies()); hashCode = 31 * hashCode + Objects.hashCode(lambdaConfig()); 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(emailConfiguration()); hashCode = 31 * hashCode + Objects.hashCode(smsConfiguration()); hashCode = 31 * hashCode + Objects.hashCode(userPoolTags()); hashCode = 31 * hashCode + Objects.hashCode(adminCreateUserConfig()); hashCode = 31 * hashCode + Objects.hashCode(schema()); hashCode = 31 * hashCode + Objects.hashCode(userPoolAddOns()); return hashCode; }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(poolName()); hashCode = 31 * hashCode + Objects.hashCode(policies()); hashCode = 31 * hashCode + Objects.hashCode(lambdaConfig()); 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(emailConfiguration()); hashCode = 31 * hashCode + Objects.hashCode(smsConfiguration()); hashCode = 31 * hashCode + Objects.hashCode(userPoolTags()); hashCode = 31 * hashCode + Objects.hashCode(adminCreateUserConfig()); hashCode = 31 * hashCode + Objects.hashCode(schema()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof CreateUserPoolRequest)) { return false; } CreateUserPoolRequest other = (CreateUserPoolRequest) obj; return Objects.equals(poolName(), other.poolName()) && Objects.equals(policies(), other.policies()) && Objects.equals(lambdaConfig(), other.lambdaConfig()) && 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(emailConfiguration(), other.emailConfiguration()) && Objects.equals(smsConfiguration(), other.smsConfiguration()) && Objects.equals(userPoolTags(), other.userPoolTags()) && Objects.equals(adminCreateUserConfig(), other.adminCreateUserConfig()) && Objects.equals(schema(), other.schema()) && Objects.equals(userPoolAddOns(), other.userPoolAddOns()); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof CreateUserPoolRequest)) { return false; } CreateUserPoolRequest other = (CreateUserPoolRequest) obj; return Objects.equals(poolName(), other.poolName()) && Objects.equals(policies(), other.policies()) && Objects.equals(lambdaConfig(), other.lambdaConfig()) && 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(emailConfiguration(), other.emailConfiguration()) && Objects.equals(smsConfiguration(), other.smsConfiguration()) && Objects.equals(userPoolTags(), other.userPoolTags()) && Objects.equals(adminCreateUserConfig(), other.adminCreateUserConfig()) && Objects.equals(schema(), other.schema()); }
/** * Marshall the given parameter object */ public void marshall(CreateUserPoolRequest createUserPoolRequest, ProtocolMarshaller protocolMarshaller) { Validate.paramNotNull(createUserPoolRequest, "createUserPoolRequest"); Validate.paramNotNull(protocolMarshaller, "protocolMarshaller"); try { protocolMarshaller.marshall(createUserPoolRequest.poolName(), POOLNAME_BINDING); protocolMarshaller.marshall(createUserPoolRequest.policies(), POLICIES_BINDING); protocolMarshaller.marshall(createUserPoolRequest.lambdaConfig(), LAMBDACONFIG_BINDING); protocolMarshaller.marshall(createUserPoolRequest.autoVerifiedAttributesAsStrings(), AUTOVERIFIEDATTRIBUTES_BINDING); protocolMarshaller.marshall(createUserPoolRequest.aliasAttributesAsStrings(), ALIASATTRIBUTES_BINDING); protocolMarshaller.marshall(createUserPoolRequest.usernameAttributesAsStrings(), USERNAMEATTRIBUTES_BINDING); protocolMarshaller.marshall(createUserPoolRequest.smsVerificationMessage(), SMSVERIFICATIONMESSAGE_BINDING); protocolMarshaller.marshall(createUserPoolRequest.emailVerificationMessage(), EMAILVERIFICATIONMESSAGE_BINDING); protocolMarshaller.marshall(createUserPoolRequest.emailVerificationSubject(), EMAILVERIFICATIONSUBJECT_BINDING); protocolMarshaller.marshall(createUserPoolRequest.verificationMessageTemplate(), VERIFICATIONMESSAGETEMPLATE_BINDING); protocolMarshaller.marshall(createUserPoolRequest.smsAuthenticationMessage(), SMSAUTHENTICATIONMESSAGE_BINDING); protocolMarshaller.marshall(createUserPoolRequest.mfaConfigurationAsString(), MFACONFIGURATION_BINDING); protocolMarshaller.marshall(createUserPoolRequest.deviceConfiguration(), DEVICECONFIGURATION_BINDING); protocolMarshaller.marshall(createUserPoolRequest.emailConfiguration(), EMAILCONFIGURATION_BINDING); protocolMarshaller.marshall(createUserPoolRequest.smsConfiguration(), SMSCONFIGURATION_BINDING); protocolMarshaller.marshall(createUserPoolRequest.userPoolTags(), USERPOOLTAGS_BINDING); protocolMarshaller.marshall(createUserPoolRequest.adminCreateUserConfig(), ADMINCREATEUSERCONFIG_BINDING); protocolMarshaller.marshall(createUserPoolRequest.schema(), SCHEMA_BINDING); } catch (Exception e) { throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build(); } } }