Class ImmutableCloudMetadata
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.domain.ImmutableCloudMetadata
-
- All Implemented Interfaces:
CloudMetadata
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableCloudMetadata extends Object implements CloudMetadata
Immutable implementation ofCloudMetadata.Use the builder to create immutable instances:
ImmutableCloudMetadata.builder(). Use the static factory method to create immutable instances:ImmutableCloudMetadata.of().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableCloudMetadata.BuilderBuilds instances of typeImmutableCloudMetadata.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableCloudMetadata.Builderbuilder()Creates a builder forImmutableCloudMetadata.static ImmutableCloudMetadatacopyOf(CloudMetadata instance)Creates an immutable copy of aCloudMetadatavalue.booleanequals(Object another)This instance is equal to all instances ofImmutableCloudMetadatathat have equal attribute values.LocalDateTimegetCreatedAt()UUIDgetGuid()LocalDateTimegetUpdatedAt()StringgetUrl()inthashCode()Computes a hash code from attributes:guid,createdAt,updatedAt,url.static ImmutableCloudMetadataof(UUID guid)Construct a new immutableCloudMetadatainstance.StringtoString()Prints the immutable valueCloudMetadatawith attribute values.ImmutableCloudMetadatawithCreatedAt(LocalDateTime value)Copy the current immutable object by setting a value for thecreatedAtattribute.ImmutableCloudMetadatawithGuid(UUID value)Copy the current immutable object by setting a value for theguidattribute.ImmutableCloudMetadatawithUpdatedAt(LocalDateTime value)Copy the current immutable object by setting a value for theupdatedAtattribute.ImmutableCloudMetadatawithUrl(String value)Copy the current immutable object by setting a value for theurlattribute.
-
-
-
Method Detail
-
getGuid
public UUID getGuid()
- Specified by:
getGuidin interfaceCloudMetadata- Returns:
- The value of the
guidattribute
-
getCreatedAt
public LocalDateTime getCreatedAt()
- Specified by:
getCreatedAtin interfaceCloudMetadata- Returns:
- The value of the
createdAtattribute
-
getUpdatedAt
public LocalDateTime getUpdatedAt()
- Specified by:
getUpdatedAtin interfaceCloudMetadata- Returns:
- The value of the
updatedAtattribute
-
getUrl
public String getUrl()
- Specified by:
getUrlin interfaceCloudMetadata- Returns:
- The value of the
urlattribute
-
withGuid
public final ImmutableCloudMetadata withGuid(UUID value)
Copy the current immutable object by setting a value for theguidattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for guid (can benull)- Returns:
- A modified copy of the
thisobject
-
withCreatedAt
public final ImmutableCloudMetadata withCreatedAt(LocalDateTime value)
Copy the current immutable object by setting a value for thecreatedAtattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for createdAt (can benull)- Returns:
- A modified copy of the
thisobject
-
withUpdatedAt
public final ImmutableCloudMetadata withUpdatedAt(LocalDateTime value)
Copy the current immutable object by setting a value for theupdatedAtattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for updatedAt (can benull)- Returns:
- A modified copy of the
thisobject
-
withUrl
public final ImmutableCloudMetadata withUrl(String value)
Copy the current immutable object by setting a value for theurlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for url (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableCloudMetadatathat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:guid,createdAt,updatedAt,url.
-
toString
public String toString()
Prints the immutable valueCloudMetadatawith attribute values.
-
of
public static ImmutableCloudMetadata of(UUID guid)
Construct a new immutableCloudMetadatainstance.- Parameters:
guid- The value for theguidattribute- Returns:
- An immutable CloudMetadata instance
-
copyOf
public static ImmutableCloudMetadata copyOf(CloudMetadata instance)
Creates an immutable copy of aCloudMetadatavalue. 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 CloudMetadata instance
-
builder
public static ImmutableCloudMetadata.Builder builder()
Creates a builder forImmutableCloudMetadata.ImmutableCloudMetadata.builder() .guid(UUID | null) // nullableguid.createdAt(java.time.LocalDateTime | null) // nullablecreatedAt.updatedAt(java.time.LocalDateTime | null) // nullableupdatedAt.url(String | null) // nullableurl.build();- Returns:
- A new ImmutableCloudMetadata builder
-
-