DBTEAMLOGGovernancePolicyCreateDetails

Objective-C

@interface DBTEAMLOGGovernancePolicyCreateDetails
    : NSObject <DBSerializable, NSCopying>

Swift

class DBTEAMLOGGovernancePolicyCreateDetails : NSObject, DBSerializable, NSCopying

The GovernancePolicyCreateDetails struct.

Activated a new policy.

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

Instance fields

  • Policy ID.

    Declaration

    Objective-C

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

    Swift

    var governancePolicyId: String { get }
  • Policy name.

    Declaration

    Objective-C

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

    Swift

    var name: String { get }
  • Policy type.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) DBTEAMLOGPolicyType *policyType;

    Swift

    var policyType: DBTEAMLOGPolicyType? { get }
  • Duration in days.

    Declaration

    Objective-C

    @property (nonatomic, readonly) DBTEAMLOGDurationLogInfo *_Nonnull duration;

    Swift

    var duration: DBTEAMLOGDurationLogInfo { get }
  • Folders.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSArray<NSString *> *folders;

    Swift

    var folders: [String]? { get }

Constructors

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

    Declaration

    Objective-C

    - (nonnull instancetype)
        initWithGovernancePolicyId:(nonnull NSString *)governancePolicyId
                              name:(nonnull NSString *)name
                          duration:(nonnull DBTEAMLOGDurationLogInfo *)duration
                        policyType:(nullable DBTEAMLOGPolicyType *)policyType
                           folders:(nullable NSArray<NSString *> *)folders;

    Swift

    init(governancePolicyId: String, name: String, duration: DBTEAMLOGDurationLogInfo, policyType: DBTEAMLOGPolicyType?, folders: [String]?)

    Parameters

    governancePolicyId

    Policy ID.

    name

    Policy name.

    duration

    Duration in days.

    policyType

    Policy type.

    folders

    Folders.

    Return Value

    An initialized instance.

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

    Declaration

    Objective-C

    - (nonnull instancetype)
        initWithGovernancePolicyId:(nonnull NSString *)governancePolicyId
                              name:(nonnull NSString *)name
                          duration:(nonnull DBTEAMLOGDurationLogInfo *)duration;

    Swift

    init(governancePolicyId: String, name: String, duration: DBTEAMLOGDurationLogInfo)

    Parameters

    governancePolicyId

    Policy ID.

    name

    Policy name.

    duration

    Duration in days.

    Return Value

    An initialized instance.