@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableDockerInfo extends Object implements DockerInfo
DockerInfo.
Use the builder to create immutable instances:
ImmutableDockerInfo.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableDockerInfo.Builder
Builds instances of type
ImmutableDockerInfo. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableDockerInfo.Builder |
builder()
Creates a builder for
ImmutableDockerInfo. |
static ImmutableDockerInfo |
copyOf(DockerInfo instance)
Creates an immutable copy of a
DockerInfo value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableDockerInfo that have equal attribute values. |
DockerCredentials |
getCredentials() |
String |
getImage() |
int |
hashCode()
Computes a hash code from attributes:
image, credentials. |
String |
toString()
Prints the immutable value
DockerInfo with attribute values. |
ImmutableDockerInfo |
withCredentials(DockerCredentials value)
Copy the current immutable object by setting a value for the
credentials attribute. |
ImmutableDockerInfo |
withImage(String value)
Copy the current immutable object by setting a value for the
image attribute. |
public String getImage()
getImage in interface DockerInfoimage attributepublic DockerCredentials getCredentials()
getCredentials in interface DockerInfocredentials attributepublic final ImmutableDockerInfo withImage(String value)
image attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for imagethis objectpublic final ImmutableDockerInfo withCredentials(DockerCredentials value)
credentials attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for credentials (can be null)this objectpublic boolean equals(Object another)
ImmutableDockerInfo that have equal attribute values.public int hashCode()
image, credentials.public String toString()
DockerInfo with attribute values.public static ImmutableDockerInfo copyOf(DockerInfo instance)
DockerInfo 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 ImmutableDockerInfo.Builder builder()
ImmutableDockerInfo.
ImmutableDockerInfo.builder()
.image(String) // required image
.credentials(org.cloudfoundry.client.lib.domain.DockerCredentials | null) // nullable credentials
.build();
Copyright © 2020 SAP SE. All rights reserved.