Class ImmutableDockerData
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.domain.ImmutableDockerData
-
- All Implemented Interfaces:
CloudPackage.PackageData,DockerData
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableDockerData extends Object implements DockerData
Immutable implementation ofDockerData.Use the builder to create immutable instances:
ImmutableDockerData.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableDockerData.BuilderBuilds instances of typeImmutableDockerData.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableDockerData.Builderbuilder()Creates a builder forImmutableDockerData.static ImmutableDockerDatacopyOf(DockerData instance)Creates an immutable copy of aDockerDatavalue.booleanequals(Object another)This instance is equal to all instances ofImmutableDockerDatathat have equal attribute values.StringgetImage()StringgetPassword()StringgetUsername()inthashCode()Computes a hash code from attributes:image,username,password.StringtoString()Prints the immutable valueDockerDatawith attribute values.ImmutableDockerDatawithImage(String value)Copy the current immutable object by setting a value for theimageattribute.ImmutableDockerDatawithPassword(String value)Copy the current immutable object by setting a value for thepasswordattribute.ImmutableDockerDatawithUsername(String value)Copy the current immutable object by setting a value for theusernameattribute.
-
-
-
Method Detail
-
getImage
public String getImage()
- Specified by:
getImagein interfaceDockerData- Returns:
- The value of the
imageattribute
-
getUsername
public String getUsername()
- Specified by:
getUsernamein interfaceDockerData- Returns:
- The value of the
usernameattribute
-
getPassword
public String getPassword()
- Specified by:
getPasswordin interfaceDockerData- Returns:
- The value of the
passwordattribute
-
withImage
public final ImmutableDockerData 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
-
withUsername
public final ImmutableDockerData 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 (can benull)- Returns:
- A modified copy of the
thisobject
-
withPassword
public final ImmutableDockerData 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 (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableDockerDatathat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:image,username,password.
-
toString
public String toString()
Prints the immutable valueDockerDatawith attribute values.
-
copyOf
public static ImmutableDockerData copyOf(DockerData instance)
Creates an immutable copy of aDockerDatavalue. 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 DockerData instance
-
builder
public static ImmutableDockerData.Builder builder()
Creates a builder forImmutableDockerData.ImmutableDockerData.builder() .image(String) // requiredimage.username(String | null) // nullableusername.password(String | null) // nullablepassword.build();- Returns:
- A new ImmutableDockerData builder
-
-