com.tencentcloudapi.tem.v20210701.models.ModifyApplicationReplicasRequest 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 ModifyApplicationReplicasRequest extends AbstractModel{
/**
* 应用id
*/
@SerializedName("ApplicationId")
@Expose
private String ApplicationId;
/**
* 环境ID
*/
@SerializedName("EnvironmentId")
@Expose
private String EnvironmentId;
/**
* 实例数量
*/
@SerializedName("Replicas")
@Expose
private Long Replicas;
/**
* 来源渠道
*/
@SerializedName("SourceChannel")
@Expose
private Long SourceChannel;
/**
* Get 应用id
* @return ApplicationId 应用id
*/
public String getApplicationId() {
return this.ApplicationId;
}
/**
* Set 应用id
* @param ApplicationId 应用id
*/
public void setApplicationId(String ApplicationId) {
this.ApplicationId = ApplicationId;
}
/**
* Get 环境ID
* @return EnvironmentId 环境ID
*/
public String getEnvironmentId() {
return this.EnvironmentId;
}
/**
* Set 环境ID
* @param EnvironmentId 环境ID
*/
public void setEnvironmentId(String EnvironmentId) {
this.EnvironmentId = EnvironmentId;
}
/**
* Get 实例数量
* @return Replicas 实例数量
*/
public Long getReplicas() {
return this.Replicas;
}
/**
* Set 实例数量
* @param Replicas 实例数量
*/
public void setReplicas(Long Replicas) {
this.Replicas = Replicas;
}
/**
* Get 来源渠道
* @return SourceChannel 来源渠道
*/
public Long getSourceChannel() {
return this.SourceChannel;
}
/**
* Set 来源渠道
* @param SourceChannel 来源渠道
*/
public void setSourceChannel(Long SourceChannel) {
this.SourceChannel = SourceChannel;
}
public ModifyApplicationReplicasRequest() {
}
/**
* 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 ModifyApplicationReplicasRequest(ModifyApplicationReplicasRequest source) {
if (source.ApplicationId != null) {
this.ApplicationId = new String(source.ApplicationId);
}
if (source.EnvironmentId != null) {
this.EnvironmentId = new String(source.EnvironmentId);
}
if (source.Replicas != null) {
this.Replicas = new Long(source.Replicas);
}
if (source.SourceChannel != null) {
this.SourceChannel = new Long(source.SourceChannel);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "ApplicationId", this.ApplicationId);
this.setParamSimple(map, prefix + "EnvironmentId", this.EnvironmentId);
this.setParamSimple(map, prefix + "Replicas", this.Replicas);
this.setParamSimple(map, prefix + "SourceChannel", this.SourceChannel);
}
}