Class: TencentCloud::Tdmq::V20200217::AcknowledgeMessageRequest

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

Overview

AcknowledgeMessage请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(messageid = nil, acktopic = nil, subname = nil) ⇒ AcknowledgeMessageRequest

Returns a new instance of AcknowledgeMessageRequest.



165
166
167
168
169
# File 'lib/v20200217/models.rb', line 165

def initialize(messageid=nil, acktopic=nil, subname=nil)
  @MessageId = messageid
  @AckTopic = acktopic
  @SubName = subname
end

Instance Attribute Details

#AckTopicObject

Parameters:

  • MessageId:

    用作标识消息的唯一的ID(可从 receiveMessage 的返回值中获得)

  • AckTopic:

    Topic 名字(可从 receiveMessage 的返回值中获得)这里尽量需要使用topic的全路径,即:tenant/namespace/topic。如果不指定,默认使用的是:public/default

  • SubName:

    订阅者的名字,可以从receiveMessage的返回值中获取到。这里尽量与receiveMessage中的订阅者保持一致,否则没办法正确ack 接收回来的消息。



163
164
165
# File 'lib/v20200217/models.rb', line 163

def AckTopic
  @AckTopic
end

#MessageIdObject

Parameters:

  • MessageId:

    用作标识消息的唯一的ID(可从 receiveMessage 的返回值中获得)

  • AckTopic:

    Topic 名字(可从 receiveMessage 的返回值中获得)这里尽量需要使用topic的全路径,即:tenant/namespace/topic。如果不指定,默认使用的是:public/default

  • SubName:

    订阅者的名字,可以从receiveMessage的返回值中获取到。这里尽量与receiveMessage中的订阅者保持一致,否则没办法正确ack 接收回来的消息。



163
164
165
# File 'lib/v20200217/models.rb', line 163

def MessageId
  @MessageId
end

#SubNameObject

Parameters:

  • MessageId:

    用作标识消息的唯一的ID(可从 receiveMessage 的返回值中获得)

  • AckTopic:

    Topic 名字(可从 receiveMessage 的返回值中获得)这里尽量需要使用topic的全路径,即:tenant/namespace/topic。如果不指定,默认使用的是:public/default

  • SubName:

    订阅者的名字,可以从receiveMessage的返回值中获取到。这里尽量与receiveMessage中的订阅者保持一致,否则没办法正确ack 接收回来的消息。



163
164
165
# File 'lib/v20200217/models.rb', line 163

def SubName
  @SubName
end

Instance Method Details

#deserialize(params) ⇒ Object



171
172
173
174
175
# File 'lib/v20200217/models.rb', line 171

def deserialize(params)
  @MessageId = params['MessageId']
  @AckTopic = params['AckTopic']
  @SubName = params['SubName']
end