text: ///
  /// Copyright (c) 2016 Dropbox, Inc. All rights reserved.
  ///
  /// Auto-generated by Stone, do not modify.
  ///
  
  #import <Foundation/Foundation.h>
  
  #import "DBSerializableProtocol.h"
  
  @class DBTEAMLOGDurationLogInfo;
  @class DBTEAMLOGWebSessionsIdleLengthPolicy;
  
  NS_ASSUME_NONNULL_BEGIN
  
  #pragma mark - API Object
  
  ///
  /// The `WebSessionsIdleLengthPolicy` union.
  ///
  /// Web sessions idle length policy.
  ///
  /// This class implements the `DBSerializable` protocol (serialize and
  /// deserialize instance methods), which is required for all Obj-C SDK API route
  /// objects.
  ///
  @interface DBTEAMLOGWebSessionsIdleLengthPolicy : NSObject <DBSerializable, NSCopying>
  
  #pragma mark - Instance fields
  
  /// The `DBTEAMLOGWebSessionsIdleLengthPolicyTag` enum type represents the
  /// possible tag states with which the `DBTEAMLOGWebSessionsIdleLengthPolicy`
  /// union can exist.
  typedef NS_ENUM(NSInteger, DBTEAMLOGWebSessionsIdleLengthPolicyTag) {
    /// Defined idle session length.
    DBTEAMLOGWebSessionsIdleLengthPolicyDefined,
  
    /// Undefined idle session length.
    DBTEAMLOGWebSessionsIdleLengthPolicyUndefined,
  
    /// (no description).
    DBTEAMLOGWebSessionsIdleLengthPolicyOther,
  
  };
  
  /// Represents the union's current tag state.
  @property (nonatomic, readonly) DBTEAMLOGWebSessionsIdleLengthPolicyTag tag;
  
  /// Defined idle session length. @note Ensure the `isDefined` method returns
  /// true before accessing, otherwise a runtime exception will be raised.
  @property (nonatomic, readonly) DBTEAMLOGDurationLogInfo *defined;
  
  #pragma mark - Constructors
  
  ///
  /// Initializes union class with tag state of "defined".
  ///
  /// Description of the "defined" tag state: Defined idle session length.
  ///
  /// @param defined Defined idle session length.
  ///
  /// @return An initialized instance.
  ///
  - (instancetype)initWithDefined:(DBTEAMLOGDurationLogInfo *)defined;
  
  ///
  /// Initializes union class with tag state of "undefined".
  ///
  /// Description of the "undefined" tag state: Undefined idle session length.
  ///
  /// @return An initialized instance.
  ///
  - (instancetype)initWithUndefined;
  
  ///
  /// Initializes union class with tag state of "other".
  ///
  /// @return An initialized instance.
  ///
  - (instancetype)initWithOther;
  
  - (instancetype)init NS_UNAVAILABLE;
  
  #pragma mark - Tag state methods
  
  ///
  /// Retrieves whether the union's current tag state has value "defined".
  ///
  /// @note Call this method and ensure it returns true before accessing the
  /// `defined` property, otherwise a runtime exception will be thrown.
  ///
  /// @return Whether the union's current tag state has value "defined".
  ///
  - (BOOL)isDefined;
  
  ///
  /// Retrieves whether the union's current tag state has value "undefined".
  ///
  /// @return Whether the union's current tag state has value "undefined".
  ///
  - (BOOL)isUndefined;
  
  ///
  /// Retrieves whether the union's current tag state has value "other".
  ///
  /// @return Whether the union's current tag state has value "other".
  ///
  - (BOOL)isOther;
  
  ///
  /// Retrieves string value of union's current tag state.
  ///
  /// @return A human-readable string representing the union's current tag state.
  ///
  - (NSString *)tagName;
  
  @end
  
  #pragma mark - Serializer Object
  
  ///
  /// The serialization class for the `DBTEAMLOGWebSessionsIdleLengthPolicy`
  /// union.
  ///
  @interface DBTEAMLOGWebSessionsIdleLengthPolicySerializer : NSObject
  
  ///
  /// Serializes `DBTEAMLOGWebSessionsIdleLengthPolicy` instances.
  ///
  /// @param instance An instance of the `DBTEAMLOGWebSessionsIdleLengthPolicy`
  /// API object.
  ///
  /// @return A json-compatible dictionary representation of the
  /// `DBTEAMLOGWebSessionsIdleLengthPolicy` API object.
  ///
  + (NSDictionary *)serialize:(DBTEAMLOGWebSessionsIdleLengthPolicy *)instance;
  
  ///
  /// Deserializes `DBTEAMLOGWebSessionsIdleLengthPolicy` instances.
  ///
  /// @param dict A json-compatible dictionary representation of the
  /// `DBTEAMLOGWebSessionsIdleLengthPolicy` API object.
  ///
  /// @return An instantiation of the `DBTEAMLOGWebSessionsIdleLengthPolicy`
  /// object.
  ///
  + (DBTEAMLOGWebSessionsIdleLengthPolicy *)deserialize:(NSDictionary *)dict;
  
  @end
  
  NS_ASSUME_NONNULL_END
  