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.

Instance fields

  • tag

    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 isMalformedEntry method 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 isEntriesAlreadyExist method 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 }

Constructors

  • 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

    malformedEntry

    One 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

    entriesAlreadyExist

    Entries 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.

Tag state methods

  • Retrieves whether the union’s current tag state has value “malformed_entry”.

    Note

    Call this method and ensure it returns true before accessing the malformedEntry property, otherwise a runtime exception will be thrown.

    Declaration

    Objective-C

    - (BOOL)isMalformedEntry;

    Swift

    func isMalformedEntry() -> Bool

    Return 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() -> Bool

    Return 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() -> Bool

    Return 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() -> Bool

    Return 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() -> Bool

    Return 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 entriesAlreadyExist property, otherwise a runtime exception will be thrown.

    Declaration

    Objective-C

    - (BOOL)isEntriesAlreadyExist;

    Swift

    func isEntriesAlreadyExist() -> Bool

    Return 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() -> Bool

    Return 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() -> String

    Return Value

    A human-readable string representing the union’s current tag state.