Class ImmutableRawCloudEvent
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.adapters.RawCloudEntity<CloudEvent>
-
- com.sap.cloudfoundry.client.facade.adapters.RawCloudEvent
-
- com.sap.cloudfoundry.client.facade.adapters.ImmutableRawCloudEvent
-
- All Implemented Interfaces:
Derivable<CloudEvent>
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableRawCloudEvent extends RawCloudEvent
Immutable implementation ofRawCloudEvent.Use the builder to create immutable instances:
ImmutableRawCloudEvent.builder(). Use the static factory method to create immutable instances:ImmutableRawCloudEvent.of().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableRawCloudEvent.BuilderBuilds instances of typeImmutableRawCloudEvent.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableRawCloudEvent.Builderbuilder()Creates a builder forImmutableRawCloudEvent.static ImmutableRawCloudEventcopyOf(RawCloudEvent instance)Creates an immutable copy of aRawCloudEventvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableRawCloudEventthat have equal attribute values.org.cloudfoundry.client.v3.auditevents.AuditEventResourcegetResource()inthashCode()Computes a hash code from attributes:resource.static ImmutableRawCloudEventof(org.cloudfoundry.client.v3.auditevents.AuditEventResource resource)Construct a new immutableRawCloudEventinstance.StringtoString()Prints the immutable valueRawCloudEventwith attribute values.ImmutableRawCloudEventwithResource(org.cloudfoundry.client.v3.auditevents.AuditEventResource value)Copy the current immutable object by setting a value for theresourceattribute.-
Methods inherited from class com.sap.cloudfoundry.client.facade.adapters.RawCloudEvent
derive
-
Methods inherited from class com.sap.cloudfoundry.client.facade.adapters.RawCloudEntity
derive, deriveFromNullable, parseDate, parseEnum, parseGuid, parseNullableDate, parseNullableGuid, parseResourceMetadata
-
-
-
-
Method Detail
-
getResource
public org.cloudfoundry.client.v3.auditevents.AuditEventResource getResource()
- Specified by:
getResourcein classRawCloudEvent- Returns:
- The value of the
resourceattribute
-
withResource
public final ImmutableRawCloudEvent withResource(org.cloudfoundry.client.v3.auditevents.AuditEventResource value)
Copy the current immutable object by setting a value for theresourceattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for resource- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableRawCloudEventthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:resource.
-
toString
public String toString()
Prints the immutable valueRawCloudEventwith attribute values.
-
of
public static ImmutableRawCloudEvent of(org.cloudfoundry.client.v3.auditevents.AuditEventResource resource)
Construct a new immutableRawCloudEventinstance.- Parameters:
resource- The value for theresourceattribute- Returns:
- An immutable RawCloudEvent instance
-
copyOf
public static ImmutableRawCloudEvent copyOf(RawCloudEvent instance)
Creates an immutable copy of aRawCloudEventvalue. 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 RawCloudEvent instance
-
builder
public static ImmutableRawCloudEvent.Builder builder()
Creates a builder forImmutableRawCloudEvent.ImmutableRawCloudEvent.builder() .resource(org.cloudfoundry.client.v3.auditevents.AuditEventResource) // requiredresource.build();- Returns:
- A new ImmutableRawCloudEvent builder
-
-