Package com.smartsheet.api.models
Class Row.AddRowBuilder
- java.lang.Object
-
- com.smartsheet.api.models.Row.AddRowBuilder
-
- Enclosing class:
- Row
public static class Row.AddRowBuilder extends java.lang.ObjectA convenience class for creating aRowWrapperwith the necessary fields for inserting aRowor set of rows.
-
-
Constructor Summary
Constructors Constructor Description AddRowBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rowbuild()Builds the row objectjava.lang.BooleangetAbove()Gets the above flagjava.util.List<Cell>getCells()Gets the list of cellsjava.lang.BooleangetExpanded()Gets the expanded flagFormatgetFormat()Gets the formatjava.lang.LonggetParentId()Gets the parent id.java.lang.LonggetSiblingId()Gets the sibling id.java.lang.BooleangetToBottom()Gets the to bottom.java.lang.BooleangetToTop()Gets the to top.Row.AddRowBuildersetAbove(java.lang.Boolean above)Sets the above flagRow.AddRowBuildersetCells(java.util.List<Cell> cells)Sets the list of cellsRow.AddRowBuildersetExpanded(java.lang.Boolean expanded)Sets the expanded flagRow.AddRowBuildersetFormat(Format format)Sets the formatRow.AddRowBuildersetParentId(java.lang.Long parentId)Sets the parent id that puts the row as the first child of the specified id.Row.AddRowBuildersetSiblingId(java.lang.Long siblingId)Sets the sibling id that puts the row as the next row at the same hierarchical level of this row.Row.AddRowBuildersetToBottom(java.lang.Boolean toBottom)Sets the to bottom flag that puts the row at the bottom of the sheet.Row.AddRowBuildersetToTop(java.lang.Boolean toTop)Sets the to top flag that puts the row at the top of the sheet.
-
-
-
Method Detail
-
getToTop
public java.lang.Boolean getToTop()
Gets the to top.- Returns:
- the to top
-
setToTop
public Row.AddRowBuilder setToTop(java.lang.Boolean toTop)
Sets the to top flag that puts the row at the top of the sheet.- Parameters:
toTop- the to top flag- Returns:
- the insert rows builder
-
getToBottom
public java.lang.Boolean getToBottom()
Gets the to bottom.- Returns:
- the to bottom
-
setToBottom
public Row.AddRowBuilder setToBottom(java.lang.Boolean toBottom)
Sets the to bottom flag that puts the row at the bottom of the sheet.- Parameters:
toBottom- the to bottom- Returns:
- the insert rows builder
-
getParentId
public java.lang.Long getParentId()
Gets the parent id.- Returns:
- the parent id
-
setParentId
public Row.AddRowBuilder setParentId(java.lang.Long parentId)
Sets the parent id that puts the row as the first child of the specified id.- Parameters:
parentId- the parent id- Returns:
- the insert rows builder
-
getSiblingId
public java.lang.Long getSiblingId()
Gets the sibling id.- Returns:
- the sibling id
-
setSiblingId
public Row.AddRowBuilder setSiblingId(java.lang.Long siblingId)
Sets the sibling id that puts the row as the next row at the same hierarchical level of this row.- Parameters:
siblingId- the sibling id- Returns:
- the insert rows builder
-
getAbove
public java.lang.Boolean getAbove()
Gets the above flag- Returns:
- the above flag
-
setAbove
public Row.AddRowBuilder setAbove(java.lang.Boolean above)
Sets the above flag- Parameters:
above- the above flag- Returns:
- the insert rows builder
-
getFormat
public Format getFormat()
Gets the format- Returns:
- the format
-
setFormat
public Row.AddRowBuilder setFormat(Format format)
Sets the format- Parameters:
format- the format- Returns:
- the insert rows builder
-
getExpanded
public java.lang.Boolean getExpanded()
Gets the expanded flag- Returns:
- the expanded flag
-
setExpanded
public Row.AddRowBuilder setExpanded(java.lang.Boolean expanded)
Sets the expanded flag- Parameters:
expanded- the expanded flag- Returns:
- the insert rows builder
-
getCells
public java.util.List<Cell> getCells()
Gets the list of cells- Returns:
- the list of cells
-
setCells
public Row.AddRowBuilder setCells(java.util.List<Cell> cells)
Sets the list of cells- Parameters:
cells- the list of cells- Returns:
- the insert rows builder
-
build
public Row build()
Builds the row object- Returns:
- the row object
-
-