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