Interface Event.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Event.Builder,Event>, SdkBuilder<Event.Builder,Event>, SdkPojo
Enclosing class:
Event

@Mutable @NotThreadSafe public static interface Event.Builder extends SdkPojo, CopyableBuilder<Event.Builder,Event>
  • Method Details

    • resourceCollection

      Event.Builder resourceCollection(ResourceCollection resourceCollection)
      Sets the value of the ResourceCollection property for this object.
      Parameters:
      resourceCollection - The new value for the ResourceCollection property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceCollection

      default Event.Builder resourceCollection(Consumer<ResourceCollection.Builder> resourceCollection)
      Sets the value of the ResourceCollection property for this object. This is a convenience method that creates an instance of the ResourceCollection.Builder avoiding the need to create one manually via ResourceCollection.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to resourceCollection(ResourceCollection).

      Parameters:
      resourceCollection - a consumer that will call methods on ResourceCollection.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • id

      The ID of the event.

      Parameters:
      id - The ID of the event.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • time

      Event.Builder time(Instant time)

      A Timestamp that specifies the time the event occurred.

      Parameters:
      time - A Timestamp that specifies the time the event occurred.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • eventSource

      Event.Builder eventSource(String eventSource)

      The Amazon Web Services source that emitted the event.

      Parameters:
      eventSource - The Amazon Web Services source that emitted the event.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      Event.Builder name(String name)

      The name of the event.

      Parameters:
      name - The name of the event.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dataSource

      Event.Builder dataSource(String dataSource)

      The source, AWS_CLOUD_TRAIL or AWS_CODE_DEPLOY, where DevOps Guru analysis found the event.

      Parameters:
      dataSource - The source, AWS_CLOUD_TRAIL or AWS_CODE_DEPLOY, where DevOps Guru analysis found the event.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • dataSource

      Event.Builder dataSource(EventDataSource dataSource)

      The source, AWS_CLOUD_TRAIL or AWS_CODE_DEPLOY, where DevOps Guru analysis found the event.

      Parameters:
      dataSource - The source, AWS_CLOUD_TRAIL or AWS_CODE_DEPLOY, where DevOps Guru analysis found the event.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • eventClass

      Event.Builder eventClass(String eventClass)

      The class of the event. The class specifies what the event is related to, such as an infrastructure change, a deployment, or a schema change.

      Parameters:
      eventClass - The class of the event. The class specifies what the event is related to, such as an infrastructure change, a deployment, or a schema change.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • eventClass

      Event.Builder eventClass(EventClass eventClass)

      The class of the event. The class specifies what the event is related to, such as an infrastructure change, a deployment, or a schema change.

      Parameters:
      eventClass - The class of the event. The class specifies what the event is related to, such as an infrastructure change, a deployment, or a schema change.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • resources

      Event.Builder resources(Collection<EventResource> resources)

      An EventResource object that contains information about the resource that emitted the event.

      Parameters:
      resources - An EventResource object that contains information about the resource that emitted the event.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resources

      Event.Builder resources(EventResource... resources)

      An EventResource object that contains information about the resource that emitted the event.

      Parameters:
      resources - An EventResource object that contains information about the resource that emitted the event.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resources

      Event.Builder resources(Consumer<EventResource.Builder>... resources)

      An EventResource object that contains information about the resource that emitted the event.

      This is a convenience method that creates an instance of the EventResource.Builder avoiding the need to create one manually via EventResource.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to resources(List<EventResource>).

      Parameters:
      resources - a consumer that will call methods on EventResource.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: