Class ImmutableCloudEvent.ImmutableParticipant.Builder
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.domain.ImmutableCloudEvent.ImmutableParticipant.Builder
-
- Enclosing class:
- ImmutableCloudEvent.ImmutableParticipant
public static final class ImmutableCloudEvent.ImmutableParticipant.Builder extends Object
Builds instances of typeImmutableParticipant. Initialize attributes and then invoke thebuild()method to create an immutable instance.Builderis not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableCloudEvent.ImmutableParticipantbuild()Builds a newImmutableParticipant.ImmutableCloudEvent.ImmutableParticipant.Builderfrom(CloudEvent.Participant instance)Fill a builder with attribute values from the providedParticipantinstance.ImmutableCloudEvent.ImmutableParticipant.Builderguid(UUID guid)Initializes the value for theguidattribute.ImmutableCloudEvent.ImmutableParticipant.Buildername(String name)Initializes the value for thenameattribute.ImmutableCloudEvent.ImmutableParticipant.Buildertype(String type)Initializes the value for thetypeattribute.
-
-
-
Method Detail
-
from
public final ImmutableCloudEvent.ImmutableParticipant.Builder from(CloudEvent.Participant instance)
Fill a builder with attribute values from the providedParticipantinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
guid
public final ImmutableCloudEvent.ImmutableParticipant.Builder guid(UUID guid)
Initializes the value for theguidattribute.- Parameters:
guid- The value for guid (can benull)- Returns:
thisbuilder for use in a chained invocation
-
name
public final ImmutableCloudEvent.ImmutableParticipant.Builder name(String name)
Initializes the value for thenameattribute.- Parameters:
name- The value for name (can benull)- Returns:
thisbuilder for use in a chained invocation
-
type
public final ImmutableCloudEvent.ImmutableParticipant.Builder type(String type)
Initializes the value for thetypeattribute.- Parameters:
type- The value for type (can benull)- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableCloudEvent.ImmutableParticipant build()
Builds a newImmutableParticipant.- Returns:
- An immutable instance of Participant
- Throws:
IllegalStateException- if any required attributes are missing
-
-