Class ImmutableCloudEvent.Builder

  • Enclosing class:
    ImmutableCloudEvent

    public static final class ImmutableCloudEvent.Builder
    extends Object
    Builds instances of type 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.

    • Method Detail

      • from

        public final ImmutableCloudEvent.Builder from​(CloudEvent instance)
        Fill a builder with attribute values from the provided com.sap.cloudfoundry.client.facade.domain.CloudEvent instance.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • from

        public final ImmutableCloudEvent.Builder from​(CloudEntity instance)
        Fill a builder with attribute values from the provided com.sap.cloudfoundry.client.facade.domain.CloudEntity instance.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • name

        public final ImmutableCloudEvent.Builder name​(String name)
        Initializes the value for the name attribute.
        Parameters:
        name - The value for name (can be null)
        Returns:
        this builder for use in a chained invocation
      • metadata

        public final ImmutableCloudEvent.Builder metadata​(CloudMetadata metadata)
        Initializes the value for the metadata attribute.
        Parameters:
        metadata - The value for metadata (can be null)
        Returns:
        this builder for use in a chained invocation
      • v3Metadata

        public final ImmutableCloudEvent.Builder v3Metadata​(org.cloudfoundry.client.v3.Metadata v3Metadata)
        Initializes the value for the v3Metadata attribute.
        Parameters:
        v3Metadata - The value for v3Metadata (can be null)
        Returns:
        this builder for use in a chained invocation
      • type

        public final ImmutableCloudEvent.Builder type​(String type)
        Initializes the value for the type attribute.
        Parameters:
        type - The value for type (can be null)
        Returns:
        this builder for use in a chained invocation
      • timestamp

        public final ImmutableCloudEvent.Builder timestamp​(Date timestamp)
        Initializes the value for the timestamp attribute.
        Parameters:
        timestamp - The value for timestamp (can be null)
        Returns:
        this builder for use in a chained invocation