public static final class EventEntity.Builder extends Object
EventEntity.
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 |
|---|---|
EventEntity.Builder |
actee(String actee)
Initializes the value for the
actee attribute. |
EventEntity.Builder |
acteeName(String acteeName)
Initializes the value for the
acteeName attribute. |
EventEntity.Builder |
acteeType(String acteeType)
Initializes the value for the
acteeType attribute. |
EventEntity.Builder |
actor(String actor)
Initializes the value for the
actor attribute. |
EventEntity.Builder |
actorName(String actorName)
Initializes the value for the
actorName attribute. |
EventEntity.Builder |
actorType(String actorType)
Initializes the value for the
actorType attribute. |
EventEntity |
build()
Builds a new
EventEntity. |
EventEntity.Builder |
from(EventEntity instance)
Fill a builder with attribute values from the provided
EventEntity instance. |
EventEntity.Builder |
metadata(Map.Entry<String,? extends Optional<Object>> entry)
Put one entry to the
metadatas map. |
EventEntity.Builder |
metadata(String key,
Optional<Object> value)
Put one entry to the
metadatas map. |
EventEntity.Builder |
metadatas(Map<String,? extends Optional<Object>> metadatas)
Sets or replaces all mappings from the specified map as entries for the
metadatas map. |
EventEntity.Builder |
organizationId(String organizationId)
Initializes the value for the
organizationId attribute. |
EventEntity.Builder |
putAllMetadatas(Map<String,? extends Optional<Object>> metadatas)
Put all mappings from the specified map as entries to
metadatas map. |
EventEntity.Builder |
spaceId(String spaceId)
Initializes the value for the
spaceId attribute. |
EventEntity.Builder |
timestamp(String timestamp)
Initializes the value for the
timestamp attribute. |
EventEntity.Builder |
type(String type)
Initializes the value for the
type attribute. |
public final EventEntity.Builder from(EventEntity instance)
EventEntity instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.
Collection elements and entries will be added, not replaced.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final EventEntity.Builder actee(String actee)
actee attribute.actee - The value for actee (can be null)this builder for use in a chained invocationpublic final EventEntity.Builder acteeName(String acteeName)
acteeName attribute.acteeName - The value for acteeName (can be null)this builder for use in a chained invocationpublic final EventEntity.Builder acteeType(String acteeType)
acteeType attribute.acteeType - The value for acteeType (can be null)this builder for use in a chained invocationpublic final EventEntity.Builder actor(String actor)
actor attribute.actor - The value for actor (can be null)this builder for use in a chained invocationpublic final EventEntity.Builder actorName(String actorName)
actorName attribute.actorName - The value for actorName (can be null)this builder for use in a chained invocationpublic final EventEntity.Builder actorType(String actorType)
actorType attribute.actorType - The value for actorType (can be null)this builder for use in a chained invocationpublic final EventEntity.Builder metadata(String key, Optional<Object> value)
metadatas map.key - The key in the metadatas mapvalue - The associated value in the metadatas mapthis builder for use in a chained invocationpublic final EventEntity.Builder metadata(Map.Entry<String,? extends Optional<Object>> entry)
metadatas map. Nulls are not permittedentry - The key and value entrythis builder for use in a chained invocationpublic final EventEntity.Builder metadatas(Map<String,? extends Optional<Object>> metadatas)
metadatas map. Nulls are not permitted as keys or values, but parameter itself can be nullmetadatas - The entries that will be added to the metadatas mapthis builder for use in a chained invocationpublic final EventEntity.Builder putAllMetadatas(Map<String,? extends Optional<Object>> metadatas)
metadatas map. Nulls are not permittedmetadatas - The entries that will be added to the metadatas mapthis builder for use in a chained invocationpublic final EventEntity.Builder organizationId(String organizationId)
organizationId attribute.organizationId - The value for organizationId (can be null)this builder for use in a chained invocationpublic final EventEntity.Builder spaceId(String spaceId)
spaceId attribute.spaceId - The value for spaceId (can be null)this builder for use in a chained invocationpublic final EventEntity.Builder timestamp(String timestamp)
timestamp attribute.timestamp - The value for timestamp (can be null)this builder for use in a chained invocationpublic final EventEntity.Builder type(String type)
type attribute.type - The value for type (can be null)this builder for use in a chained invocationpublic EventEntity build()
EventEntity.IllegalStateException - if any required attributes are missingCopyright © 2017 Pivotal Software, Inc.. All rights reserved.