com.tencentcloudapi.ckafka.v20190819.models.DescribeDatahubTopicResp Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-ckafka Show documentation
Show all versions of tencentcloud-sdk-java-ckafka Show documentation
Tencent Cloud Open API SDK for Java
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.ckafka.v20190819.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class DescribeDatahubTopicResp extends AbstractModel{
/**
* 名称
*/
@SerializedName("Name")
@Expose
private String Name;
/**
* Topic名称
*/
@SerializedName("TopicName")
@Expose
private String TopicName;
/**
* Topic Id
*/
@SerializedName("TopicId")
@Expose
private String TopicId;
/**
* 分区数
*/
@SerializedName("PartitionNum")
@Expose
private Long PartitionNum;
/**
* 过期时间
*/
@SerializedName("RetentionMs")
@Expose
private Long RetentionMs;
/**
* 备注
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("Note")
@Expose
private String Note;
/**
* 用户名
*/
@SerializedName("UserName")
@Expose
private String UserName;
/**
* 密码
*/
@SerializedName("Password")
@Expose
private String Password;
/**
* 状态,1使用中,2删除中
*/
@SerializedName("Status")
@Expose
private Long Status;
/**
* 服务路由地址
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("Address")
@Expose
private String Address;
/**
* Get 名称
* @return Name 名称
*/
public String getName() {
return this.Name;
}
/**
* Set 名称
* @param Name 名称
*/
public void setName(String Name) {
this.Name = Name;
}
/**
* Get Topic名称
* @return TopicName Topic名称
*/
public String getTopicName() {
return this.TopicName;
}
/**
* Set Topic名称
* @param TopicName Topic名称
*/
public void setTopicName(String TopicName) {
this.TopicName = TopicName;
}
/**
* Get Topic Id
* @return TopicId Topic Id
*/
public String getTopicId() {
return this.TopicId;
}
/**
* Set Topic Id
* @param TopicId Topic Id
*/
public void setTopicId(String TopicId) {
this.TopicId = TopicId;
}
/**
* Get 分区数
* @return PartitionNum 分区数
*/
public Long getPartitionNum() {
return this.PartitionNum;
}
/**
* Set 分区数
* @param PartitionNum 分区数
*/
public void setPartitionNum(Long PartitionNum) {
this.PartitionNum = PartitionNum;
}
/**
* Get 过期时间
* @return RetentionMs 过期时间
*/
public Long getRetentionMs() {
return this.RetentionMs;
}
/**
* Set 过期时间
* @param RetentionMs 过期时间
*/
public void setRetentionMs(Long RetentionMs) {
this.RetentionMs = RetentionMs;
}
/**
* Get 备注
注意:此字段可能返回 null,表示取不到有效值。
* @return Note 备注
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getNote() {
return this.Note;
}
/**
* Set 备注
注意:此字段可能返回 null,表示取不到有效值。
* @param Note 备注
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setNote(String Note) {
this.Note = Note;
}
/**
* Get 用户名
* @return UserName 用户名
*/
public String getUserName() {
return this.UserName;
}
/**
* Set 用户名
* @param UserName 用户名
*/
public void setUserName(String UserName) {
this.UserName = UserName;
}
/**
* Get 密码
* @return Password 密码
*/
public String getPassword() {
return this.Password;
}
/**
* Set 密码
* @param Password 密码
*/
public void setPassword(String Password) {
this.Password = Password;
}
/**
* Get 状态,1使用中,2删除中
* @return Status 状态,1使用中,2删除中
*/
public Long getStatus() {
return this.Status;
}
/**
* Set 状态,1使用中,2删除中
* @param Status 状态,1使用中,2删除中
*/
public void setStatus(Long Status) {
this.Status = Status;
}
/**
* Get 服务路由地址
注意:此字段可能返回 null,表示取不到有效值。
* @return Address 服务路由地址
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getAddress() {
return this.Address;
}
/**
* Set 服务路由地址
注意:此字段可能返回 null,表示取不到有效值。
* @param Address 服务路由地址
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setAddress(String Address) {
this.Address = Address;
}
public DescribeDatahubTopicResp() {
}
/**
* NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
* and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
*/
public DescribeDatahubTopicResp(DescribeDatahubTopicResp source) {
if (source.Name != null) {
this.Name = new String(source.Name);
}
if (source.TopicName != null) {
this.TopicName = new String(source.TopicName);
}
if (source.TopicId != null) {
this.TopicId = new String(source.TopicId);
}
if (source.PartitionNum != null) {
this.PartitionNum = new Long(source.PartitionNum);
}
if (source.RetentionMs != null) {
this.RetentionMs = new Long(source.RetentionMs);
}
if (source.Note != null) {
this.Note = new String(source.Note);
}
if (source.UserName != null) {
this.UserName = new String(source.UserName);
}
if (source.Password != null) {
this.Password = new String(source.Password);
}
if (source.Status != null) {
this.Status = new Long(source.Status);
}
if (source.Address != null) {
this.Address = new String(source.Address);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "Name", this.Name);
this.setParamSimple(map, prefix + "TopicName", this.TopicName);
this.setParamSimple(map, prefix + "TopicId", this.TopicId);
this.setParamSimple(map, prefix + "PartitionNum", this.PartitionNum);
this.setParamSimple(map, prefix + "RetentionMs", this.RetentionMs);
this.setParamSimple(map, prefix + "Note", this.Note);
this.setParamSimple(map, prefix + "UserName", this.UserName);
this.setParamSimple(map, prefix + "Password", this.Password);
this.setParamSimple(map, prefix + "Status", this.Status);
this.setParamSimple(map, prefix + "Address", this.Address);
}
}