@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableDockerCredentials extends Object implements DockerCredentials
DockerCredentials.
Use the builder to create immutable instances:
ImmutableDockerCredentials.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableDockerCredentials.Builder
Builds instances of type
ImmutableDockerCredentials. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableDockerCredentials.Builder |
builder()
Creates a builder for
ImmutableDockerCredentials. |
static ImmutableDockerCredentials |
copyOf(DockerCredentials instance)
Creates an immutable copy of a
DockerCredentials value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableDockerCredentials that have equal attribute values. |
String |
getPassword() |
String |
getUsername() |
int |
hashCode()
Computes a hash code from attributes:
username, password. |
String |
toString()
Prints the immutable value
DockerCredentials with attribute values. |
ImmutableDockerCredentials |
withPassword(String value)
Copy the current immutable object by setting a value for the
password attribute. |
ImmutableDockerCredentials |
withUsername(String value)
Copy the current immutable object by setting a value for the
username attribute. |
public String getUsername()
getUsername in interface DockerCredentialsusername attributepublic String getPassword()
getPassword in interface DockerCredentialspassword attributepublic final ImmutableDockerCredentials 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 ImmutableDockerCredentials 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(Object another)
ImmutableDockerCredentials that have equal attribute values.public int hashCode()
username, password.public String toString()
DockerCredentials with attribute values.public static ImmutableDockerCredentials copyOf(DockerCredentials instance)
DockerCredentials 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 ImmutableDockerCredentials.Builder builder()
ImmutableDockerCredentials.
ImmutableDockerCredentials.builder()
.username(String) // required username
.password(String) // required password
.build();
Copyright © 2020 SAP SE. All rights reserved.