com.tencentcloudapi.tem.v20210701.models.DeployServiceBatchDetail Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-tem Show documentation
Show all versions of tencentcloud-sdk-java-tem 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.tem.v20210701.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class DeployServiceBatchDetail extends AbstractModel{
/**
* 旧实例列表
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("OldPodList")
@Expose
private DeployServicePodDetail OldPodList;
/**
* 新实例列表
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("NewPodList")
@Expose
private DeployServicePodDetail NewPodList;
/**
* 当前批次状态:"WaitForTimeExceed", "WaitForResume", "Deploying", "Finish", "NotStart"
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("BatchStatus")
@Expose
private String BatchStatus;
/**
* 该批次预计旧实例数量
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("PodNum")
@Expose
private Long PodNum;
/**
* 批次id
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("BatchIndex")
@Expose
private Long BatchIndex;
/**
* 旧实例列表
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("OldPods")
@Expose
private DeployServicePodDetail [] OldPods;
/**
* 新实例列表
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("NewPods")
@Expose
private DeployServicePodDetail [] NewPods;
/**
* =0:手动确认批次;>0:下一批次开始时间戳
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("NextBatchStartTime")
@Expose
private Long NextBatchStartTime;
/**
* Get 旧实例列表
注意:此字段可能返回 null,表示取不到有效值。
* @return OldPodList 旧实例列表
注意:此字段可能返回 null,表示取不到有效值。
*/
public DeployServicePodDetail getOldPodList() {
return this.OldPodList;
}
/**
* Set 旧实例列表
注意:此字段可能返回 null,表示取不到有效值。
* @param OldPodList 旧实例列表
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setOldPodList(DeployServicePodDetail OldPodList) {
this.OldPodList = OldPodList;
}
/**
* Get 新实例列表
注意:此字段可能返回 null,表示取不到有效值。
* @return NewPodList 新实例列表
注意:此字段可能返回 null,表示取不到有效值。
*/
public DeployServicePodDetail getNewPodList() {
return this.NewPodList;
}
/**
* Set 新实例列表
注意:此字段可能返回 null,表示取不到有效值。
* @param NewPodList 新实例列表
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setNewPodList(DeployServicePodDetail NewPodList) {
this.NewPodList = NewPodList;
}
/**
* Get 当前批次状态:"WaitForTimeExceed", "WaitForResume", "Deploying", "Finish", "NotStart"
注意:此字段可能返回 null,表示取不到有效值。
* @return BatchStatus 当前批次状态:"WaitForTimeExceed", "WaitForResume", "Deploying", "Finish", "NotStart"
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getBatchStatus() {
return this.BatchStatus;
}
/**
* Set 当前批次状态:"WaitForTimeExceed", "WaitForResume", "Deploying", "Finish", "NotStart"
注意:此字段可能返回 null,表示取不到有效值。
* @param BatchStatus 当前批次状态:"WaitForTimeExceed", "WaitForResume", "Deploying", "Finish", "NotStart"
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setBatchStatus(String BatchStatus) {
this.BatchStatus = BatchStatus;
}
/**
* Get 该批次预计旧实例数量
注意:此字段可能返回 null,表示取不到有效值。
* @return PodNum 该批次预计旧实例数量
注意:此字段可能返回 null,表示取不到有效值。
*/
public Long getPodNum() {
return this.PodNum;
}
/**
* Set 该批次预计旧实例数量
注意:此字段可能返回 null,表示取不到有效值。
* @param PodNum 该批次预计旧实例数量
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setPodNum(Long PodNum) {
this.PodNum = PodNum;
}
/**
* Get 批次id
注意:此字段可能返回 null,表示取不到有效值。
* @return BatchIndex 批次id
注意:此字段可能返回 null,表示取不到有效值。
*/
public Long getBatchIndex() {
return this.BatchIndex;
}
/**
* Set 批次id
注意:此字段可能返回 null,表示取不到有效值。
* @param BatchIndex 批次id
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setBatchIndex(Long BatchIndex) {
this.BatchIndex = BatchIndex;
}
/**
* Get 旧实例列表
注意:此字段可能返回 null,表示取不到有效值。
* @return OldPods 旧实例列表
注意:此字段可能返回 null,表示取不到有效值。
*/
public DeployServicePodDetail [] getOldPods() {
return this.OldPods;
}
/**
* Set 旧实例列表
注意:此字段可能返回 null,表示取不到有效值。
* @param OldPods 旧实例列表
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setOldPods(DeployServicePodDetail [] OldPods) {
this.OldPods = OldPods;
}
/**
* Get 新实例列表
注意:此字段可能返回 null,表示取不到有效值。
* @return NewPods 新实例列表
注意:此字段可能返回 null,表示取不到有效值。
*/
public DeployServicePodDetail [] getNewPods() {
return this.NewPods;
}
/**
* Set 新实例列表
注意:此字段可能返回 null,表示取不到有效值。
* @param NewPods 新实例列表
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setNewPods(DeployServicePodDetail [] NewPods) {
this.NewPods = NewPods;
}
/**
* Get =0:手动确认批次;>0:下一批次开始时间戳
注意:此字段可能返回 null,表示取不到有效值。
* @return NextBatchStartTime =0:手动确认批次;>0:下一批次开始时间戳
注意:此字段可能返回 null,表示取不到有效值。
*/
public Long getNextBatchStartTime() {
return this.NextBatchStartTime;
}
/**
* Set =0:手动确认批次;>0:下一批次开始时间戳
注意:此字段可能返回 null,表示取不到有效值。
* @param NextBatchStartTime =0:手动确认批次;>0:下一批次开始时间戳
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setNextBatchStartTime(Long NextBatchStartTime) {
this.NextBatchStartTime = NextBatchStartTime;
}
public DeployServiceBatchDetail() {
}
/**
* 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 DeployServiceBatchDetail(DeployServiceBatchDetail source) {
if (source.OldPodList != null) {
this.OldPodList = new DeployServicePodDetail(source.OldPodList);
}
if (source.NewPodList != null) {
this.NewPodList = new DeployServicePodDetail(source.NewPodList);
}
if (source.BatchStatus != null) {
this.BatchStatus = new String(source.BatchStatus);
}
if (source.PodNum != null) {
this.PodNum = new Long(source.PodNum);
}
if (source.BatchIndex != null) {
this.BatchIndex = new Long(source.BatchIndex);
}
if (source.OldPods != null) {
this.OldPods = new DeployServicePodDetail[source.OldPods.length];
for (int i = 0; i < source.OldPods.length; i++) {
this.OldPods[i] = new DeployServicePodDetail(source.OldPods[i]);
}
}
if (source.NewPods != null) {
this.NewPods = new DeployServicePodDetail[source.NewPods.length];
for (int i = 0; i < source.NewPods.length; i++) {
this.NewPods[i] = new DeployServicePodDetail(source.NewPods[i]);
}
}
if (source.NextBatchStartTime != null) {
this.NextBatchStartTime = new Long(source.NextBatchStartTime);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamObj(map, prefix + "OldPodList.", this.OldPodList);
this.setParamObj(map, prefix + "NewPodList.", this.NewPodList);
this.setParamSimple(map, prefix + "BatchStatus", this.BatchStatus);
this.setParamSimple(map, prefix + "PodNum", this.PodNum);
this.setParamSimple(map, prefix + "BatchIndex", this.BatchIndex);
this.setParamArrayObj(map, prefix + "OldPods.", this.OldPods);
this.setParamArrayObj(map, prefix + "NewPods.", this.NewPods);
this.setParamSimple(map, prefix + "NextBatchStartTime", this.NextBatchStartTime);
}
}