Package com.smartsheet.api.models
Class Column.AddColumnToSheetBuilder
- java.lang.Object
-
- com.smartsheet.api.models.Column.AddColumnToSheetBuilder
-
- Enclosing class:
- Column
public static class Column.AddColumnToSheetBuilder extends java.lang.Object
A convenience class to help create a column object with the appropriate fields for adding to a sheet.
-
-
Constructor Summary
Constructors Constructor Description AddColumnToSheetBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Column
build()
Builds the column.AutoNumberFormat
getAutoNumberFormat()
Gets the format for an auto number column.Format
getFormat()
Gets the format for a column.java.lang.Integer
getIndex()
Gets the index specified for the new column.java.util.List<java.lang.String>
getOptions()
Gets the option for the column.java.lang.Boolean
getPrimary()
Gets the primary status for the column.Symbol
getSymbol()
Gets the symbol for the column.SystemColumnType
getSystemColumnType()
Gets the system column type.java.lang.String
getTitle()
Gets the title.ColumnType
getType()
Gets the type for the column.java.lang.Boolean
getValidation()
Gets the value of the validation flagjava.lang.Integer
getWidth()
Gets the width for the column.Column.AddColumnToSheetBuilder
setAutoNumberFormat(AutoNumberFormat autoNumberFormat)
Sets the format for an auto number column.Column.AddColumnToSheetBuilder
setFormat(Format format)
Sets the format for a column.Column.AddColumnToSheetBuilder
setIndex(java.lang.Integer index)
Sets the index for the column.Column.AddColumnToSheetBuilder
setOptions(java.util.List<java.lang.String> options)
Sets the options for the column.Column.AddColumnToSheetBuilder
setPrimary(java.lang.Boolean primary)
Sets the primary status for the column.Column.AddColumnToSheetBuilder
setSymbol(Symbol symbol)
Sets the symbol for the column.Column.AddColumnToSheetBuilder
setSystemColumnType(SystemColumnType systemColumnType)
Sets the system column type.Column.AddColumnToSheetBuilder
setTitle(java.lang.String title)
Sets the title for the column.Column.AddColumnToSheetBuilder
setType(ColumnType type)
Sets the type for the column.Column.AddColumnToSheetBuilder
setValidation(java.lang.Boolean validation)
Sets the value of the validation flagColumn.AddColumnToSheetBuilder
setWidth(java.lang.Integer width)
Sets the width for the column.
-
-
-
Method Detail
-
getWidth
public java.lang.Integer getWidth()
Gets the width for the column.- Returns:
- the width
-
setWidth
public Column.AddColumnToSheetBuilder setWidth(java.lang.Integer width)
Sets the width for the column.- Parameters:
width
- the width- Returns:
- the column to sheet builder
-
getPrimary
public java.lang.Boolean getPrimary()
Gets the primary status for the column.- Returns:
- the boolean primary
-
setPrimary
public Column.AddColumnToSheetBuilder setPrimary(java.lang.Boolean primary)
Sets the primary status for the column.- Parameters:
primary
- the boolean primary- Returns:
- the column to sheet builder
-
setTitle
public Column.AddColumnToSheetBuilder setTitle(java.lang.String title)
Sets the title for the column.- Parameters:
title
- the title- Returns:
- the add the column to sheet builder
-
getTitle
public java.lang.String getTitle()
Gets the title.- Returns:
- the title
-
setType
public Column.AddColumnToSheetBuilder setType(ColumnType type)
Sets the type for the column.- Parameters:
type
- the type- Returns:
- the adds the column to sheet builder
-
getType
public ColumnType getType()
Gets the type for the column.- Returns:
- the type
-
setOptions
public Column.AddColumnToSheetBuilder setOptions(java.util.List<java.lang.String> options)
Sets the options for the column.- Parameters:
options
- the options- Returns:
- the adds the column to sheet builder
-
getOptions
public java.util.List<java.lang.String> getOptions()
Gets the option for the column.- Returns:
- the option
-
setSymbol
public Column.AddColumnToSheetBuilder setSymbol(Symbol symbol)
Sets the symbol for the column.- Parameters:
symbol
- the symbol- Returns:
- the adds the column to sheet builder
-
getSymbol
public Symbol getSymbol()
Gets the symbol for the column.- Returns:
- the symbol
-
setSystemColumnType
public Column.AddColumnToSheetBuilder setSystemColumnType(SystemColumnType systemColumnType)
Sets the system column type.- Parameters:
systemColumnType
- the system column type- Returns:
- the adds the column to sheet builder
-
getSystemColumnType
public SystemColumnType getSystemColumnType()
Gets the system column type.- Returns:
- the system column type
-
setAutoNumberFormat
public Column.AddColumnToSheetBuilder setAutoNumberFormat(AutoNumberFormat autoNumberFormat)
Sets the format for an auto number column.- Parameters:
autoNumberFormat
- the auto number format- Returns:
- the adds the column to sheet builder
-
getAutoNumberFormat
public AutoNumberFormat getAutoNumberFormat()
Gets the format for an auto number column.- Returns:
- the format for an auto number column
-
getIndex
public java.lang.Integer getIndex()
Gets the index specified for the new column.- Returns:
- the index
-
setIndex
public Column.AddColumnToSheetBuilder setIndex(java.lang.Integer index)
Sets the index for the column. Set this to any value greater than the index of the last column to add it as the last column.- Parameters:
index
- the index- Returns:
- the index
-
getFormat
public Format getFormat()
Gets the format for a column.- Returns:
- the format for a column
-
setFormat
public Column.AddColumnToSheetBuilder setFormat(Format format)
Sets the format for a column.- Parameters:
format
- the format.- Returns:
- the AddColumnToSheetBuilder.
-
getValidation
public java.lang.Boolean getValidation()
Gets the value of the validation flag
-
setValidation
public Column.AddColumnToSheetBuilder setValidation(java.lang.Boolean validation)
Sets the value of the validation flag- Returns:
- the AddColumn builder
-
build
public Column build()
Builds the column.- Returns:
- the column
-
-