@Override public AdminDeleteUserAttributesRequest build() { return new AdminDeleteUserAttributesRequest(this); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof AdminDeleteUserAttributesRequest)) { return false; } AdminDeleteUserAttributesRequest other = (AdminDeleteUserAttributesRequest) obj; return Objects.equals(userPoolId(), other.userPoolId()) && Objects.equals(username(), other.username()) && Objects.equals(userAttributeNames(), other.userAttributeNames()); }
return adminDeleteUserAttributes(AdminDeleteUserAttributesRequest.builder() .applyMutation(adminDeleteUserAttributesRequest).build());
return adminDeleteUserAttributes(AdminDeleteUserAttributesRequest.builder() .applyMutation(adminDeleteUserAttributesRequest).build());
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(userPoolId()); hashCode = 31 * hashCode + Objects.hashCode(username()); hashCode = 31 * hashCode + Objects.hashCode(userAttributeNames()); return hashCode; }
UserNotFoundException, InternalErrorException, AwsServiceException, SdkClientException, CognitoIdentityProviderException { return adminDeleteUserAttributes(AdminDeleteUserAttributesRequest.builder() .applyMutation(adminDeleteUserAttributesRequest).build());
@Override public AdminDeleteUserAttributesRequest build() { return new AdminDeleteUserAttributesRequest(this); } }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(userPoolId()); hashCode = 31 * hashCode + Objects.hashCode(username()); hashCode = 31 * hashCode + Objects.hashCode(userAttributeNames()); return hashCode; }
UserNotFoundException, InternalErrorException, AwsServiceException, SdkClientException, CognitoIdentityProviderException { return adminDeleteUserAttributes(AdminDeleteUserAttributesRequest.builder() .applyMutation(adminDeleteUserAttributesRequest).build());
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof AdminDeleteUserAttributesRequest)) { return false; } AdminDeleteUserAttributesRequest other = (AdminDeleteUserAttributesRequest) obj; return Objects.equals(userPoolId(), other.userPoolId()) && Objects.equals(username(), other.username()) && Objects.equals(userAttributeNames(), other.userAttributeNames()); }
@Override public String toString() { return ToString.builder("AdminDeleteUserAttributesRequest").add("UserPoolId", userPoolId()).add("Username", username()) .add("UserAttributeNames", userAttributeNames()).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("AdminDeleteUserAttributesRequest").add("UserPoolId", userPoolId()) .add("Username", username() == null ? null : "*** Sensitive Data Redacted ***") .add("UserAttributeNames", userAttributeNames()).build(); }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "UserPoolId": return Optional.ofNullable(clazz.cast(userPoolId())); case "Username": return Optional.ofNullable(clazz.cast(username())); case "UserAttributeNames": return Optional.ofNullable(clazz.cast(userAttributeNames())); default: return Optional.empty(); } }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "UserPoolId": return Optional.ofNullable(clazz.cast(userPoolId())); case "Username": return Optional.ofNullable(clazz.cast(username())); case "UserAttributeNames": return Optional.ofNullable(clazz.cast(userAttributeNames())); default: return Optional.empty(); } }
/** * Marshall the given parameter object */ public void marshall(AdminDeleteUserAttributesRequest adminDeleteUserAttributesRequest, ProtocolMarshaller protocolMarshaller) { Validate.paramNotNull(adminDeleteUserAttributesRequest, "adminDeleteUserAttributesRequest"); Validate.paramNotNull(protocolMarshaller, "protocolMarshaller"); try { protocolMarshaller.marshall(adminDeleteUserAttributesRequest.userPoolId(), USERPOOLID_BINDING); protocolMarshaller.marshall(adminDeleteUserAttributesRequest.username(), USERNAME_BINDING); protocolMarshaller.marshall(adminDeleteUserAttributesRequest.userAttributeNames(), USERATTRIBUTENAMES_BINDING); } catch (Exception e) { throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build(); } } }