@Override public ProviderUserIdentifierType build() { return new ProviderUserIdentifierType(this); } }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(providerName()); hashCode = 31 * hashCode + Objects.hashCode(providerAttributeName()); hashCode = 31 * hashCode + Objects.hashCode(providerAttributeValue()); return hashCode; }
public final ProviderUserIdentifierType.Builder getSourceUser() { return sourceUser != null ? sourceUser.toBuilder() : null; }
/** * <p> * The user to be disabled. * </p> * This is a convenience that creates an instance of the {@link ProviderUserIdentifierType.Builder} avoiding the * need to create one manually via {@link ProviderUserIdentifierType#builder()}. * * When the {@link Consumer} completes, {@link ProviderUserIdentifierType.Builder#build()} is called immediately * and its result is passed to {@link #user(ProviderUserIdentifierType)}. * * @param user * a consumer that will call methods on {@link ProviderUserIdentifierType.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #user(ProviderUserIdentifierType) */ default Builder user(Consumer<ProviderUserIdentifierType.Builder> user) { return user(ProviderUserIdentifierType.builder().applyMutation(user).build()); }
/** * <p> * The user to be disabled. * </p> * This is a convenience that creates an instance of the {@link ProviderUserIdentifierType.Builder} avoiding the * need to create one manually via {@link ProviderUserIdentifierType#builder()}. * * When the {@link Consumer} completes, {@link ProviderUserIdentifierType.Builder#build()} is called immediately * and its result is passed to {@link #user(ProviderUserIdentifierType)}. * * @param user * a consumer that will call methods on {@link ProviderUserIdentifierType.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #user(ProviderUserIdentifierType) */ default Builder user(Consumer<ProviderUserIdentifierType.Builder> user) { return user(ProviderUserIdentifierType.builder().applyMutation(user).build()); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof ProviderUserIdentifierType)) { return false; } ProviderUserIdentifierType other = (ProviderUserIdentifierType) obj; return Objects.equals(providerName(), other.providerName()) && Objects.equals(providerAttributeName(), other.providerAttributeName()) && Objects.equals(providerAttributeValue(), other.providerAttributeValue()); }
/** * <p> * The existing user in the user pool to be linked to the external identity provider user account. Can be a * native (Username + Password) Cognito User Pools user or a federated user (for example, a SAML or Facebook * user). If the user doesn't exist, an exception is thrown. This is the user that is returned when the new user * (with the linked identity provider attribute) signs in. * </p> * <p> * The <code>ProviderAttributeValue</code> for the <code>DestinationUser</code> must match the username for the * user in the user pool. The <code>ProviderAttributeName</code> will always be ignored. * </p> * This is a convenience that creates an instance of the {@link ProviderUserIdentifierType.Builder} avoiding the * need to create one manually via {@link ProviderUserIdentifierType#builder()}. * * When the {@link Consumer} completes, {@link ProviderUserIdentifierType.Builder#build()} is called immediately * and its result is passed to {@link #destinationUser(ProviderUserIdentifierType)}. * * @param destinationUser * a consumer that will call methods on {@link ProviderUserIdentifierType.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #destinationUser(ProviderUserIdentifierType) */ default Builder destinationUser(Consumer<ProviderUserIdentifierType.Builder> destinationUser) { return destinationUser(ProviderUserIdentifierType.builder().applyMutation(destinationUser).build()); }
public final ProviderUserIdentifierType.Builder getUser() { return user != null ? user.toBuilder() : null; }
@Override public ProviderUserIdentifierType build() { return new ProviderUserIdentifierType(this); }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(providerName()); hashCode = 31 * hashCode + Objects.hashCode(providerAttributeName()); hashCode = 31 * hashCode + Objects.hashCode(providerAttributeValue()); return hashCode; }
return destinationUser(ProviderUserIdentifierType.builder().applyMutation(destinationUser).build());
public final ProviderUserIdentifierType.Builder getDestinationUser() { return destinationUser != null ? destinationUser.toBuilder() : null; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof ProviderUserIdentifierType)) { return false; } ProviderUserIdentifierType other = (ProviderUserIdentifierType) obj; return Objects.equals(providerName(), other.providerName()) && Objects.equals(providerAttributeName(), other.providerAttributeName()) && Objects.equals(providerAttributeValue(), other.providerAttributeValue()); }
return sourceUser(ProviderUserIdentifierType.builder().applyMutation(sourceUser).build());
public final ProviderUserIdentifierType.Builder getDestinationUser() { return destinationUser != null ? destinationUser.toBuilder() : null; }
/** * 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("ProviderUserIdentifierType").add("ProviderName", providerName()) .add("ProviderAttributeName", providerAttributeName()).add("ProviderAttributeValue", providerAttributeValue()) .build(); }
return sourceUser(ProviderUserIdentifierType.builder().applyMutation(sourceUser).build());
public final ProviderUserIdentifierType.Builder getSourceUser() { return sourceUser != null ? sourceUser.toBuilder() : null; }
@Override public String toString() { return ToString.builder("ProviderUserIdentifierType").add("ProviderName", providerName()) .add("ProviderAttributeName", providerAttributeName()).add("ProviderAttributeValue", providerAttributeValue()) .build(); }
public ProviderUserIdentifierType unmarshall(JsonUnmarshallerContext context) throws Exception { ProviderUserIdentifierType.Builder providerUserIdentifierTypeBuilder = ProviderUserIdentifierType.builder();