Class: TencentCloud::Ckafka::V20190819::Topic

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

Overview

返回的topic对象

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(topicid = nil, topicname = nil, note = nil) ⇒ Topic

Returns a new instance of Topic.



11611
11612
11613
11614
11615
# File 'lib/v20190819/models.rb', line 11611

def initialize(topicid=nil, topicname=nil, note=nil)
  @TopicId = topicid
  @TopicName = topicname
  @Note = note
end

Instance Attribute Details

#NoteObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • TopicId:

    主题的ID

  • TopicName:

    主题的名称

  • Note:

    备注



11609
11610
11611
# File 'lib/v20190819/models.rb', line 11609

def Note
  @Note
end

#TopicIdObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • TopicId:

    主题的ID

  • TopicName:

    主题的名称

  • Note:

    备注



11609
11610
11611
# File 'lib/v20190819/models.rb', line 11609

def TopicId
  @TopicId
end

#TopicNameObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • TopicId:

    主题的ID

  • TopicName:

    主题的名称

  • Note:

    备注



11609
11610
11611
# File 'lib/v20190819/models.rb', line 11609

def TopicName
  @TopicName
end

Instance Method Details

#deserialize(params) ⇒ Object



11617
11618
11619
11620
11621
# File 'lib/v20190819/models.rb', line 11617

def deserialize(params)
  @TopicId = params['TopicId']
  @TopicName = params['TopicName']
  @Note = params['Note']
end