Class: TencentCloud::Tdmq::V20200217::SendCmqMsgRequest

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

Overview

SendCmqMsg请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(queuename = nil, msgcontent = nil, delayseconds = nil) ⇒ SendCmqMsgRequest

Returns a new instance of SendCmqMsgRequest.



12657
12658
12659
12660
12661
# File 'lib/v20200217/models.rb', line 12657

def initialize(queuename=nil, msgcontent=nil, delayseconds=nil)
  @QueueName = queuename
  @MsgContent = msgcontent
  @DelaySeconds = delayseconds
end

Instance Attribute Details

#DelaySecondsObject

Parameters:

  • QueueName:

    队列名

  • MsgContent:

    消息内容

  • DelaySeconds:

    延迟时间。单位为秒,默认值为0秒,最大不能超过队列配置的消息最长未确认时间。



12655
12656
12657
# File 'lib/v20200217/models.rb', line 12655

def DelaySeconds
  @DelaySeconds
end

#MsgContentObject

Parameters:

  • QueueName:

    队列名

  • MsgContent:

    消息内容

  • DelaySeconds:

    延迟时间。单位为秒,默认值为0秒,最大不能超过队列配置的消息最长未确认时间。



12655
12656
12657
# File 'lib/v20200217/models.rb', line 12655

def MsgContent
  @MsgContent
end

#QueueNameObject

Parameters:

  • QueueName:

    队列名

  • MsgContent:

    消息内容

  • DelaySeconds:

    延迟时间。单位为秒,默认值为0秒,最大不能超过队列配置的消息最长未确认时间。



12655
12656
12657
# File 'lib/v20200217/models.rb', line 12655

def QueueName
  @QueueName
end

Instance Method Details

#deserialize(params) ⇒ Object



12663
12664
12665
12666
12667
# File 'lib/v20200217/models.rb', line 12663

def deserialize(params)
  @QueueName = params['QueueName']
  @MsgContent = params['MsgContent']
  @DelaySeconds = params['DelaySeconds']
end