com.tencentcloudapi.batch.v20170312.models.CreateComputeEnvRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-batch Show documentation
Show all versions of tencentcloud-sdk-java-batch 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.batch.v20170312.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class CreateComputeEnvRequest extends AbstractModel{
/**
* 计算环境信息
*/
@SerializedName("ComputeEnv")
@Expose
private NamedComputeEnv ComputeEnv;
/**
* 位置信息
*/
@SerializedName("Placement")
@Expose
private Placement Placement;
/**
* 用于保证请求幂等性的字符串。该字符串由用户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。
*/
@SerializedName("ClientToken")
@Expose
private String ClientToken;
/**
* Get 计算环境信息
* @return ComputeEnv 计算环境信息
*/
public NamedComputeEnv getComputeEnv() {
return this.ComputeEnv;
}
/**
* Set 计算环境信息
* @param ComputeEnv 计算环境信息
*/
public void setComputeEnv(NamedComputeEnv ComputeEnv) {
this.ComputeEnv = ComputeEnv;
}
/**
* Get 位置信息
* @return Placement 位置信息
*/
public Placement getPlacement() {
return this.Placement;
}
/**
* Set 位置信息
* @param Placement 位置信息
*/
public void setPlacement(Placement Placement) {
this.Placement = Placement;
}
/**
* Get 用于保证请求幂等性的字符串。该字符串由用户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。
* @return ClientToken 用于保证请求幂等性的字符串。该字符串由用户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。
*/
public String getClientToken() {
return this.ClientToken;
}
/**
* Set 用于保证请求幂等性的字符串。该字符串由用户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。
* @param ClientToken 用于保证请求幂等性的字符串。该字符串由用户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。
*/
public void setClientToken(String ClientToken) {
this.ClientToken = ClientToken;
}
public CreateComputeEnvRequest() {
}
/**
* 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 CreateComputeEnvRequest(CreateComputeEnvRequest source) {
if (source.ComputeEnv != null) {
this.ComputeEnv = new NamedComputeEnv(source.ComputeEnv);
}
if (source.Placement != null) {
this.Placement = new Placement(source.Placement);
}
if (source.ClientToken != null) {
this.ClientToken = new String(source.ClientToken);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamObj(map, prefix + "ComputeEnv.", this.ComputeEnv);
this.setParamObj(map, prefix + "Placement.", this.Placement);
this.setParamSimple(map, prefix + "ClientToken", this.ClientToken);
}
}