Class: TencentCloud::Tdmq::V20200217::RetentionPolicy

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20200217/models.rb

Overview

消息保留策略

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(timeinminutes = nil, sizeinmb = nil) ⇒ RetentionPolicy

Returns a new instance of RetentionPolicy.



11288
11289
11290
11291
# File 'lib/v20200217/models.rb', line 11288

def initialize(timeinminutes=nil, sizeinmb=nil)
  @TimeInMinutes = timeinminutes
  @SizeInMB = sizeinmb
end

Instance Attribute Details

#SizeInMBObject

Parameters:

  • TimeInMinutes:

    消息保留时长

  • SizeInMB:

    消息保留大小



11286
11287
11288
# File 'lib/v20200217/models.rb', line 11286

def SizeInMB
  @SizeInMB
end

#TimeInMinutesObject

Parameters:

  • TimeInMinutes:

    消息保留时长

  • SizeInMB:

    消息保留大小



11286
11287
11288
# File 'lib/v20200217/models.rb', line 11286

def TimeInMinutes
  @TimeInMinutes
end

Instance Method Details

#deserialize(params) ⇒ Object



11293
11294
11295
11296
# File 'lib/v20200217/models.rb', line 11293

def deserialize(params)
  @TimeInMinutes = params['TimeInMinutes']
  @SizeInMB = params['SizeInMB']
end