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