Class: Aws::ConnectScheduling::Types::Duration

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-connectscheduling/lib/aws-sdk-connectscheduling/types.rb

Overview

A length of time, expressed as a value and the unit it is counted in.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#unit ⇒ String

The unit the value is counted in.

Returns:

  • (String)


301
302
303
304
305
306
# File 'gems/aws-sdk-connectscheduling/lib/aws-sdk-connectscheduling/types.rb', line 301

class Duration < Struct.new(
  :value,
  :unit)
  SENSITIVE = []
  include Aws::Structure
end

#value ⇒ Integer

The number of units of time. You can use a negative value to report an overdrawn balance. The value must be within 876,000 hours (100 years) of zero: at most 52,560,000 MINUTES, 876,000 HOURS, or 36,500 DAYS.

Returns:

  • (Integer)


301
302
303
304
305
306
# File 'gems/aws-sdk-connectscheduling/lib/aws-sdk-connectscheduling/types.rb', line 301

class Duration < Struct.new(
  :value,
  :unit)
  SENSITIVE = []
  include Aws::Structure
end