Smartsheet.Api.Models.RowWrapper.MoveRowBuilder.Build C# (CSharp) Method

Build() public method

Builds the RowWrapper.
public Build ( ) : RowWrapper
return RowWrapper
            public virtual RowWrapper Build()
            {
                if (toTop == null && toBottom == null && parentId == null && siblingId == null)
                {
                    throw new InvalidOperationException("One of the following must be defined to move a row: toTop, "+
                        "toBottom, parentId, siblingId.");
                }

                RowWrapper rowWrapper = new RowWrapper();
                rowWrapper.toTop = toTop;
                rowWrapper.toBottom = toBottom;
                rowWrapper.parentId = parentId;
                rowWrapper.siblingId = siblingId;
                return rowWrapper;
            }