
com.tencentcloudapi.gse.v20191112.models.CopyFleetRequest 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.gse.v20191112.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class CopyFleetRequest extends AbstractModel{
/**
* 服务器舰队 Id
*/
@SerializedName("FleetId")
@Expose
private String FleetId;
/**
* 复制数量,最小值1,最大值为剩余配额,可以根据[获取用户配额](https://cloud.tencent.com/document/product/1165/48732)接口获取。
*/
@SerializedName("CopyNumber")
@Expose
private Long CopyNumber;
/**
* 生成包 Id
*/
@SerializedName("AssetId")
@Expose
private String AssetId;
/**
* 描述,最小长度0,最大长度100
*/
@SerializedName("Description")
@Expose
private String Description;
/**
* 网络配置
*/
@SerializedName("InboundPermissions")
@Expose
private InboundPermission [] InboundPermissions;
/**
* 服务器类型,参数根据[获取服务器实例类型列表](https://cloud.tencent.com/document/product/1165/48732)接口获取。
*/
@SerializedName("InstanceType")
@Expose
private String InstanceType;
/**
* 服务器舰队类型,目前只支持ON_DEMAND类型
*/
@SerializedName("FleetType")
@Expose
private String FleetType;
/**
* 服务器舰队名称,最小长度1,最大长度50
*/
@SerializedName("Name")
@Expose
private String Name;
/**
* 保护策略:不保护NoProtection、完全保护FullProtection、时限保护TimeLimitProtection
*/
@SerializedName("NewGameServerSessionProtectionPolicy")
@Expose
private String NewGameServerSessionProtectionPolicy;
/**
* 资源创建限制策略
*/
@SerializedName("ResourceCreationLimitPolicy")
@Expose
private ResourceCreationLimitPolicy ResourceCreationLimitPolicy;
/**
* 进程配置
*/
@SerializedName("RuntimeConfiguration")
@Expose
private RuntimeConfiguration RuntimeConfiguration;
/**
* 时限保护超时时间,默认60分钟,最小值5,最大值1440;当NewGameSessionProtectionPolicy为TimeLimitProtection时参数有效
*/
@SerializedName("GameServerSessionProtectionTimeLimit")
@Expose
private Long GameServerSessionProtectionTimeLimit;
/**
* 是否选择扩缩容:SCALING_SELECTED 或者 SCALING_UNSELECTED;默认是 SCALING_UNSELECTED
*/
@SerializedName("SelectedScalingType")
@Expose
private String SelectedScalingType;
/**
* 是否选择云联网:CCN_SELECTED_BEFORE_CREATE(创建前关联), CCN_SELECTED_AFTER_CREATE(创建后关联)或者 CCN_UNSELECTED(不关联);默认是 CCN_UNSELECTED
*/
@SerializedName("SelectedCcnType")
@Expose
private String SelectedCcnType;
/**
* 标签列表,最大长度50组
*/
@SerializedName("Tags")
@Expose
private Tag [] Tags;
/**
* 系统盘,储存类型为 SSD 云硬盘(CLOUD_SSD)时,100-500GB;储存类型为高性能云硬盘(CLOUD_PREMIUM)时,50-500GB;容量以1为单位
*/
@SerializedName("SystemDiskInfo")
@Expose
private DiskInfo SystemDiskInfo;
/**
* 数据盘,储存类型为 SSD 云硬盘(CLOUD_SSD)时,100-32000GB;储存类型为高性能云硬盘(CLOUD_PREMIUM)时,10-32000GB;容量以10为单位
*/
@SerializedName("DataDiskInfo")
@Expose
private DiskInfo [] DataDiskInfo;
/**
* 是否选择复制定时器策略:TIMER_SELECTED 或者 TIMER_UNSELECTED;默认是 TIMER_UNSELECTED
*/
@SerializedName("SelectedTimerType")
@Expose
private String SelectedTimerType;
/**
* 云联网信息,包含对应的账号信息及所属id
*/
@SerializedName("CcnInfos")
@Expose
private CcnInfo [] CcnInfos;
/**
* fleet公网出带宽最大值,默认100Mbps,范围1-200Mbps
*/
@SerializedName("InternetMaxBandwidthOut")
@Expose
private Long InternetMaxBandwidthOut;
/**
* Get 服务器舰队 Id
* @return FleetId 服务器舰队 Id
*/
public String getFleetId() {
return this.FleetId;
}
/**
* Set 服务器舰队 Id
* @param FleetId 服务器舰队 Id
*/
public void setFleetId(String FleetId) {
this.FleetId = FleetId;
}
/**
* Get 复制数量,最小值1,最大值为剩余配额,可以根据[获取用户配额](https://cloud.tencent.com/document/product/1165/48732)接口获取。
* @return CopyNumber 复制数量,最小值1,最大值为剩余配额,可以根据[获取用户配额](https://cloud.tencent.com/document/product/1165/48732)接口获取。
*/
public Long getCopyNumber() {
return this.CopyNumber;
}
/**
* Set 复制数量,最小值1,最大值为剩余配额,可以根据[获取用户配额](https://cloud.tencent.com/document/product/1165/48732)接口获取。
* @param CopyNumber 复制数量,最小值1,最大值为剩余配额,可以根据[获取用户配额](https://cloud.tencent.com/document/product/1165/48732)接口获取。
*/
public void setCopyNumber(Long CopyNumber) {
this.CopyNumber = CopyNumber;
}
/**
* Get 生成包 Id
* @return AssetId 生成包 Id
*/
public String getAssetId() {
return this.AssetId;
}
/**
* Set 生成包 Id
* @param AssetId 生成包 Id
*/
public void setAssetId(String AssetId) {
this.AssetId = AssetId;
}
/**
* Get 描述,最小长度0,最大长度100
* @return Description 描述,最小长度0,最大长度100
*/
public String getDescription() {
return this.Description;
}
/**
* Set 描述,最小长度0,最大长度100
* @param Description 描述,最小长度0,最大长度100
*/
public void setDescription(String Description) {
this.Description = Description;
}
/**
* Get 网络配置
* @return InboundPermissions 网络配置
*/
public InboundPermission [] getInboundPermissions() {
return this.InboundPermissions;
}
/**
* Set 网络配置
* @param InboundPermissions 网络配置
*/
public void setInboundPermissions(InboundPermission [] InboundPermissions) {
this.InboundPermissions = InboundPermissions;
}
/**
* Get 服务器类型,参数根据[获取服务器实例类型列表](https://cloud.tencent.com/document/product/1165/48732)接口获取。
* @return InstanceType 服务器类型,参数根据[获取服务器实例类型列表](https://cloud.tencent.com/document/product/1165/48732)接口获取。
*/
public String getInstanceType() {
return this.InstanceType;
}
/**
* Set 服务器类型,参数根据[获取服务器实例类型列表](https://cloud.tencent.com/document/product/1165/48732)接口获取。
* @param InstanceType 服务器类型,参数根据[获取服务器实例类型列表](https://cloud.tencent.com/document/product/1165/48732)接口获取。
*/
public void setInstanceType(String InstanceType) {
this.InstanceType = InstanceType;
}
/**
* Get 服务器舰队类型,目前只支持ON_DEMAND类型
* @return FleetType 服务器舰队类型,目前只支持ON_DEMAND类型
*/
public String getFleetType() {
return this.FleetType;
}
/**
* Set 服务器舰队类型,目前只支持ON_DEMAND类型
* @param FleetType 服务器舰队类型,目前只支持ON_DEMAND类型
*/
public void setFleetType(String FleetType) {
this.FleetType = FleetType;
}
/**
* Get 服务器舰队名称,最小长度1,最大长度50
* @return Name 服务器舰队名称,最小长度1,最大长度50
*/
public String getName() {
return this.Name;
}
/**
* Set 服务器舰队名称,最小长度1,最大长度50
* @param Name 服务器舰队名称,最小长度1,最大长度50
*/
public void setName(String Name) {
this.Name = Name;
}
/**
* Get 保护策略:不保护NoProtection、完全保护FullProtection、时限保护TimeLimitProtection
* @return NewGameServerSessionProtectionPolicy 保护策略:不保护NoProtection、完全保护FullProtection、时限保护TimeLimitProtection
*/
public String getNewGameServerSessionProtectionPolicy() {
return this.NewGameServerSessionProtectionPolicy;
}
/**
* Set 保护策略:不保护NoProtection、完全保护FullProtection、时限保护TimeLimitProtection
* @param NewGameServerSessionProtectionPolicy 保护策略:不保护NoProtection、完全保护FullProtection、时限保护TimeLimitProtection
*/
public void setNewGameServerSessionProtectionPolicy(String NewGameServerSessionProtectionPolicy) {
this.NewGameServerSessionProtectionPolicy = NewGameServerSessionProtectionPolicy;
}
/**
* Get 资源创建限制策略
* @return ResourceCreationLimitPolicy 资源创建限制策略
*/
public ResourceCreationLimitPolicy getResourceCreationLimitPolicy() {
return this.ResourceCreationLimitPolicy;
}
/**
* Set 资源创建限制策略
* @param ResourceCreationLimitPolicy 资源创建限制策略
*/
public void setResourceCreationLimitPolicy(ResourceCreationLimitPolicy ResourceCreationLimitPolicy) {
this.ResourceCreationLimitPolicy = ResourceCreationLimitPolicy;
}
/**
* Get 进程配置
* @return RuntimeConfiguration 进程配置
*/
public RuntimeConfiguration getRuntimeConfiguration() {
return this.RuntimeConfiguration;
}
/**
* Set 进程配置
* @param RuntimeConfiguration 进程配置
*/
public void setRuntimeConfiguration(RuntimeConfiguration RuntimeConfiguration) {
this.RuntimeConfiguration = RuntimeConfiguration;
}
/**
* Get 时限保护超时时间,默认60分钟,最小值5,最大值1440;当NewGameSessionProtectionPolicy为TimeLimitProtection时参数有效
* @return GameServerSessionProtectionTimeLimit 时限保护超时时间,默认60分钟,最小值5,最大值1440;当NewGameSessionProtectionPolicy为TimeLimitProtection时参数有效
*/
public Long getGameServerSessionProtectionTimeLimit() {
return this.GameServerSessionProtectionTimeLimit;
}
/**
* Set 时限保护超时时间,默认60分钟,最小值5,最大值1440;当NewGameSessionProtectionPolicy为TimeLimitProtection时参数有效
* @param GameServerSessionProtectionTimeLimit 时限保护超时时间,默认60分钟,最小值5,最大值1440;当NewGameSessionProtectionPolicy为TimeLimitProtection时参数有效
*/
public void setGameServerSessionProtectionTimeLimit(Long GameServerSessionProtectionTimeLimit) {
this.GameServerSessionProtectionTimeLimit = GameServerSessionProtectionTimeLimit;
}
/**
* Get 是否选择扩缩容:SCALING_SELECTED 或者 SCALING_UNSELECTED;默认是 SCALING_UNSELECTED
* @return SelectedScalingType 是否选择扩缩容:SCALING_SELECTED 或者 SCALING_UNSELECTED;默认是 SCALING_UNSELECTED
*/
public String getSelectedScalingType() {
return this.SelectedScalingType;
}
/**
* Set 是否选择扩缩容:SCALING_SELECTED 或者 SCALING_UNSELECTED;默认是 SCALING_UNSELECTED
* @param SelectedScalingType 是否选择扩缩容:SCALING_SELECTED 或者 SCALING_UNSELECTED;默认是 SCALING_UNSELECTED
*/
public void setSelectedScalingType(String SelectedScalingType) {
this.SelectedScalingType = SelectedScalingType;
}
/**
* Get 是否选择云联网:CCN_SELECTED_BEFORE_CREATE(创建前关联), CCN_SELECTED_AFTER_CREATE(创建后关联)或者 CCN_UNSELECTED(不关联);默认是 CCN_UNSELECTED
* @return SelectedCcnType 是否选择云联网:CCN_SELECTED_BEFORE_CREATE(创建前关联), CCN_SELECTED_AFTER_CREATE(创建后关联)或者 CCN_UNSELECTED(不关联);默认是 CCN_UNSELECTED
*/
public String getSelectedCcnType() {
return this.SelectedCcnType;
}
/**
* Set 是否选择云联网:CCN_SELECTED_BEFORE_CREATE(创建前关联), CCN_SELECTED_AFTER_CREATE(创建后关联)或者 CCN_UNSELECTED(不关联);默认是 CCN_UNSELECTED
* @param SelectedCcnType 是否选择云联网:CCN_SELECTED_BEFORE_CREATE(创建前关联), CCN_SELECTED_AFTER_CREATE(创建后关联)或者 CCN_UNSELECTED(不关联);默认是 CCN_UNSELECTED
*/
public void setSelectedCcnType(String SelectedCcnType) {
this.SelectedCcnType = SelectedCcnType;
}
/**
* Get 标签列表,最大长度50组
* @return Tags 标签列表,最大长度50组
*/
public Tag [] getTags() {
return this.Tags;
}
/**
* Set 标签列表,最大长度50组
* @param Tags 标签列表,最大长度50组
*/
public void setTags(Tag [] Tags) {
this.Tags = Tags;
}
/**
* Get 系统盘,储存类型为 SSD 云硬盘(CLOUD_SSD)时,100-500GB;储存类型为高性能云硬盘(CLOUD_PREMIUM)时,50-500GB;容量以1为单位
* @return SystemDiskInfo 系统盘,储存类型为 SSD 云硬盘(CLOUD_SSD)时,100-500GB;储存类型为高性能云硬盘(CLOUD_PREMIUM)时,50-500GB;容量以1为单位
*/
public DiskInfo getSystemDiskInfo() {
return this.SystemDiskInfo;
}
/**
* Set 系统盘,储存类型为 SSD 云硬盘(CLOUD_SSD)时,100-500GB;储存类型为高性能云硬盘(CLOUD_PREMIUM)时,50-500GB;容量以1为单位
* @param SystemDiskInfo 系统盘,储存类型为 SSD 云硬盘(CLOUD_SSD)时,100-500GB;储存类型为高性能云硬盘(CLOUD_PREMIUM)时,50-500GB;容量以1为单位
*/
public void setSystemDiskInfo(DiskInfo SystemDiskInfo) {
this.SystemDiskInfo = SystemDiskInfo;
}
/**
* Get 数据盘,储存类型为 SSD 云硬盘(CLOUD_SSD)时,100-32000GB;储存类型为高性能云硬盘(CLOUD_PREMIUM)时,10-32000GB;容量以10为单位
* @return DataDiskInfo 数据盘,储存类型为 SSD 云硬盘(CLOUD_SSD)时,100-32000GB;储存类型为高性能云硬盘(CLOUD_PREMIUM)时,10-32000GB;容量以10为单位
*/
public DiskInfo [] getDataDiskInfo() {
return this.DataDiskInfo;
}
/**
* Set 数据盘,储存类型为 SSD 云硬盘(CLOUD_SSD)时,100-32000GB;储存类型为高性能云硬盘(CLOUD_PREMIUM)时,10-32000GB;容量以10为单位
* @param DataDiskInfo 数据盘,储存类型为 SSD 云硬盘(CLOUD_SSD)时,100-32000GB;储存类型为高性能云硬盘(CLOUD_PREMIUM)时,10-32000GB;容量以10为单位
*/
public void setDataDiskInfo(DiskInfo [] DataDiskInfo) {
this.DataDiskInfo = DataDiskInfo;
}
/**
* Get 是否选择复制定时器策略:TIMER_SELECTED 或者 TIMER_UNSELECTED;默认是 TIMER_UNSELECTED
* @return SelectedTimerType 是否选择复制定时器策略:TIMER_SELECTED 或者 TIMER_UNSELECTED;默认是 TIMER_UNSELECTED
*/
public String getSelectedTimerType() {
return this.SelectedTimerType;
}
/**
* Set 是否选择复制定时器策略:TIMER_SELECTED 或者 TIMER_UNSELECTED;默认是 TIMER_UNSELECTED
* @param SelectedTimerType 是否选择复制定时器策略:TIMER_SELECTED 或者 TIMER_UNSELECTED;默认是 TIMER_UNSELECTED
*/
public void setSelectedTimerType(String SelectedTimerType) {
this.SelectedTimerType = SelectedTimerType;
}
/**
* Get 云联网信息,包含对应的账号信息及所属id
* @return CcnInfos 云联网信息,包含对应的账号信息及所属id
*/
public CcnInfo [] getCcnInfos() {
return this.CcnInfos;
}
/**
* Set 云联网信息,包含对应的账号信息及所属id
* @param CcnInfos 云联网信息,包含对应的账号信息及所属id
*/
public void setCcnInfos(CcnInfo [] CcnInfos) {
this.CcnInfos = CcnInfos;
}
/**
* Get fleet公网出带宽最大值,默认100Mbps,范围1-200Mbps
* @return InternetMaxBandwidthOut fleet公网出带宽最大值,默认100Mbps,范围1-200Mbps
*/
public Long getInternetMaxBandwidthOut() {
return this.InternetMaxBandwidthOut;
}
/**
* Set fleet公网出带宽最大值,默认100Mbps,范围1-200Mbps
* @param InternetMaxBandwidthOut fleet公网出带宽最大值,默认100Mbps,范围1-200Mbps
*/
public void setInternetMaxBandwidthOut(Long InternetMaxBandwidthOut) {
this.InternetMaxBandwidthOut = InternetMaxBandwidthOut;
}
public CopyFleetRequest() {
}
/**
* 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 CopyFleetRequest(CopyFleetRequest source) {
if (source.FleetId != null) {
this.FleetId = new String(source.FleetId);
}
if (source.CopyNumber != null) {
this.CopyNumber = new Long(source.CopyNumber);
}
if (source.AssetId != null) {
this.AssetId = new String(source.AssetId);
}
if (source.Description != null) {
this.Description = new String(source.Description);
}
if (source.InboundPermissions != null) {
this.InboundPermissions = new InboundPermission[source.InboundPermissions.length];
for (int i = 0; i < source.InboundPermissions.length; i++) {
this.InboundPermissions[i] = new InboundPermission(source.InboundPermissions[i]);
}
}
if (source.InstanceType != null) {
this.InstanceType = new String(source.InstanceType);
}
if (source.FleetType != null) {
this.FleetType = new String(source.FleetType);
}
if (source.Name != null) {
this.Name = new String(source.Name);
}
if (source.NewGameServerSessionProtectionPolicy != null) {
this.NewGameServerSessionProtectionPolicy = new String(source.NewGameServerSessionProtectionPolicy);
}
if (source.ResourceCreationLimitPolicy != null) {
this.ResourceCreationLimitPolicy = new ResourceCreationLimitPolicy(source.ResourceCreationLimitPolicy);
}
if (source.RuntimeConfiguration != null) {
this.RuntimeConfiguration = new RuntimeConfiguration(source.RuntimeConfiguration);
}
if (source.GameServerSessionProtectionTimeLimit != null) {
this.GameServerSessionProtectionTimeLimit = new Long(source.GameServerSessionProtectionTimeLimit);
}
if (source.SelectedScalingType != null) {
this.SelectedScalingType = new String(source.SelectedScalingType);
}
if (source.SelectedCcnType != null) {
this.SelectedCcnType = new String(source.SelectedCcnType);
}
if (source.Tags != null) {
this.Tags = new Tag[source.Tags.length];
for (int i = 0; i < source.Tags.length; i++) {
this.Tags[i] = new Tag(source.Tags[i]);
}
}
if (source.SystemDiskInfo != null) {
this.SystemDiskInfo = new DiskInfo(source.SystemDiskInfo);
}
if (source.DataDiskInfo != null) {
this.DataDiskInfo = new DiskInfo[source.DataDiskInfo.length];
for (int i = 0; i < source.DataDiskInfo.length; i++) {
this.DataDiskInfo[i] = new DiskInfo(source.DataDiskInfo[i]);
}
}
if (source.SelectedTimerType != null) {
this.SelectedTimerType = new String(source.SelectedTimerType);
}
if (source.CcnInfos != null) {
this.CcnInfos = new CcnInfo[source.CcnInfos.length];
for (int i = 0; i < source.CcnInfos.length; i++) {
this.CcnInfos[i] = new CcnInfo(source.CcnInfos[i]);
}
}
if (source.InternetMaxBandwidthOut != null) {
this.InternetMaxBandwidthOut = new Long(source.InternetMaxBandwidthOut);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "FleetId", this.FleetId);
this.setParamSimple(map, prefix + "CopyNumber", this.CopyNumber);
this.setParamSimple(map, prefix + "AssetId", this.AssetId);
this.setParamSimple(map, prefix + "Description", this.Description);
this.setParamArrayObj(map, prefix + "InboundPermissions.", this.InboundPermissions);
this.setParamSimple(map, prefix + "InstanceType", this.InstanceType);
this.setParamSimple(map, prefix + "FleetType", this.FleetType);
this.setParamSimple(map, prefix + "Name", this.Name);
this.setParamSimple(map, prefix + "NewGameServerSessionProtectionPolicy", this.NewGameServerSessionProtectionPolicy);
this.setParamObj(map, prefix + "ResourceCreationLimitPolicy.", this.ResourceCreationLimitPolicy);
this.setParamObj(map, prefix + "RuntimeConfiguration.", this.RuntimeConfiguration);
this.setParamSimple(map, prefix + "GameServerSessionProtectionTimeLimit", this.GameServerSessionProtectionTimeLimit);
this.setParamSimple(map, prefix + "SelectedScalingType", this.SelectedScalingType);
this.setParamSimple(map, prefix + "SelectedCcnType", this.SelectedCcnType);
this.setParamArrayObj(map, prefix + "Tags.", this.Tags);
this.setParamObj(map, prefix + "SystemDiskInfo.", this.SystemDiskInfo);
this.setParamArrayObj(map, prefix + "DataDiskInfo.", this.DataDiskInfo);
this.setParamSimple(map, prefix + "SelectedTimerType", this.SelectedTimerType);
this.setParamArrayObj(map, prefix + "CcnInfos.", this.CcnInfos);
this.setParamSimple(map, prefix + "InternetMaxBandwidthOut", this.InternetMaxBandwidthOut);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy