Class CfnViewProps.Builder
java.lang.Object
software.amazon.awscdk.services.cloudwatch.CfnViewProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnViewProps>
- Enclosing interface:
CfnViewProps
@Stability(Stable)
public static final class CfnViewProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnViewProps>
A builder for
CfnViewProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.definition(String definition) Sets the value ofCfnViewProps.getDefinition()description(String description) Sets the value ofCfnViewProps.getDescription()Sets the value ofCfnViewProps.getName()Sets the value ofCfnViewProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
definition
Sets the value ofCfnViewProps.getDefinition()- Parameters:
definition- The SQL query that defines the view. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnViewProps.getDescription()- Parameters:
description- A description of the view.- Returns:
this
-
name
Sets the value ofCfnViewProps.getName()- Parameters:
name- The name of the view. Must begin with the "view." prefix followed by lowercase alphanumeric characters, hyphens, and underscores. View names must be unique within the account and region. If not specified, a name is generated.- Returns:
this
-
tags
Sets the value ofCfnViewProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to the view.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnViewProps>- Returns:
- a new instance of
CfnViewProps - Throws:
NullPointerException- if any required attribute was not provided
-