Package io.resys.hdes.client.api
Class ImmutableHdesCreds
java.lang.Object
io.resys.hdes.client.api.ImmutableHdesCreds
- All Implemented Interfaces:
HdesStore.HdesCreds
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableHdesCreds
extends Object
implements HdesStore.HdesCreds
Immutable implementation of
HdesStore.HdesCreds.
Use the builder to create immutable instances:
ImmutableHdesCreds.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableHdesCreds.Builderbuilder()Creates a builder forImmutableHdesCreds.static ImmutableHdesCredscopyOf(HdesStore.HdesCreds instance) Creates an immutable copy of aHdesStore.HdesCredsvalue.booleanThis instance is equal to all instances ofImmutableHdesCredsthat have equal attribute values.getEmail()getUser()inthashCode()Computes a hash code from attributes:user,email.toString()Prints the immutable valueHdesCredswith attribute values.final ImmutableHdesCredsCopy the current immutable object by setting a value for theemailattribute.final ImmutableHdesCredsCopy the current immutable object by setting a value for theuserattribute.
-
Method Details
-
getUser
- Specified by:
getUserin interfaceHdesStore.HdesCreds- Returns:
- The value of the
userattribute
-
getEmail
- Specified by:
getEmailin interfaceHdesStore.HdesCreds- Returns:
- The value of the
emailattribute
-
withUser
Copy the current immutable object by setting a value for theuserattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for user- Returns:
- A modified copy of the
thisobject
-
withEmail
Copy the current immutable object by setting a value for theemailattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for email- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableHdesCredsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:user,email. -
toString
Prints the immutable valueHdesCredswith attribute values. -
copyOf
Creates an immutable copy of aHdesStore.HdesCredsvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable HdesCreds instance
-
builder
Creates a builder forImmutableHdesCreds.ImmutableHdesCreds.builder() .user(String) // requireduser.email(String) // requiredemail.build();- Returns:
- A new ImmutableHdesCreds builder
-