Class ImmutableDockerInfo
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.domain.ImmutableDockerInfo
-
- All Implemented Interfaces:
DockerInfo
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableDockerInfo extends Object implements DockerInfo
Immutable implementation ofDockerInfo.Use the builder to create immutable instances:
ImmutableDockerInfo.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableDockerInfo.BuilderBuilds instances of typeImmutableDockerInfo.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableDockerInfo.Builderbuilder()Creates a builder forImmutableDockerInfo.static ImmutableDockerInfocopyOf(DockerInfo instance)Creates an immutable copy of aDockerInfovalue.booleanequals(Object another)This instance is equal to all instances ofImmutableDockerInfothat have equal attribute values.DockerCredentialsgetCredentials()StringgetImage()inthashCode()Computes a hash code from attributes:image,credentials.StringtoString()Prints the immutable valueDockerInfowith attribute values.ImmutableDockerInfowithCredentials(DockerCredentials value)Copy the current immutable object by setting a value for thecredentialsattribute.ImmutableDockerInfowithImage(String value)Copy the current immutable object by setting a value for theimageattribute.
-
-
-
Method Detail
-
getImage
public String getImage()
- Specified by:
getImagein interfaceDockerInfo- Returns:
- The value of the
imageattribute
-
getCredentials
public DockerCredentials getCredentials()
- Specified by:
getCredentialsin interfaceDockerInfo- Returns:
- The value of the
credentialsattribute
-
withImage
public final ImmutableDockerInfo withImage(String value)
Copy the current immutable object by setting a value for theimageattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for image- Returns:
- A modified copy of the
thisobject
-
withCredentials
public final ImmutableDockerInfo withCredentials(DockerCredentials value)
Copy the current immutable object by setting a value for thecredentialsattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for credentials (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableDockerInfothat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:image,credentials.
-
toString
public String toString()
Prints the immutable valueDockerInfowith attribute values.
-
copyOf
public static ImmutableDockerInfo copyOf(DockerInfo instance)
Creates an immutable copy of aDockerInfovalue. 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 DockerInfo instance
-
builder
public static ImmutableDockerInfo.Builder builder()
Creates a builder forImmutableDockerInfo.ImmutableDockerInfo.builder() .image(String) // requiredimage.credentials(com.sap.cloudfoundry.client.facade.domain.DockerCredentials | null) // nullablecredentials.build();- Returns:
- A new ImmutableDockerInfo builder
-
-