@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableBasicAuthCredentials extends Object implements BasicAuthCredentials
BasicAuthCredentials.
Use the builder to create immutable instances:
ImmutableBasicAuthCredentials.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableBasicAuthCredentials.Builder
Builds instances of type
ImmutableBasicAuthCredentials. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableBasicAuthCredentials.Builder |
builder()
Creates a builder for
ImmutableBasicAuthCredentials. |
static ImmutableBasicAuthCredentials |
copyOf(BasicAuthCredentials instance)
Creates an immutable copy of a
BasicAuthCredentials value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableBasicAuthCredentials that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
userName, password. |
String |
password()
Password.
|
String |
toString()
Prints the immutable value
BasicAuthCredentials with attribute values. |
String |
userName()
Username.
|
ImmutableBasicAuthCredentials |
withPassword(String value)
Copy the current immutable object by setting a value for the
password attribute. |
ImmutableBasicAuthCredentials |
withUserName(String value)
Copy the current immutable object by setting a value for the
userName attribute. |
public String userName()
userName in interface BasicAuthCredentialspublic String password()
password in interface BasicAuthCredentialspublic final ImmutableBasicAuthCredentials withUserName(String value)
userName attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for userNamethis objectpublic final ImmutableBasicAuthCredentials withPassword(String value)
password attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for passwordthis objectpublic boolean equals(@Nullable Object another)
ImmutableBasicAuthCredentials that have equal attribute values.public int hashCode()
userName, password.public String toString()
BasicAuthCredentials with attribute values.public static ImmutableBasicAuthCredentials copyOf(BasicAuthCredentials instance)
BasicAuthCredentials value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableBasicAuthCredentials.Builder builder()
ImmutableBasicAuthCredentials.
ImmutableBasicAuthCredentials.builder()
.userName(String) // required userName
.password(String) // required password
.build();
Copyright © 2021–2022 Amazon Web Services. All rights reserved.