DBFILESPaperDocUpdatePolicy
Objective-C
@interface DBFILESPaperDocUpdatePolicy : NSObject <DBSerializable, NSCopying>
                Swift
class DBFILESPaperDocUpdatePolicy : NSObject, DBSerializable, NSCopying
                The PaperDocUpdatePolicy union.
This class implements the DBSerializable protocol (serialize and
deserialize instance methods), which is required for all Obj-C SDK API route
objects.
- 
                  
                  
Represents the union’s current tag state.
Declaration
Objective-C
@property (nonatomic, readonly) DBFILESPaperDocUpdatePolicyTag tag;Swift
var tag: DBFILESPaperDocUpdatePolicyTag { get } 
- 
                  
                  
Initializes union class with tag state of “update”.
Description of the “update” tag state: Sets the doc content to the provided content if the provided paper_revision matches the latest doc revision. Otherwise, returns an error.
Declaration
Objective-C
- (nonnull instancetype)initWithUpdate;Swift
init(update: ())Return Value
An initialized instance.
 - 
                  
                  
Initializes union class with tag state of “overwrite”.
Description of the “overwrite” tag state: Sets the doc content to the provided content without checking paper_revision.
Declaration
Objective-C
- (nonnull instancetype)initWithOverwrite;Swift
init(overwrite: ())Return Value
An initialized instance.
 - 
                  
                  
Initializes union class with tag state of “prepend”.
Description of the “prepend” tag state: Adds the provided content to the beginning of the doc without checking paper_revision.
Declaration
Objective-C
- (nonnull instancetype)initWithPrepend;Swift
init(prepend: ())Return Value
An initialized instance.
 - 
                  
                  
Initializes union class with tag state of “append”.
Description of the “append” tag state: Adds the provided content to the end of the doc without checking paper_revision.
Declaration
Objective-C
- (nonnull instancetype)initWithAppend;Swift
init(append: ())Return Value
An initialized instance.
 - 
                  
                  
Initializes union class with tag state of “other”.
Declaration
Objective-C
- (nonnull instancetype)initWithOther;Swift
init(other: ())Return Value
An initialized instance.
 
- 
                  
                  
Retrieves whether the union’s current tag state has value “update”.
Declaration
Objective-C
- (BOOL)isUpdate;Swift
func isUpdate() -> BoolReturn Value
Whether the union’s current tag state has value “update”.
 - 
                  
                  
Retrieves whether the union’s current tag state has value “overwrite”.
Declaration
Objective-C
- (BOOL)isOverwrite;Swift
func isOverwrite() -> BoolReturn Value
Whether the union’s current tag state has value “overwrite”.
 - 
                  
                  
Retrieves whether the union’s current tag state has value “prepend”.
Declaration
Objective-C
- (BOOL)isPrepend;Swift
func isPrepend() -> BoolReturn Value
Whether the union’s current tag state has value “prepend”.
 - 
                  
                  
Retrieves whether the union’s current tag state has value “append”.
Declaration
Objective-C
- (BOOL)isAppend;Swift
func isAppend() -> BoolReturn Value
Whether the union’s current tag state has value “append”.
 - 
                  
                  
Retrieves whether the union’s current tag state has value “other”.
Declaration
Objective-C
- (BOOL)isOther;Swift
func isOther() -> BoolReturn Value
Whether the union’s current tag state has value “other”.
 - 
                  
                  
Retrieves string value of union’s current tag state.
Declaration
Objective-C
- (nonnull NSString *)tagName;Swift
func tagName() -> StringReturn Value
A human-readable string representing the union’s current tag state.
 
View on GitHub
        DBFILESPaperDocUpdatePolicy Class Reference