@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableCloudEvent extends Object implements CloudEvent
CloudEvent.
Use the builder to create immutable instances:
ImmutableCloudEvent.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableCloudEvent.Builder
Builds instances of type
ImmutableCloudEvent. |
static class |
ImmutableCloudEvent.ImmutableParticipant
Immutable implementation of
CloudEvent.Participant. |
CloudEvent.Participant| Modifier and Type | Method and Description |
|---|---|
static ImmutableCloudEvent.Builder |
builder()
Creates a builder for
ImmutableCloudEvent. |
static ImmutableCloudEvent |
copyOf(CloudEvent instance)
Creates an immutable copy of a
CloudEvent value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableCloudEvent that have equal attribute values. |
CloudEvent.Participant |
getActee() |
CloudEvent.Participant |
getActor() |
CloudMetadata |
getMetadata() |
String |
getName() |
Date |
getTimestamp() |
String |
getType() |
org.cloudfoundry.client.v3.Metadata |
getV3Metadata() |
int |
hashCode()
Computes a hash code from attributes:
name, metadata, v3Metadata, type, actor, actee, timestamp. |
String |
toString()
Prints the immutable value
CloudEvent with attribute values. |
ImmutableCloudEvent |
withActee(CloudEvent.Participant value)
Copy the current immutable object by setting a value for the
actee attribute. |
ImmutableCloudEvent |
withActor(CloudEvent.Participant value)
Copy the current immutable object by setting a value for the
actor attribute. |
ImmutableCloudEvent |
withMetadata(CloudMetadata value)
Copy the current immutable object by setting a value for the
metadata attribute. |
ImmutableCloudEvent |
withName(String value)
Copy the current immutable object by setting a value for the
name attribute. |
ImmutableCloudEvent |
withTimestamp(Date value)
Copy the current immutable object by setting a value for the
timestamp attribute. |
ImmutableCloudEvent |
withType(String value)
Copy the current immutable object by setting a value for the
type attribute. |
ImmutableCloudEvent |
withV3Metadata(org.cloudfoundry.client.v3.Metadata value)
Copy the current immutable object by setting a value for the
v3Metadata attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitderivepublic String getName()
getName in interface CloudEntityname attributepublic CloudMetadata getMetadata()
getMetadata in interface CloudEntitymetadata attributepublic org.cloudfoundry.client.v3.Metadata getV3Metadata()
getV3Metadata in interface CloudEntityv3Metadata attributepublic String getType()
getType in interface CloudEventtype attributepublic CloudEvent.Participant getActor()
getActor in interface CloudEventactor attributepublic CloudEvent.Participant getActee()
getActee in interface CloudEventactee attributepublic Date getTimestamp()
getTimestamp in interface CloudEventtimestamp attributepublic final ImmutableCloudEvent withName(String value)
name attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for name (can be null)this objectpublic final ImmutableCloudEvent withMetadata(CloudMetadata value)
metadata attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for metadata (can be null)this objectpublic final ImmutableCloudEvent withV3Metadata(org.cloudfoundry.client.v3.Metadata value)
v3Metadata attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for v3Metadata (can be null)this objectpublic final ImmutableCloudEvent withType(String value)
type attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for type (can be null)this objectpublic final ImmutableCloudEvent withActor(CloudEvent.Participant value)
actor attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for actor (can be null)this objectpublic final ImmutableCloudEvent withActee(CloudEvent.Participant value)
actee attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for actee (can be null)this objectpublic final ImmutableCloudEvent withTimestamp(Date value)
timestamp attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for timestamp (can be null)this objectpublic boolean equals(Object another)
ImmutableCloudEvent that have equal attribute values.public int hashCode()
name, metadata, v3Metadata, type, actor, actee, timestamp.public String toString()
CloudEvent with attribute values.public static ImmutableCloudEvent copyOf(CloudEvent instance)
CloudEvent 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 ImmutableCloudEvent.Builder builder()
ImmutableCloudEvent.
ImmutableCloudEvent.builder()
.name(String | null) // nullable name
.metadata(org.cloudfoundry.client.lib.domain.CloudMetadata | null) // nullable metadata
.v3Metadata(org.cloudfoundry.client.v3.Metadata | null) // nullable v3Metadata
.type(String | null) // nullable type
.actor(org.cloudfoundry.client.lib.domain.CloudEvent.Participant | null) // nullable actor
.actee(org.cloudfoundry.client.lib.domain.CloudEvent.Participant | null) // nullable actee
.timestamp(Date | null) // nullable timestamp
.build();
Copyright © 2020 SAP SE. All rights reserved.