Interface LogSource.Builder

  • Method Details

    • account

      LogSource.Builder account(String account)

      Specify the account from which you want to collect logs.

      Parameters:
      account - Specify the account from which you want to collect logs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • region

      LogSource.Builder region(String region)

      Specify the Regions from which you want to collect logs.

      Parameters:
      region - Specify the Regions from which you want to collect logs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sources

      Specify the sources from which you want to collect logs.

      Parameters:
      sources - Specify the sources from which you want to collect logs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sources

      LogSource.Builder sources(LogSourceResource... sources)

      Specify the sources from which you want to collect logs.

      Parameters:
      sources - Specify the sources from which you want to collect logs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sources

      Specify the sources from which you want to collect logs.

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

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

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