Class ImmutableDockerCredentials
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.domain.ImmutableDockerCredentials
-
- All Implemented Interfaces:
DockerCredentials
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableDockerCredentials extends Object implements DockerCredentials
Immutable implementation ofDockerCredentials.Use the builder to create immutable instances:
ImmutableDockerCredentials.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableDockerCredentials.BuilderBuilds instances of typeImmutableDockerCredentials.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableDockerCredentials.Builderbuilder()Creates a builder forImmutableDockerCredentials.static ImmutableDockerCredentialscopyOf(DockerCredentials instance)Creates an immutable copy of aDockerCredentialsvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableDockerCredentialsthat have equal attribute values.StringgetPassword()StringgetUsername()inthashCode()Computes a hash code from attributes:username,password.StringtoString()Prints the immutable valueDockerCredentialswith attribute values.ImmutableDockerCredentialswithPassword(String value)Copy the current immutable object by setting a value for thepasswordattribute.ImmutableDockerCredentialswithUsername(String value)Copy the current immutable object by setting a value for theusernameattribute.
-
-
-
Method Detail
-
getUsername
public String getUsername()
- Specified by:
getUsernamein interfaceDockerCredentials- Returns:
- The value of the
usernameattribute
-
getPassword
public String getPassword()
- Specified by:
getPasswordin interfaceDockerCredentials- Returns:
- The value of the
passwordattribute
-
withUsername
public final ImmutableDockerCredentials withUsername(String value)
Copy the current immutable object by setting a value for theusernameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for username- Returns:
- A modified copy of the
thisobject
-
withPassword
public final ImmutableDockerCredentials withPassword(String value)
Copy the current immutable object by setting a value for thepasswordattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for password- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableDockerCredentialsthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:username,password.
-
toString
public String toString()
Prints the immutable valueDockerCredentialswith attribute values.
-
copyOf
public static ImmutableDockerCredentials copyOf(DockerCredentials instance)
Creates an immutable copy of aDockerCredentialsvalue. 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 DockerCredentials instance
-
builder
public static ImmutableDockerCredentials.Builder builder()
Creates a builder forImmutableDockerCredentials.ImmutableDockerCredentials.builder() .username(String) // requiredusername.password(String) // requiredpassword.build();- Returns:
- A new ImmutableDockerCredentials builder
-
-