Interface UpdateScheduledQueryRequest.Builder

  • Method Details

    • identifier

      The name or ARN of the scheduled query to update.

      Parameters:
      identifier - The name or ARN of the scheduled query to update.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      UpdateScheduledQueryRequest.Builder description(String description)

      Updated description for the scheduled query.

      Parameters:
      description - Updated description for the scheduled query.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • queryLanguage

      UpdateScheduledQueryRequest.Builder queryLanguage(String queryLanguage)

      Updated query language to use (LogsQL, PPL, or SQL).

      Parameters:
      queryLanguage - Updated query language to use (LogsQL, PPL, or SQL).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • queryLanguage

      UpdateScheduledQueryRequest.Builder queryLanguage(QueryLanguage queryLanguage)

      Updated query language to use (LogsQL, PPL, or SQL).

      Parameters:
      queryLanguage - Updated query language to use (LogsQL, PPL, or SQL).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • queryString

      UpdateScheduledQueryRequest.Builder queryString(String queryString)

      Updated CloudWatch Logs Insights query string to execute.

      Parameters:
      queryString - Updated CloudWatch Logs Insights query string to execute.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • logGroupIdentifiers

      UpdateScheduledQueryRequest.Builder logGroupIdentifiers(Collection<String> logGroupIdentifiers)

      Updated log group identifiers to query.

      Parameters:
      logGroupIdentifiers - Updated log group identifiers to query.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • logGroupIdentifiers

      UpdateScheduledQueryRequest.Builder logGroupIdentifiers(String... logGroupIdentifiers)

      Updated log group identifiers to query.

      Parameters:
      logGroupIdentifiers - Updated log group identifiers to query.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • scheduleExpression

      UpdateScheduledQueryRequest.Builder scheduleExpression(String scheduleExpression)

      Updated cron expression that defines when the scheduled query runs.

      Parameters:
      scheduleExpression - Updated cron expression that defines when the scheduled query runs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • timezone

      Updated timezone in which the schedule expression is evaluated.

      Parameters:
      timezone - Updated timezone in which the schedule expression is evaluated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • startTimeOffset

      UpdateScheduledQueryRequest.Builder startTimeOffset(Long startTimeOffset)

      Updated time offset in seconds from the execution time for the start of the query time range.

      Parameters:
      startTimeOffset - Updated time offset in seconds from the execution time for the start of the query time range.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • destinationConfiguration

      UpdateScheduledQueryRequest.Builder destinationConfiguration(DestinationConfiguration destinationConfiguration)

      Updated configuration for destinations where the query results will be delivered.

      Parameters:
      destinationConfiguration - Updated configuration for destinations where the query results will be delivered.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • destinationConfiguration

      default UpdateScheduledQueryRequest.Builder destinationConfiguration(Consumer<DestinationConfiguration.Builder> destinationConfiguration)

      Updated configuration for destinations where the query results will be delivered.

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

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

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

      UpdateScheduledQueryRequest.Builder scheduleStartTime(Long scheduleStartTime)

      Updated start time for the query schedule in Unix epoch time.

      Parameters:
      scheduleStartTime - Updated start time for the query schedule in Unix epoch time.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • scheduleEndTime

      UpdateScheduledQueryRequest.Builder scheduleEndTime(Long scheduleEndTime)

      Updated end time for the query schedule in Unix epoch time.

      Parameters:
      scheduleEndTime - Updated end time for the query schedule in Unix epoch time.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • executionRoleArn

      UpdateScheduledQueryRequest.Builder executionRoleArn(String executionRoleArn)

      Updated ARN of the IAM role that CloudWatch Logs will assume to execute the scheduled query.

      Parameters:
      executionRoleArn - Updated ARN of the IAM role that CloudWatch Logs will assume to execute the scheduled query.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • state

      Updated state of the scheduled query (ENABLED or DISABLED).

      Parameters:
      state - Updated state of the scheduled query (ENABLED or DISABLED).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • state

      Updated state of the scheduled query (ENABLED or DISABLED).

      Parameters:
      state - Updated state of the scheduled query (ENABLED or DISABLED).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • overrideConfiguration

      UpdateScheduledQueryRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.