![JAR search and dependency download from the Maven repository](/logo.png)
com.tencentcloudapi.tem.v20201221.models.DeployStrategyConf Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Tencent Cloud 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.v20201221.models;
import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class DeployStrategyConf extends AbstractModel {
/**
* Total batches
*/
@SerializedName("TotalBatchCount")
@Expose
private Long TotalBatchCount;
/**
* Number of instances for the beta batch
*/
@SerializedName("BetaBatchNum")
@Expose
private Long BetaBatchNum;
/**
* Batch deploy policy. `0`: automatically; `1`: manually. If you use beta batch, the policy for beta batch must be `0`. The policy specified here only applies to the rest batches.
*/
@SerializedName("DeployStrategyType")
@Expose
private Long DeployStrategyType;
/**
* Interval between batches
*/
@SerializedName("BatchInterval")
@Expose
private Long BatchInterval;
/**
* Get Total batches
* @return TotalBatchCount Total batches
*/
public Long getTotalBatchCount() {
return this.TotalBatchCount;
}
/**
* Set Total batches
* @param TotalBatchCount Total batches
*/
public void setTotalBatchCount(Long TotalBatchCount) {
this.TotalBatchCount = TotalBatchCount;
}
/**
* Get Number of instances for the beta batch
* @return BetaBatchNum Number of instances for the beta batch
*/
public Long getBetaBatchNum() {
return this.BetaBatchNum;
}
/**
* Set Number of instances for the beta batch
* @param BetaBatchNum Number of instances for the beta batch
*/
public void setBetaBatchNum(Long BetaBatchNum) {
this.BetaBatchNum = BetaBatchNum;
}
/**
* Get Batch deploy policy. `0`: automatically; `1`: manually. If you use beta batch, the policy for beta batch must be `0`. The policy specified here only applies to the rest batches.
* @return DeployStrategyType Batch deploy policy. `0`: automatically; `1`: manually. If you use beta batch, the policy for beta batch must be `0`. The policy specified here only applies to the rest batches.
*/
public Long getDeployStrategyType() {
return this.DeployStrategyType;
}
/**
* Set Batch deploy policy. `0`: automatically; `1`: manually. If you use beta batch, the policy for beta batch must be `0`. The policy specified here only applies to the rest batches.
* @param DeployStrategyType Batch deploy policy. `0`: automatically; `1`: manually. If you use beta batch, the policy for beta batch must be `0`. The policy specified here only applies to the rest batches.
*/
public void setDeployStrategyType(Long DeployStrategyType) {
this.DeployStrategyType = DeployStrategyType;
}
/**
* Get Interval between batches
* @return BatchInterval Interval between batches
*/
public Long getBatchInterval() {
return this.BatchInterval;
}
/**
* Set Interval between batches
* @param BatchInterval Interval between batches
*/
public void setBatchInterval(Long BatchInterval) {
this.BatchInterval = BatchInterval;
}
public DeployStrategyConf() {
}
/**
* 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 DeployStrategyConf(DeployStrategyConf source) {
if (source.TotalBatchCount != null) {
this.TotalBatchCount = new Long(source.TotalBatchCount);
}
if (source.BetaBatchNum != null) {
this.BetaBatchNum = new Long(source.BetaBatchNum);
}
if (source.DeployStrategyType != null) {
this.DeployStrategyType = new Long(source.DeployStrategyType);
}
if (source.BatchInterval != null) {
this.BatchInterval = new Long(source.BatchInterval);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "TotalBatchCount", this.TotalBatchCount);
this.setParamSimple(map, prefix + "BetaBatchNum", this.BetaBatchNum);
this.setParamSimple(map, prefix + "DeployStrategyType", this.DeployStrategyType);
this.setParamSimple(map, prefix + "BatchInterval", this.BatchInterval);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy