Class CfnScheduledQueryProps.Builder
java.lang.Object
software.amazon.awscdk.services.logs.CfnScheduledQueryProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnScheduledQueryProps>
- Enclosing interface:
CfnScheduledQueryProps
@Stability(Stable)
public static final class CfnScheduledQueryProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnScheduledQueryProps>
A builder for
CfnScheduledQueryProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnScheduledQueryProps.getDescription()destinationConfiguration(IResolvable destinationConfiguration) Sets the value ofCfnScheduledQueryProps.getDestinationConfiguration()destinationConfiguration(CfnScheduledQuery.DestinationConfigurationProperty destinationConfiguration) Sets the value ofCfnScheduledQueryProps.getDestinationConfiguration()executionRoleArn(String executionRoleArn) Sets the value ofCfnScheduledQueryProps.getExecutionRoleArn()logGroupIdentifiers(List<String> logGroupIdentifiers) Sets the value ofCfnScheduledQueryProps.getLogGroupIdentifiers()Sets the value ofCfnScheduledQueryProps.getName()queryLanguage(String queryLanguage) Sets the value ofCfnScheduledQueryProps.getQueryLanguage()queryString(String queryString) Sets the value ofCfnScheduledQueryProps.getQueryString()scheduleEndTime(Number scheduleEndTime) Sets the value ofCfnScheduledQueryProps.getScheduleEndTime()scheduleExpression(String scheduleExpression) Sets the value ofCfnScheduledQueryProps.getScheduleExpression()scheduleStartTime(Number scheduleStartTime) Sets the value ofCfnScheduledQueryProps.getScheduleStartTime()startTimeOffset(Number startTimeOffset) Sets the value ofCfnScheduledQueryProps.getStartTimeOffset()Sets the value ofCfnScheduledQueryProps.getState()tags(List<? extends CfnScheduledQuery.TagsItemsProperty> tags) Sets the value ofCfnScheduledQueryProps.getTags()Sets the value ofCfnScheduledQueryProps.getTimezone()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
executionRoleArn
Sets the value ofCfnScheduledQueryProps.getExecutionRoleArn()- Parameters:
executionRoleArn- the value to be set. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnScheduledQueryProps.getName()- Parameters:
name- the value to be set. This parameter is required.- Returns:
this
-
queryLanguage
Sets the value ofCfnScheduledQueryProps.getQueryLanguage()- Parameters:
queryLanguage- the value to be set. This parameter is required.- Returns:
this
-
queryString
Sets the value ofCfnScheduledQueryProps.getQueryString()- Parameters:
queryString- the value to be set. This parameter is required.- Returns:
this
-
scheduleExpression
@Stability(Stable) public CfnScheduledQueryProps.Builder scheduleExpression(String scheduleExpression) Sets the value ofCfnScheduledQueryProps.getScheduleExpression()- Parameters:
scheduleExpression- the value to be set. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnScheduledQueryProps.getDescription()- Parameters:
description- the value to be set.- Returns:
this
-
destinationConfiguration
@Stability(Stable) public CfnScheduledQueryProps.Builder destinationConfiguration(IResolvable destinationConfiguration) Sets the value ofCfnScheduledQueryProps.getDestinationConfiguration()- Parameters:
destinationConfiguration- the value to be set.- Returns:
this
-
destinationConfiguration
@Stability(Stable) public CfnScheduledQueryProps.Builder destinationConfiguration(CfnScheduledQuery.DestinationConfigurationProperty destinationConfiguration) Sets the value ofCfnScheduledQueryProps.getDestinationConfiguration()- Parameters:
destinationConfiguration- the value to be set.- Returns:
this
-
logGroupIdentifiers
@Stability(Stable) public CfnScheduledQueryProps.Builder logGroupIdentifiers(List<String> logGroupIdentifiers) Sets the value ofCfnScheduledQueryProps.getLogGroupIdentifiers()- Parameters:
logGroupIdentifiers- the value to be set.- Returns:
this
-
scheduleEndTime
Sets the value ofCfnScheduledQueryProps.getScheduleEndTime()- Parameters:
scheduleEndTime- the value to be set.- Returns:
this
-
scheduleStartTime
@Stability(Stable) public CfnScheduledQueryProps.Builder scheduleStartTime(Number scheduleStartTime) Sets the value ofCfnScheduledQueryProps.getScheduleStartTime()- Parameters:
scheduleStartTime- the value to be set.- Returns:
this
-
startTimeOffset
Sets the value ofCfnScheduledQueryProps.getStartTimeOffset()- Parameters:
startTimeOffset- the value to be set.- Returns:
this
-
state
Sets the value ofCfnScheduledQueryProps.getState()- Parameters:
state- the value to be set.- Returns:
this
-
tags
@Stability(Stable) public CfnScheduledQueryProps.Builder tags(List<? extends CfnScheduledQuery.TagsItemsProperty> tags) Sets the value ofCfnScheduledQueryProps.getTags()- Parameters:
tags- the value to be set.- Returns:
this
-
timezone
Sets the value ofCfnScheduledQueryProps.getTimezone()- Parameters:
timezone- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnScheduledQueryProps>- Returns:
- a new instance of
CfnScheduledQueryProps - Throws:
NullPointerException- if any required attribute was not provided
-