DBTEAMSharingAllowlistAddError
Objective-C
@interface DBTEAMSharingAllowlistAddError : NSObject <DBSerializable, NSCopying>
                Swift
class DBTEAMSharingAllowlistAddError : NSObject, DBSerializable, NSCopying
                The SharingAllowlistAddError 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) DBTEAMSharingAllowlistAddErrorTag tag;Swift
var tag: DBTEAMSharingAllowlistAddErrorTag { get } - 
                  
                  
One of provided values is not valid. - note: Ensure the
isMalformedEntrymethod returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull malformedEntry;Swift
var malformedEntry: String { get } - 
                  
                  
Entries already exists. - note: Ensure the
isEntriesAlreadyExistmethod returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull entriesAlreadyExist;Swift
var entriesAlreadyExist: String { get } 
- 
                  
                  
Initializes union class with tag state of “malformed_entry”.
Description of the “malformed_entry” tag state: One of provided values is not valid.
Declaration
Objective-C
- (nonnull instancetype)initWithMalformedEntry: (nonnull NSString *)malformedEntry;Swift
init(malformedEntry: String)Parameters
malformedEntryOne of provided values is not valid.
Return Value
An initialized instance.
 - 
                  
                  
Initializes union class with tag state of “no_entries_provided”.
Description of the “no_entries_provided” tag state: Neither single domain nor email provided.
Declaration
Objective-C
- (nonnull instancetype)initWithNoEntriesProvided;Swift
init(noEntriesProvided: ())Return Value
An initialized instance.
 - 
                  
                  
Initializes union class with tag state of “too_many_entries_provided”.
Description of the “too_many_entries_provided” tag state: Too many entries provided within one call.
Declaration
Objective-C
- (nonnull instancetype)initWithTooManyEntriesProvided;Swift
init(tooManyEntriesProvided: ())Return Value
An initialized instance.
 - 
                  
                  
Initializes union class with tag state of “team_limit_reached”.
Description of the “team_limit_reached” tag state: Team entries limit reached.
Declaration
Objective-C
- (nonnull instancetype)initWithTeamLimitReached;Swift
init(teamLimitReached: ())Return Value
An initialized instance.
 - 
                  
                  
Initializes union class with tag state of “unknown_error”.
Description of the “unknown_error” tag state: Unknown error.
Declaration
Objective-C
- (nonnull instancetype)initWithUnknownError;Swift
init(unknownError: ())Return Value
An initialized instance.
 - 
                  
                  
Initializes union class with tag state of “entries_already_exist”.
Description of the “entries_already_exist” tag state: Entries already exists.
Declaration
Objective-C
- (nonnull instancetype)initWithEntriesAlreadyExist: (nonnull NSString *)entriesAlreadyExist;Swift
init(entriesAlreadyExist: String)Parameters
entriesAlreadyExistEntries already exists.
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 “malformed_entry”.
Note
Call this method and ensure it returns true before accessing the
malformedEntryproperty, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isMalformedEntry;Swift
func isMalformedEntry() -> BoolReturn Value
Whether the union’s current tag state has value “malformed_entry”.
 - 
                  
                  
Retrieves whether the union’s current tag state has value “no_entries_provided”.
Declaration
Objective-C
- (BOOL)isNoEntriesProvided;Swift
func isNoEntriesProvided() -> BoolReturn Value
Whether the union’s current tag state has value “no_entries_provided”.
 - 
                  
                  
Retrieves whether the union’s current tag state has value “too_many_entries_provided”.
Declaration
Objective-C
- (BOOL)isTooManyEntriesProvided;Swift
func isTooManyEntriesProvided() -> BoolReturn Value
Whether the union’s current tag state has value “too_many_entries_provided”.
 - 
                  
                  
Retrieves whether the union’s current tag state has value “team_limit_reached”.
Declaration
Objective-C
- (BOOL)isTeamLimitReached;Swift
func isTeamLimitReached() -> BoolReturn Value
Whether the union’s current tag state has value “team_limit_reached”.
 - 
                  
                  
Retrieves whether the union’s current tag state has value “unknown_error”.
Declaration
Objective-C
- (BOOL)isUnknownError;Swift
func isUnknownError() -> BoolReturn Value
Whether the union’s current tag state has value “unknown_error”.
 - 
                  
                  
Retrieves whether the union’s current tag state has value “entries_already_exist”.
Note
Call this method and ensure it returns true before accessing the
entriesAlreadyExistproperty, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isEntriesAlreadyExist;Swift
func isEntriesAlreadyExist() -> BoolReturn Value
Whether the union’s current tag state has value “entries_already_exist”.
 - 
                  
                  
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
        DBTEAMSharingAllowlistAddError Class Reference