Package io.dialob.client.api
Class ImmutableDialobCreds
- java.lang.Object
-
- io.dialob.client.api.ImmutableDialobCreds
-
- All Implemented Interfaces:
DialobStore.DialobCreds
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableDialobCreds extends Object implements DialobStore.DialobCreds
Immutable implementation ofDialobStore.DialobCreds.Use the builder to create immutable instances:
ImmutableDialobCreds.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableDialobCreds.BuilderBuilds instances of typeImmutableDialobCreds.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableDialobCreds.Builderbuilder()Creates a builder forImmutableDialobCreds.static ImmutableDialobCredscopyOf(DialobStore.DialobCreds instance)Creates an immutable copy of aDialobStore.DialobCredsvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableDialobCredsthat have equal attribute values.StringgetEmail()StringgetUser()inthashCode()Computes a hash code from attributes:user,email.StringtoString()Prints the immutable valueDialobCredswith attribute values.ImmutableDialobCredswithEmail(String value)Copy the current immutable object by setting a value for theemailattribute.ImmutableDialobCredswithUser(String value)Copy the current immutable object by setting a value for theuserattribute.
-
-
-
Method Detail
-
getUser
public String getUser()
- Specified by:
getUserin interfaceDialobStore.DialobCreds- Returns:
- The value of the
userattribute
-
getEmail
public String getEmail()
- Specified by:
getEmailin interfaceDialobStore.DialobCreds- Returns:
- The value of the
emailattribute
-
withUser
public final ImmutableDialobCreds withUser(String value)
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
public final ImmutableDialobCreds withEmail(String value)
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
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableDialobCredsthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:user,email.
-
toString
public String toString()
Prints the immutable valueDialobCredswith attribute values.
-
copyOf
public static ImmutableDialobCreds copyOf(DialobStore.DialobCreds instance)
Creates an immutable copy of aDialobStore.DialobCredsvalue. 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 DialobCreds instance
-
builder
public static ImmutableDialobCreds.Builder builder()
Creates a builder forImmutableDialobCreds.ImmutableDialobCreds.builder() .user(String) // requireduser.email(String) // requiredemail.build();- Returns:
- A new ImmutableDialobCreds builder
-
-