public static final class ImmutableCloudEvent.Builder extends Object
ImmutableCloudEvent.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
ImmutableCloudEvent.Builder |
actee(CloudEvent.Participant actee)
Initializes the value for the
actee attribute. |
ImmutableCloudEvent.Builder |
actor(CloudEvent.Participant actor)
Initializes the value for the
actor attribute. |
ImmutableCloudEvent |
build()
Builds a new
ImmutableCloudEvent. |
ImmutableCloudEvent.Builder |
from(CloudEntity instance)
Fill a builder with attribute values from the provided
org.cloudfoundry.client.lib.domain.CloudEntity instance. |
ImmutableCloudEvent.Builder |
from(CloudEvent instance)
Fill a builder with attribute values from the provided
org.cloudfoundry.client.lib.domain.CloudEvent instance. |
ImmutableCloudEvent.Builder |
metadata(CloudMetadata metadata)
Initializes the value for the
metadata attribute. |
ImmutableCloudEvent.Builder |
name(String name)
Initializes the value for the
name attribute. |
ImmutableCloudEvent.Builder |
timestamp(Date timestamp)
Initializes the value for the
timestamp attribute. |
ImmutableCloudEvent.Builder |
type(String type)
Initializes the value for the
type attribute. |
ImmutableCloudEvent.Builder |
v3Metadata(org.cloudfoundry.client.v3.Metadata v3Metadata)
Initializes the value for the
v3Metadata attribute. |
public final ImmutableCloudEvent.Builder from(CloudEntity instance)
org.cloudfoundry.client.lib.domain.CloudEntity instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableCloudEvent.Builder from(CloudEvent instance)
org.cloudfoundry.client.lib.domain.CloudEvent instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableCloudEvent.Builder name(String name)
name attribute.name - The value for name (can be null)this builder for use in a chained invocationpublic final ImmutableCloudEvent.Builder metadata(CloudMetadata metadata)
metadata attribute.metadata - The value for metadata (can be null)this builder for use in a chained invocationpublic final ImmutableCloudEvent.Builder v3Metadata(org.cloudfoundry.client.v3.Metadata v3Metadata)
v3Metadata attribute.v3Metadata - The value for v3Metadata (can be null)this builder for use in a chained invocationpublic final ImmutableCloudEvent.Builder type(String type)
type attribute.type - The value for type (can be null)this builder for use in a chained invocationpublic final ImmutableCloudEvent.Builder actor(CloudEvent.Participant actor)
actor attribute.actor - The value for actor (can be null)this builder for use in a chained invocationpublic final ImmutableCloudEvent.Builder actee(CloudEvent.Participant actee)
actee attribute.actee - The value for actee (can be null)this builder for use in a chained invocationpublic final ImmutableCloudEvent.Builder timestamp(Date timestamp)
timestamp attribute.timestamp - The value for timestamp (can be null)this builder for use in a chained invocationpublic ImmutableCloudEvent build()
ImmutableCloudEvent.IllegalStateException - if any required attributes are missingCopyright © 2020 SAP SE. All rights reserved.