Interface UpdateScheduledQueryRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CloudWatchLogsRequest.Builder,CopyableBuilder<UpdateScheduledQueryRequest.Builder,,UpdateScheduledQueryRequest> SdkBuilder<UpdateScheduledQueryRequest.Builder,,UpdateScheduledQueryRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
UpdateScheduledQueryRequest
-
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) Updated description for the scheduled query.destinationConfiguration(Consumer<DestinationConfiguration.Builder> destinationConfiguration) Updated configuration for destinations where the query results will be delivered.destinationConfiguration(DestinationConfiguration destinationConfiguration) Updated configuration for destinations where the query results will be delivered.executionRoleArn(String executionRoleArn) Updated ARN of the IAM role that CloudWatch Logs will assume to execute the scheduled query.identifier(String identifier) The name or ARN of the scheduled query to update.logGroupIdentifiers(String... logGroupIdentifiers) Updated log group identifiers to query.logGroupIdentifiers(Collection<String> logGroupIdentifiers) Updated log group identifiers to query.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.queryLanguage(String queryLanguage) Updated query language to use (LogsQL, PPL, or SQL).queryLanguage(QueryLanguage queryLanguage) Updated query language to use (LogsQL, PPL, or SQL).queryString(String queryString) Updated CloudWatch Logs Insights query string to execute.scheduleEndTime(Long scheduleEndTime) Updated end time for the query schedule in Unix epoch time.scheduleExpression(String scheduleExpression) Updated cron expression that defines when the scheduled query runs.scheduleStartTime(Long scheduleStartTime) Updated start time for the query schedule in Unix epoch time.startTimeOffset(Long startTimeOffset) Updated time offset in seconds from the execution time for the start of the query time range.Updated state of the scheduled query (ENABLED or DISABLED).state(ScheduledQueryState state) Updated state of the scheduled query (ENABLED or DISABLED).Updated timezone in which the schedule expression is evaluated.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.cloudwatchlogs.model.CloudWatchLogsRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
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
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
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
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
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
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
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
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
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 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:
-
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
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
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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdateScheduledQueryRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-