/*
* Copyright (c) 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.
*/
namespace TencentCloud.Ckafka.V20190819.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class TopicDetail : AbstractModel
{
///
/// 主题名称
///
[JsonProperty("TopicName")]
public string TopicName{ get; set; }
///
/// 主题ID
///
[JsonProperty("TopicId")]
public string TopicId{ get; set; }
///
/// 分区数
///
[JsonProperty("PartitionNum")]
public long? PartitionNum{ get; set; }
///
/// 副本数
///
[JsonProperty("ReplicaNum")]
public long? ReplicaNum{ get; set; }
///
/// 备注
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("Note")]
public string Note{ get; set; }
///
/// 创建时间
///
[JsonProperty("CreateTime")]
public long? CreateTime{ get; set; }
///
/// 是否开启ip鉴权白名单,true表示开启,false表示不开启
///
[JsonProperty("EnableWhiteList")]
public bool? EnableWhiteList{ get; set; }
///
/// ip白名单中ip个数
///
[JsonProperty("IpWhiteListCount")]
public long? IpWhiteListCount{ get; set; }
///
/// 数据备份cos bucket: 转存到cos 的bucket地址
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("ForwardCosBucket")]
public string ForwardCosBucket{ get; set; }
///
/// 数据备份cos 状态: 1 不开启数据备份,0 开启数据备份
///
[JsonProperty("ForwardStatus")]
public long? ForwardStatus{ get; set; }
///
/// 数据备份到cos的周期频率
///
[JsonProperty("ForwardInterval")]
public long? ForwardInterval{ get; set; }
///
/// 高级配置
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("Config")]
public Config Config{ get; set; }
///
/// For internal usage only. DO NOT USE IT.
///
internal override void ToMap(Dictionary map, string prefix)
{
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 + "ReplicaNum", this.ReplicaNum);
this.SetParamSimple(map, prefix + "Note", this.Note);
this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime);
this.SetParamSimple(map, prefix + "EnableWhiteList", this.EnableWhiteList);
this.SetParamSimple(map, prefix + "IpWhiteListCount", this.IpWhiteListCount);
this.SetParamSimple(map, prefix + "ForwardCosBucket", this.ForwardCosBucket);
this.SetParamSimple(map, prefix + "ForwardStatus", this.ForwardStatus);
this.SetParamSimple(map, prefix + "ForwardInterval", this.ForwardInterval);
this.SetParamObj(map, prefix + "Config.", this.Config);
}
}
}