@Override public AddCustomAttributesRequest build() { return new AddCustomAttributesRequest(this); } }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof AddCustomAttributesRequest)) { return false; } AddCustomAttributesRequest other = (AddCustomAttributesRequest) obj; return Objects.equals(userPoolId(), other.userPoolId()) && Objects.equals(customAttributes(), other.customAttributes()); }
InvalidParameterException, TooManyRequestsException, NotAuthorizedException, UserImportInProgressException, InternalErrorException, AwsServiceException, SdkClientException, CognitoIdentityProviderException { return addCustomAttributes(AddCustomAttributesRequest.builder().applyMutation(addCustomAttributesRequest).build());
return addCustomAttributes(AddCustomAttributesRequest.builder().applyMutation(addCustomAttributesRequest).build());
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(userPoolId()); hashCode = 31 * hashCode + Objects.hashCode(customAttributes()); return hashCode; }
return addCustomAttributes(AddCustomAttributesRequest.builder().applyMutation(addCustomAttributesRequest).build());
@Override public AddCustomAttributesRequest build() { return new AddCustomAttributesRequest(this); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof AddCustomAttributesRequest)) { return false; } AddCustomAttributesRequest other = (AddCustomAttributesRequest) obj; return Objects.equals(userPoolId(), other.userPoolId()) && Objects.equals(customAttributes(), other.customAttributes()); }
InvalidParameterException, TooManyRequestsException, NotAuthorizedException, UserImportInProgressException, InternalErrorException, AwsServiceException, SdkClientException, CognitoIdentityProviderException { return addCustomAttributes(AddCustomAttributesRequest.builder().applyMutation(addCustomAttributesRequest).build());
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(userPoolId()); hashCode = 31 * hashCode + Objects.hashCode(customAttributes()); return hashCode; }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "UserPoolId": return Optional.ofNullable(clazz.cast(userPoolId())); case "CustomAttributes": return Optional.ofNullable(clazz.cast(customAttributes())); default: return Optional.empty(); } }
@Override public String toString() { return ToString.builder("AddCustomAttributesRequest").add("UserPoolId", userPoolId()) .add("CustomAttributes", customAttributes()).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("AddCustomAttributesRequest").add("UserPoolId", userPoolId()) .add("CustomAttributes", customAttributes()).build(); }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "UserPoolId": return Optional.ofNullable(clazz.cast(userPoolId())); case "CustomAttributes": return Optional.ofNullable(clazz.cast(customAttributes())); default: return Optional.empty(); } }
/** * Marshall the given parameter object */ public void marshall(AddCustomAttributesRequest addCustomAttributesRequest, ProtocolMarshaller protocolMarshaller) { Validate.paramNotNull(addCustomAttributesRequest, "addCustomAttributesRequest"); Validate.paramNotNull(protocolMarshaller, "protocolMarshaller"); try { protocolMarshaller.marshall(addCustomAttributesRequest.userPoolId(), USERPOOLID_BINDING); protocolMarshaller.marshall(addCustomAttributesRequest.customAttributes(), CUSTOMATTRIBUTES_BINDING); } catch (Exception e) { throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build(); } } }