Package com.smartsheet.api.models
Class RowWrapper.InsertRowsBuilder
- java.lang.Object
-
- com.smartsheet.api.models.RowWrapper.InsertRowsBuilder
-
- Enclosing class:
- RowWrapper
public static class RowWrapper.InsertRowsBuilder extends java.lang.Object
A convenience class for creating aRowWrapper
with the necessary fields for inserting aRow
or set of rows.
-
-
Constructor Summary
Constructors Constructor Description InsertRowsBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RowWrapper
build()
Builds the RowWrapper.java.lang.Long
getParentId()
Gets the parent id.java.util.List<Row>
getRows()
Gets the rows.java.lang.Long
getSiblingId()
Gets the sibling id.java.lang.Boolean
getToBottom()
Gets the to bottom.java.lang.Boolean
getToTop()
Gets the to top.RowWrapper.InsertRowsBuilder
setParentId(java.lang.Long parentId)
Sets the parent id that puts the row as the first child of the specified id.RowWrapper.InsertRowsBuilder
setRows(java.util.List<Row> rows)
Sets the rows.RowWrapper.InsertRowsBuilder
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.RowWrapper.InsertRowsBuilder
setToBottom(java.lang.Boolean toBottom)
Sets the to bottom flag that puts the row at the bottom of the sheet.RowWrapper.InsertRowsBuilder
setToTop(java.lang.Boolean toTop)
Sets the to top flag that puts the row at the top of the sheet.
-
-
-
Method Detail
-
setToTop
public RowWrapper.InsertRowsBuilder 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
-
setToBottom
public RowWrapper.InsertRowsBuilder 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
-
setParentId
public RowWrapper.InsertRowsBuilder 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
-
setSiblingId
public RowWrapper.InsertRowsBuilder 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
-
setRows
public RowWrapper.InsertRowsBuilder setRows(java.util.List<Row> rows)
Sets the rows.- Parameters:
rows
- the rows- Returns:
- the insert rows builder
-
getToTop
public java.lang.Boolean getToTop()
Gets the to top.- Returns:
- the to top
-
getToBottom
public java.lang.Boolean getToBottom()
Gets the to bottom.- Returns:
- the to bottom
-
getParentId
public java.lang.Long getParentId()
Gets the parent id.- Returns:
- the parent id
-
getSiblingId
public java.lang.Long getSiblingId()
Gets the sibling id.- Returns:
- the sibling id
-
getRows
public java.util.List<Row> getRows()
Gets the rows.- Returns:
- the rows
-
build
public RowWrapper build() throws java.lang.InstantiationException
Builds the RowWrapper.- Returns:
- the row wrapper
- Throws:
java.lang.InstantiationException
-
-