
com.tencentcloudapi.yunjing.v20180228.models.OpenProVersionRequest Maven / Gradle / Ivy
/*
* 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.yunjing.v20180228.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class OpenProVersionRequest extends AbstractModel{
/**
* 云主机类型。
CVM:表示虚拟主机
BM: 表示黑石物理机
*/
@SerializedName("MachineType")
@Expose
private String MachineType;
/**
* 机器所属地域。
如:ap-guangzhou,ap-shanghai
*/
@SerializedName("MachineRegion")
@Expose
private String MachineRegion;
/**
* 主机唯一标识Uuid数组。
黑石的InstanceId,CVM的Uuid
*/
@SerializedName("Quuids")
@Expose
private String [] Quuids;
/**
* 活动ID。
*/
@SerializedName("ActivityId")
@Expose
private Long ActivityId;
/**
* Get 云主机类型。
CVM:表示虚拟主机
BM: 表示黑石物理机
* @return MachineType 云主机类型。
CVM:表示虚拟主机
BM: 表示黑石物理机
*/
public String getMachineType() {
return this.MachineType;
}
/**
* Set 云主机类型。
CVM:表示虚拟主机
BM: 表示黑石物理机
* @param MachineType 云主机类型。
CVM:表示虚拟主机
BM: 表示黑石物理机
*/
public void setMachineType(String MachineType) {
this.MachineType = MachineType;
}
/**
* Get 机器所属地域。
如:ap-guangzhou,ap-shanghai
* @return MachineRegion 机器所属地域。
如:ap-guangzhou,ap-shanghai
*/
public String getMachineRegion() {
return this.MachineRegion;
}
/**
* Set 机器所属地域。
如:ap-guangzhou,ap-shanghai
* @param MachineRegion 机器所属地域。
如:ap-guangzhou,ap-shanghai
*/
public void setMachineRegion(String MachineRegion) {
this.MachineRegion = MachineRegion;
}
/**
* Get 主机唯一标识Uuid数组。
黑石的InstanceId,CVM的Uuid
* @return Quuids 主机唯一标识Uuid数组。
黑石的InstanceId,CVM的Uuid
*/
public String [] getQuuids() {
return this.Quuids;
}
/**
* Set 主机唯一标识Uuid数组。
黑石的InstanceId,CVM的Uuid
* @param Quuids 主机唯一标识Uuid数组。
黑石的InstanceId,CVM的Uuid
*/
public void setQuuids(String [] Quuids) {
this.Quuids = Quuids;
}
/**
* Get 活动ID。
* @return ActivityId 活动ID。
*/
public Long getActivityId() {
return this.ActivityId;
}
/**
* Set 活动ID。
* @param ActivityId 活动ID。
*/
public void setActivityId(Long ActivityId) {
this.ActivityId = ActivityId;
}
public OpenProVersionRequest() {
}
/**
* 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 OpenProVersionRequest(OpenProVersionRequest source) {
if (source.MachineType != null) {
this.MachineType = new String(source.MachineType);
}
if (source.MachineRegion != null) {
this.MachineRegion = new String(source.MachineRegion);
}
if (source.Quuids != null) {
this.Quuids = new String[source.Quuids.length];
for (int i = 0; i < source.Quuids.length; i++) {
this.Quuids[i] = new String(source.Quuids[i]);
}
}
if (source.ActivityId != null) {
this.ActivityId = new Long(source.ActivityId);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "MachineType", this.MachineType);
this.setParamSimple(map, prefix + "MachineRegion", this.MachineRegion);
this.setParamArraySimple(map, prefix + "Quuids.", this.Quuids);
this.setParamSimple(map, prefix + "ActivityId", this.ActivityId);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy