Smartsheet.Api.Models.SheetPublish.PublishStatusBuilder.Build C# (CSharp) Method

Build() public method

Builds the.
public Build ( ) : SheetPublish
return SheetPublish
            public virtual SheetPublish Build()
            {
                if (readOnlyLiteEnabled == null || readOnlyFullEnabled == null || readWriteEnabled == null)
                {
                    throw new InvalidOperationException("'Read only lite', 'read only full' and 'read write' must be set to " + "update the publishing status.");
                }

                SheetPublish sheetPublish = new SheetPublish();
                sheetPublish.readOnlyLiteEnabled = readOnlyLiteEnabled;
                sheetPublish.readOnlyFullEnabled = readOnlyFullEnabled;
                sheetPublish.readWriteEnabled = readWriteEnabled;
                sheetPublish.icalEnabled = icalEnabled;
                return sheetPublish;
            }