Interface CreateScheduledQueryRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CloudWatchLogsRequest.Builder,CopyableBuilder<CreateScheduledQueryRequest.Builder,CreateScheduledQueryRequest>,SdkBuilder<CreateScheduledQueryRequest.Builder,CreateScheduledQueryRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateScheduledQueryRequest
@Mutable @NotThreadSafe public static interface CreateScheduledQueryRequest.Builder extends CloudWatchLogsRequest.Builder, SdkPojo, CopyableBuilder<CreateScheduledQueryRequest.Builder,CreateScheduledQueryRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateScheduledQueryRequest.Builderdescription(String description)An optional description for the scheduled query to help identify its purpose and functionality.default CreateScheduledQueryRequest.BuilderdestinationConfiguration(Consumer<DestinationConfiguration.Builder> destinationConfiguration)Configuration for where to deliver query results.CreateScheduledQueryRequest.BuilderdestinationConfiguration(DestinationConfiguration destinationConfiguration)Configuration for where to deliver query results.CreateScheduledQueryRequest.BuilderexecutionRoleArn(String executionRoleArn)The ARN of the IAM role that grants permissions to execute the query and deliver results to the specified destination.CreateScheduledQueryRequest.BuilderlogGroupIdentifiers(String... logGroupIdentifiers)An array of log group names or ARNs to query.CreateScheduledQueryRequest.BuilderlogGroupIdentifiers(Collection<String> logGroupIdentifiers)An array of log group names or ARNs to query.CreateScheduledQueryRequest.Buildername(String name)The name of the scheduled query.CreateScheduledQueryRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateScheduledQueryRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateScheduledQueryRequest.BuilderqueryLanguage(String queryLanguage)The query language to use for the scheduled query.CreateScheduledQueryRequest.BuilderqueryLanguage(QueryLanguage queryLanguage)The query language to use for the scheduled query.CreateScheduledQueryRequest.BuilderqueryString(String queryString)The query string to execute.CreateScheduledQueryRequest.BuilderscheduleEndTime(Long scheduleEndTime)The end time for the scheduled query in Unix epoch format.CreateScheduledQueryRequest.BuilderscheduleExpression(String scheduleExpression)A cron expression that defines when the scheduled query runs.CreateScheduledQueryRequest.BuilderscheduleStartTime(Long scheduleStartTime)The start time for the scheduled query in Unix epoch format.CreateScheduledQueryRequest.BuilderstartTimeOffset(Long startTimeOffset)The time offset in seconds that defines the lookback period for the query.CreateScheduledQueryRequest.Builderstate(String state)The initial state of the scheduled query.CreateScheduledQueryRequest.Builderstate(ScheduledQueryState state)The initial state of the scheduled query.CreateScheduledQueryRequest.Buildertags(Map<String,String> tags)Key-value pairs to associate with the scheduled query for resource management and cost allocation.CreateScheduledQueryRequest.Buildertimezone(String timezone)The timezone for evaluating the schedule expression.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.services.cloudwatchlogs.model.CloudWatchLogsRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
name
CreateScheduledQueryRequest.Builder name(String name)
The name of the scheduled query. The name must be unique within your account and region. Valid characters are alphanumeric characters, hyphens, underscores, and periods. Length must be between 1 and 255 characters.
- Parameters:
name- The name of the scheduled query. The name must be unique within your account and region. Valid characters are alphanumeric characters, hyphens, underscores, and periods. Length must be between 1 and 255 characters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
CreateScheduledQueryRequest.Builder description(String description)
An optional description for the scheduled query to help identify its purpose and functionality.
- Parameters:
description- An optional description for the scheduled query to help identify its purpose and functionality.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
queryLanguage
CreateScheduledQueryRequest.Builder queryLanguage(String queryLanguage)
The query language to use for the scheduled query. Valid values are
LogsQL,PPL, andSQL.- Parameters:
queryLanguage- The query language to use for the scheduled query. Valid values areLogsQL,PPL, andSQL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
QueryLanguage,QueryLanguage
-
queryLanguage
CreateScheduledQueryRequest.Builder queryLanguage(QueryLanguage queryLanguage)
The query language to use for the scheduled query. Valid values are
LogsQL,PPL, andSQL.- Parameters:
queryLanguage- The query language to use for the scheduled query. Valid values areLogsQL,PPL, andSQL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
QueryLanguage,QueryLanguage
-
queryString
CreateScheduledQueryRequest.Builder queryString(String queryString)
The query string to execute. This is the same query syntax used in CloudWatch Logs Insights. Maximum length is 10,000 characters.
- Parameters:
queryString- The query string to execute. This is the same query syntax used in CloudWatch Logs Insights. Maximum length is 10,000 characters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logGroupIdentifiers
CreateScheduledQueryRequest.Builder logGroupIdentifiers(Collection<String> logGroupIdentifiers)
An array of log group names or ARNs to query. You can specify between 1 and 50 log groups. Log groups can be identified by name or full ARN.
- Parameters:
logGroupIdentifiers- An array of log group names or ARNs to query. You can specify between 1 and 50 log groups. Log groups can be identified by name or full ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logGroupIdentifiers
CreateScheduledQueryRequest.Builder logGroupIdentifiers(String... logGroupIdentifiers)
An array of log group names or ARNs to query. You can specify between 1 and 50 log groups. Log groups can be identified by name or full ARN.
- Parameters:
logGroupIdentifiers- An array of log group names or ARNs to query. You can specify between 1 and 50 log groups. Log groups can be identified by name or full ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scheduleExpression
CreateScheduledQueryRequest.Builder scheduleExpression(String scheduleExpression)
A cron expression that defines when the scheduled query runs. The expression uses standard cron syntax and supports minute-level precision. Maximum length is 256 characters.
- Parameters:
scheduleExpression- A cron expression that defines when the scheduled query runs. The expression uses standard cron syntax and supports minute-level precision. Maximum length is 256 characters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timezone
CreateScheduledQueryRequest.Builder timezone(String timezone)
The timezone for evaluating the schedule expression. This determines when the scheduled query executes relative to the specified timezone.
- Parameters:
timezone- The timezone for evaluating the schedule expression. This determines when the scheduled query executes relative to the specified timezone.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startTimeOffset
CreateScheduledQueryRequest.Builder startTimeOffset(Long startTimeOffset)
The time offset in seconds that defines the lookback period for the query. This determines how far back in time the query searches from the execution time.
- Parameters:
startTimeOffset- The time offset in seconds that defines the lookback period for the query. This determines how far back in time the query searches from the execution time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destinationConfiguration
CreateScheduledQueryRequest.Builder destinationConfiguration(DestinationConfiguration destinationConfiguration)
Configuration for where to deliver query results. Currently supports Amazon S3 destinations for storing query output.
- Parameters:
destinationConfiguration- Configuration for where to deliver query results. Currently supports Amazon S3 destinations for storing query output.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destinationConfiguration
default CreateScheduledQueryRequest.Builder destinationConfiguration(Consumer<DestinationConfiguration.Builder> destinationConfiguration)
Configuration for where to deliver query results. Currently supports Amazon S3 destinations for storing query output.
This is a convenience method that creates an instance of theDestinationConfiguration.Builderavoiding the need to create one manually viaDestinationConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todestinationConfiguration(DestinationConfiguration).- Parameters:
destinationConfiguration- a consumer that will call methods onDestinationConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
destinationConfiguration(DestinationConfiguration)
-
scheduleStartTime
CreateScheduledQueryRequest.Builder scheduleStartTime(Long scheduleStartTime)
The start time for the scheduled query in Unix epoch format. The query will not execute before this time.
- Parameters:
scheduleStartTime- The start time for the scheduled query in Unix epoch format. The query will not execute before this time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scheduleEndTime
CreateScheduledQueryRequest.Builder scheduleEndTime(Long scheduleEndTime)
The end time for the scheduled query in Unix epoch format. The query will stop executing after this time.
- Parameters:
scheduleEndTime- The end time for the scheduled query in Unix epoch format. The query will stop executing after this time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
executionRoleArn
CreateScheduledQueryRequest.Builder executionRoleArn(String executionRoleArn)
The ARN of the IAM role that grants permissions to execute the query and deliver results to the specified destination. The role must have permissions to read from the specified log groups and write to the destination.
- Parameters:
executionRoleArn- The ARN of the IAM role that grants permissions to execute the query and deliver results to the specified destination. The role must have permissions to read from the specified log groups and write to the destination.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
CreateScheduledQueryRequest.Builder state(String state)
The initial state of the scheduled query. Valid values are
ENABLEDandDISABLED. Default isENABLED.- Parameters:
state- The initial state of the scheduled query. Valid values areENABLEDandDISABLED. Default isENABLED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ScheduledQueryState,ScheduledQueryState
-
state
CreateScheduledQueryRequest.Builder state(ScheduledQueryState state)
The initial state of the scheduled query. Valid values are
ENABLEDandDISABLED. Default isENABLED.- Parameters:
state- The initial state of the scheduled query. Valid values areENABLEDandDISABLED. Default isENABLED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ScheduledQueryState,ScheduledQueryState
-
tags
CreateScheduledQueryRequest.Builder tags(Map<String,String> tags)
Key-value pairs to associate with the scheduled query for resource management and cost allocation.
- Parameters:
tags- Key-value pairs to associate with the scheduled query for resource management and cost allocation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateScheduledQueryRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateScheduledQueryRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-