DBSHARINGModifySharedLinkSettingsArgs

Objective-C

@interface DBSHARINGModifySharedLinkSettingsArgs
    : NSObject <DBSerializable, NSCopying>

Swift

class DBSHARINGModifySharedLinkSettingsArgs : NSObject, DBSerializable, NSCopying

The ModifySharedLinkSettingsArgs struct.

This class implements the DBSerializable protocol (serialize and deserialize instance methods), which is required for all Obj-C SDK API route objects.

Instance fields

  • url

    URL of the shared link to change its settings.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSString *_Nonnull url;

    Swift

    var url: String { get }
  • Set of settings for the shared link.

    Declaration

    Objective-C

    @property (nonatomic, readonly) DBSHARINGSharedLinkSettings *_Nonnull settings;

    Swift

    var settings: DBSHARINGSharedLinkSettings { get }
  • If set to true, removes the expiration of the shared link.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSNumber *_Nonnull removeExpiration;

    Swift

    var removeExpiration: NSNumber { get }

Constructors

  • Full constructor for the struct (exposes all instance variables).

    Declaration

    Objective-C

    - (nonnull instancetype)initWithUrl:(nonnull NSString *)url
                               settings:
                                   (nonnull DBSHARINGSharedLinkSettings *)settings
                       removeExpiration:(nullable NSNumber *)removeExpiration;

    Swift

    init(url: String, settings: DBSHARINGSharedLinkSettings, removeExpiration: NSNumber?)

    Parameters

    url

    URL of the shared link to change its settings.

    settings

    Set of settings for the shared link.

    removeExpiration

    If set to true, removes the expiration of the shared link.

    Return Value

    An initialized instance.

  • Convenience constructor (exposes only non-nullable instance variables with no default value).

    Declaration

    Objective-C

    - (nonnull instancetype)initWithUrl:(nonnull NSString *)url
                               settings:
                                   (nonnull DBSHARINGSharedLinkSettings *)settings;

    Swift

    init(url: String, settings: DBSHARINGSharedLinkSettings)

    Parameters

    url

    URL of the shared link to change its settings.

    settings

    Set of settings for the shared link.

    Return Value

    An initialized instance.