Class: TencentCloud::Ckafka::V20190819::BatchContent

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

Overview

批量发送消息内容

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(body = nil, key = nil) ⇒ BatchContent

Returns a new instance of BatchContent.



326
327
328
329
# File 'lib/v20190819/models.rb', line 326

def initialize(body=nil, key=nil)
  @Body = body
  @Key = key
end

Instance Attribute Details

#BodyObject

Parameters:

  • Body:

    发送的消息体

  • Key:

    发送消息的键名



324
325
326
# File 'lib/v20190819/models.rb', line 324

def Body
  @Body
end

#KeyObject

Parameters:

  • Body:

    发送的消息体

  • Key:

    发送消息的键名



324
325
326
# File 'lib/v20190819/models.rb', line 324

def Key
  @Key
end

Instance Method Details

#deserialize(params) ⇒ Object



331
332
333
334
# File 'lib/v20190819/models.rb', line 331

def deserialize(params)
  @Body = params['Body']
  @Key = params['Key']
end