Class CfnDataset.ExcelOptionsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.databrew.CfnDataset.ExcelOptionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataset.ExcelOptionsProperty>
- Enclosing interface:
CfnDataset.ExcelOptionsProperty
@Stability(Stable)
public static final class CfnDataset.ExcelOptionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataset.ExcelOptionsProperty>
A builder for
CfnDataset.ExcelOptionsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnDataset.ExcelOptionsProperty.getHeaderRow()headerRow(IResolvable headerRow) Sets the value ofCfnDataset.ExcelOptionsProperty.getHeaderRow()sheetIndexes(List<? extends Number> sheetIndexes) Sets the value ofCfnDataset.ExcelOptionsProperty.getSheetIndexes()sheetIndexes(IResolvable sheetIndexes) Sets the value ofCfnDataset.ExcelOptionsProperty.getSheetIndexes()sheetNames(List<String> sheetNames) Sets the value ofCfnDataset.ExcelOptionsProperty.getSheetNames()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
headerRow
Sets the value ofCfnDataset.ExcelOptionsProperty.getHeaderRow()- Parameters:
headerRow- A variable that specifies whether the first row in the file is parsed as the header. If this value is false, column names are auto-generated.- Returns:
this
-
headerRow
Sets the value ofCfnDataset.ExcelOptionsProperty.getHeaderRow()- Parameters:
headerRow- A variable that specifies whether the first row in the file is parsed as the header. If this value is false, column names are auto-generated.- Returns:
this
-
sheetIndexes
@Stability(Stable) public CfnDataset.ExcelOptionsProperty.Builder sheetIndexes(List<? extends Number> sheetIndexes) Sets the value ofCfnDataset.ExcelOptionsProperty.getSheetIndexes()- Parameters:
sheetIndexes- One or more sheet numbers in the Excel file that will be included in the dataset.- Returns:
this
-
sheetIndexes
@Stability(Stable) public CfnDataset.ExcelOptionsProperty.Builder sheetIndexes(IResolvable sheetIndexes) Sets the value ofCfnDataset.ExcelOptionsProperty.getSheetIndexes()- Parameters:
sheetIndexes- One or more sheet numbers in the Excel file that will be included in the dataset.- Returns:
this
-
sheetNames
@Stability(Stable) public CfnDataset.ExcelOptionsProperty.Builder sheetNames(List<String> sheetNames) Sets the value ofCfnDataset.ExcelOptionsProperty.getSheetNames()- Parameters:
sheetNames- One or more named sheets in the Excel file that will be included in the dataset.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDataset.ExcelOptionsProperty>- Returns:
- a new instance of
CfnDataset.ExcelOptionsProperty - Throws:
NullPointerException- if any required attribute was not provided
-