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{
/**
* Server fleet ID
*/
@SerializedName("FleetId")
@Expose
private String FleetId;
/**
* Replica number. It should a value between 1 to the number of the remaining quota. It can be obtained through [Obtaining User Quota](https://intl.cloud.tencent.com/document/product/1165/48732?from_cn_redirect=1).
*/
@SerializedName("CopyNumber")
@Expose
private Long CopyNumber;
/**
* Asset package ID
*/
@SerializedName("AssetId")
@Expose
private String AssetId;
/**
* Description. The length is 0-100 characters.
*/
@SerializedName("Description")
@Expose
private String Description;
/**
* Network configuration
*/
@SerializedName("InboundPermissions")
@Expose
private InboundPermission [] InboundPermissions;
/**
* Server type. It can be obtained through [Obtaining Server Instance Type List](https://intl.cloud.tencent.com/document/product/1165/48732?from_cn_redirect=1).
*/
@SerializedName("InstanceType")
@Expose
private String InstanceType;
/**
* Server fleet type, which only supports “ON_DEMAND” type now.
*/
@SerializedName("FleetType")
@Expose
private String FleetType;
/**
* Server fleet name. The length is 1-50 characters.
*/
@SerializedName("Name")
@Expose
private String Name;
/**
* Protection policy. Valid values: NoProtection·(no protection), FullProtection (full protection), TimeLimitProtection (time-limited protection)
*/
@SerializedName("NewGameServerSessionProtectionPolicy")
@Expose
private String NewGameServerSessionProtectionPolicy;
/**
* Limit policy of resource creation
*/
@SerializedName("ResourceCreationLimitPolicy")
@Expose
private ResourceCreationLimitPolicy ResourceCreationLimitPolicy;
/**
* Progress configuration
*/
@SerializedName("RuntimeConfiguration")
@Expose
private RuntimeConfiguration RuntimeConfiguration;
/**
* Timeout period of time-limited protection. Value range: 5-1440 minutes. Default value: 60 minutes. This parameter is valid only when NewGameSessionProtectionPolicy is set as TimeLimitProtection.
*/
@SerializedName("GameServerSessionProtectionTimeLimit")
@Expose
private Long GameServerSessionProtectionTimeLimit;
/**
* Whether to select scaling. Valid values: SCALING_SELECTED, SCALING_UNSELECTED. Default value: SCALING_UNSELECTED.
*/
@SerializedName("SelectedScalingType")
@Expose
private String SelectedScalingType;
/**
* Whether to associate the fleet with a CCN instance: CCN_SELECTED_BEFORE_CREATE (associate before creation), CCN_SELECTED_AFTER_CREATE (associated after creation), or CCN_UNSELECTED (do not associate); CCN_UNSELECTED by default
*/
@SerializedName("SelectedCcnType")
@Expose
private String SelectedCcnType;
/**
* Tag list. Up to 50 tags.
*/
@SerializedName("Tags")
@Expose
private Tag [] Tags;
/**
* System disk. It can be a SSD (CLOUD_SSD) with 100-500 GB capacity or a Premium Cloud Storage disk (CLOUD_PREMIUM) with 50-500 GB capacity. The increment is 1.
*/
@SerializedName("SystemDiskInfo")
@Expose
private DiskInfo SystemDiskInfo;
/**
* Data disk. It can be SSD disks (CLOUD_SSD) with 100-32000 GB capacity or Premium Cloud Storage disks (CLOUD_PREMIUM) with 10-32000 GB capacity. The increment is 10.
*/
@SerializedName("DataDiskInfo")
@Expose
private DiskInfo [] DataDiskInfo;
/**
* Whether to select to replicate the timer policy: TIMER_SELECTED or TIMER_UNSELECTED. The default value is TIMER_UNSELECTED.
*/
@SerializedName("SelectedTimerType")
@Expose
private String SelectedTimerType;
/**
* Information of the CCN instance, including the owner account and the instance ID.
*/
@SerializedName("CcnInfos")
@Expose
private CcnInfo [] CcnInfos;
/**
* Maximum outbound public network bandwidth of the server fleet. Value range: 1 - 200 Mbps. Default value: 100 Mbps.
*/
@SerializedName("InternetMaxBandwidthOut")
@Expose
private Long InternetMaxBandwidthOut;
/**
* Get Server fleet ID
* @return FleetId Server fleet ID
*/
public String getFleetId() {
return this.FleetId;
}
/**
* Set Server fleet ID
* @param FleetId Server fleet ID
*/
public void setFleetId(String FleetId) {
this.FleetId = FleetId;
}
/**
* Get Replica number. It should a value between 1 to the number of the remaining quota. It can be obtained through [Obtaining User Quota](https://intl.cloud.tencent.com/document/product/1165/48732?from_cn_redirect=1).
* @return CopyNumber Replica number. It should a value between 1 to the number of the remaining quota. It can be obtained through [Obtaining User Quota](https://intl.cloud.tencent.com/document/product/1165/48732?from_cn_redirect=1).
*/
public Long getCopyNumber() {
return this.CopyNumber;
}
/**
* Set Replica number. It should a value between 1 to the number of the remaining quota. It can be obtained through [Obtaining User Quota](https://intl.cloud.tencent.com/document/product/1165/48732?from_cn_redirect=1).
* @param CopyNumber Replica number. It should a value between 1 to the number of the remaining quota. It can be obtained through [Obtaining User Quota](https://intl.cloud.tencent.com/document/product/1165/48732?from_cn_redirect=1).
*/
public void setCopyNumber(Long CopyNumber) {
this.CopyNumber = CopyNumber;
}
/**
* Get Asset package ID
* @return AssetId Asset package ID
*/
public String getAssetId() {
return this.AssetId;
}
/**
* Set Asset package ID
* @param AssetId Asset package ID
*/
public void setAssetId(String AssetId) {
this.AssetId = AssetId;
}
/**
* Get Description. The length is 0-100 characters.
* @return Description Description. The length is 0-100 characters.
*/
public String getDescription() {
return this.Description;
}
/**
* Set Description. The length is 0-100 characters.
* @param Description Description. The length is 0-100 characters.
*/
public void setDescription(String Description) {
this.Description = Description;
}
/**
* Get Network configuration
* @return InboundPermissions Network configuration
*/
public InboundPermission [] getInboundPermissions() {
return this.InboundPermissions;
}
/**
* Set Network configuration
* @param InboundPermissions Network configuration
*/
public void setInboundPermissions(InboundPermission [] InboundPermissions) {
this.InboundPermissions = InboundPermissions;
}
/**
* Get Server type. It can be obtained through [Obtaining Server Instance Type List](https://intl.cloud.tencent.com/document/product/1165/48732?from_cn_redirect=1).
* @return InstanceType Server type. It can be obtained through [Obtaining Server Instance Type List](https://intl.cloud.tencent.com/document/product/1165/48732?from_cn_redirect=1).
*/
public String getInstanceType() {
return this.InstanceType;
}
/**
* Set Server type. It can be obtained through [Obtaining Server Instance Type List](https://intl.cloud.tencent.com/document/product/1165/48732?from_cn_redirect=1).
* @param InstanceType Server type. It can be obtained through [Obtaining Server Instance Type List](https://intl.cloud.tencent.com/document/product/1165/48732?from_cn_redirect=1).
*/
public void setInstanceType(String InstanceType) {
this.InstanceType = InstanceType;
}
/**
* Get Server fleet type, which only supports “ON_DEMAND” type now.
* @return FleetType Server fleet type, which only supports “ON_DEMAND” type now.
*/
public String getFleetType() {
return this.FleetType;
}
/**
* Set Server fleet type, which only supports “ON_DEMAND” type now.
* @param FleetType Server fleet type, which only supports “ON_DEMAND” type now.
*/
public void setFleetType(String FleetType) {
this.FleetType = FleetType;
}
/**
* Get Server fleet name. The length is 1-50 characters.
* @return Name Server fleet name. The length is 1-50 characters.
*/
public String getName() {
return this.Name;
}
/**
* Set Server fleet name. The length is 1-50 characters.
* @param Name Server fleet name. The length is 1-50 characters.
*/
public void setName(String Name) {
this.Name = Name;
}
/**
* Get Protection policy. Valid values: NoProtection·(no protection), FullProtection (full protection), TimeLimitProtection (time-limited protection)
* @return NewGameServerSessionProtectionPolicy Protection policy. Valid values: NoProtection·(no protection), FullProtection (full protection), TimeLimitProtection (time-limited protection)
*/
public String getNewGameServerSessionProtectionPolicy() {
return this.NewGameServerSessionProtectionPolicy;
}
/**
* Set Protection policy. Valid values: NoProtection·(no protection), FullProtection (full protection), TimeLimitProtection (time-limited protection)
* @param NewGameServerSessionProtectionPolicy Protection policy. Valid values: NoProtection·(no protection), FullProtection (full protection), TimeLimitProtection (time-limited protection)
*/
public void setNewGameServerSessionProtectionPolicy(String NewGameServerSessionProtectionPolicy) {
this.NewGameServerSessionProtectionPolicy = NewGameServerSessionProtectionPolicy;
}
/**
* Get Limit policy of resource creation
* @return ResourceCreationLimitPolicy Limit policy of resource creation
*/
public ResourceCreationLimitPolicy getResourceCreationLimitPolicy() {
return this.ResourceCreationLimitPolicy;
}
/**
* Set Limit policy of resource creation
* @param ResourceCreationLimitPolicy Limit policy of resource creation
*/
public void setResourceCreationLimitPolicy(ResourceCreationLimitPolicy ResourceCreationLimitPolicy) {
this.ResourceCreationLimitPolicy = ResourceCreationLimitPolicy;
}
/**
* Get Progress configuration
* @return RuntimeConfiguration Progress configuration
*/
public RuntimeConfiguration getRuntimeConfiguration() {
return this.RuntimeConfiguration;
}
/**
* Set Progress configuration
* @param RuntimeConfiguration Progress configuration
*/
public void setRuntimeConfiguration(RuntimeConfiguration RuntimeConfiguration) {
this.RuntimeConfiguration = RuntimeConfiguration;
}
/**
* Get Timeout period of time-limited protection. Value range: 5-1440 minutes. Default value: 60 minutes. This parameter is valid only when NewGameSessionProtectionPolicy is set as TimeLimitProtection.
* @return GameServerSessionProtectionTimeLimit Timeout period of time-limited protection. Value range: 5-1440 minutes. Default value: 60 minutes. This parameter is valid only when NewGameSessionProtectionPolicy is set as TimeLimitProtection.
*/
public Long getGameServerSessionProtectionTimeLimit() {
return this.GameServerSessionProtectionTimeLimit;
}
/**
* Set Timeout period of time-limited protection. Value range: 5-1440 minutes. Default value: 60 minutes. This parameter is valid only when NewGameSessionProtectionPolicy is set as TimeLimitProtection.
* @param GameServerSessionProtectionTimeLimit Timeout period of time-limited protection. Value range: 5-1440 minutes. Default value: 60 minutes. This parameter is valid only when NewGameSessionProtectionPolicy is set as TimeLimitProtection.
*/
public void setGameServerSessionProtectionTimeLimit(Long GameServerSessionProtectionTimeLimit) {
this.GameServerSessionProtectionTimeLimit = GameServerSessionProtectionTimeLimit;
}
/**
* Get Whether to select scaling. Valid values: SCALING_SELECTED, SCALING_UNSELECTED. Default value: SCALING_UNSELECTED.
* @return SelectedScalingType Whether to select scaling. Valid values: SCALING_SELECTED, SCALING_UNSELECTED. Default value: SCALING_UNSELECTED.
*/
public String getSelectedScalingType() {
return this.SelectedScalingType;
}
/**
* Set Whether to select scaling. Valid values: SCALING_SELECTED, SCALING_UNSELECTED. Default value: SCALING_UNSELECTED.
* @param SelectedScalingType Whether to select scaling. Valid values: SCALING_SELECTED, SCALING_UNSELECTED. Default value: SCALING_UNSELECTED.
*/
public void setSelectedScalingType(String SelectedScalingType) {
this.SelectedScalingType = SelectedScalingType;
}
/**
* Get Whether to associate the fleet with a CCN instance: CCN_SELECTED_BEFORE_CREATE (associate before creation), CCN_SELECTED_AFTER_CREATE (associated after creation), or CCN_UNSELECTED (do not associate); CCN_UNSELECTED by default
* @return SelectedCcnType Whether to associate the fleet with a CCN instance: CCN_SELECTED_BEFORE_CREATE (associate before creation), CCN_SELECTED_AFTER_CREATE (associated after creation), or CCN_UNSELECTED (do not associate); CCN_UNSELECTED by default
*/
public String getSelectedCcnType() {
return this.SelectedCcnType;
}
/**
* Set Whether to associate the fleet with a CCN instance: CCN_SELECTED_BEFORE_CREATE (associate before creation), CCN_SELECTED_AFTER_CREATE (associated after creation), or CCN_UNSELECTED (do not associate); CCN_UNSELECTED by default
* @param SelectedCcnType Whether to associate the fleet with a CCN instance: CCN_SELECTED_BEFORE_CREATE (associate before creation), CCN_SELECTED_AFTER_CREATE (associated after creation), or CCN_UNSELECTED (do not associate); CCN_UNSELECTED by default
*/
public void setSelectedCcnType(String SelectedCcnType) {
this.SelectedCcnType = SelectedCcnType;
}
/**
* Get Tag list. Up to 50 tags.
* @return Tags Tag list. Up to 50 tags.
*/
public Tag [] getTags() {
return this.Tags;
}
/**
* Set Tag list. Up to 50 tags.
* @param Tags Tag list. Up to 50 tags.
*/
public void setTags(Tag [] Tags) {
this.Tags = Tags;
}
/**
* Get System disk. It can be a SSD (CLOUD_SSD) with 100-500 GB capacity or a Premium Cloud Storage disk (CLOUD_PREMIUM) with 50-500 GB capacity. The increment is 1.
* @return SystemDiskInfo System disk. It can be a SSD (CLOUD_SSD) with 100-500 GB capacity or a Premium Cloud Storage disk (CLOUD_PREMIUM) with 50-500 GB capacity. The increment is 1.
*/
public DiskInfo getSystemDiskInfo() {
return this.SystemDiskInfo;
}
/**
* Set System disk. It can be a SSD (CLOUD_SSD) with 100-500 GB capacity or a Premium Cloud Storage disk (CLOUD_PREMIUM) with 50-500 GB capacity. The increment is 1.
* @param SystemDiskInfo System disk. It can be a SSD (CLOUD_SSD) with 100-500 GB capacity or a Premium Cloud Storage disk (CLOUD_PREMIUM) with 50-500 GB capacity. The increment is 1.
*/
public void setSystemDiskInfo(DiskInfo SystemDiskInfo) {
this.SystemDiskInfo = SystemDiskInfo;
}
/**
* Get Data disk. It can be SSD disks (CLOUD_SSD) with 100-32000 GB capacity or Premium Cloud Storage disks (CLOUD_PREMIUM) with 10-32000 GB capacity. The increment is 10.
* @return DataDiskInfo Data disk. It can be SSD disks (CLOUD_SSD) with 100-32000 GB capacity or Premium Cloud Storage disks (CLOUD_PREMIUM) with 10-32000 GB capacity. The increment is 10.
*/
public DiskInfo [] getDataDiskInfo() {
return this.DataDiskInfo;
}
/**
* Set Data disk. It can be SSD disks (CLOUD_SSD) with 100-32000 GB capacity or Premium Cloud Storage disks (CLOUD_PREMIUM) with 10-32000 GB capacity. The increment is 10.
* @param DataDiskInfo Data disk. It can be SSD disks (CLOUD_SSD) with 100-32000 GB capacity or Premium Cloud Storage disks (CLOUD_PREMIUM) with 10-32000 GB capacity. The increment is 10.
*/
public void setDataDiskInfo(DiskInfo [] DataDiskInfo) {
this.DataDiskInfo = DataDiskInfo;
}
/**
* Get Whether to select to replicate the timer policy: TIMER_SELECTED or TIMER_UNSELECTED. The default value is TIMER_UNSELECTED.
* @return SelectedTimerType Whether to select to replicate the timer policy: TIMER_SELECTED or TIMER_UNSELECTED. The default value is TIMER_UNSELECTED.
*/
public String getSelectedTimerType() {
return this.SelectedTimerType;
}
/**
* Set Whether to select to replicate the timer policy: TIMER_SELECTED or TIMER_UNSELECTED. The default value is TIMER_UNSELECTED.
* @param SelectedTimerType Whether to select to replicate the timer policy: TIMER_SELECTED or TIMER_UNSELECTED. The default value is TIMER_UNSELECTED.
*/
public void setSelectedTimerType(String SelectedTimerType) {
this.SelectedTimerType = SelectedTimerType;
}
/**
* Get Information of the CCN instance, including the owner account and the instance ID.
* @return CcnInfos Information of the CCN instance, including the owner account and the instance ID.
*/
public CcnInfo [] getCcnInfos() {
return this.CcnInfos;
}
/**
* Set Information of the CCN instance, including the owner account and the instance ID.
* @param CcnInfos Information of the CCN instance, including the owner account and the instance ID.
*/
public void setCcnInfos(CcnInfo [] CcnInfos) {
this.CcnInfos = CcnInfos;
}
/**
* Get Maximum outbound public network bandwidth of the server fleet. Value range: 1 - 200 Mbps. Default value: 100 Mbps.
* @return InternetMaxBandwidthOut Maximum outbound public network bandwidth of the server fleet. Value range: 1 - 200 Mbps. Default value: 100 Mbps.
*/
public Long getInternetMaxBandwidthOut() {
return this.InternetMaxBandwidthOut;
}
/**
* Set Maximum outbound public network bandwidth of the server fleet. Value range: 1 - 200 Mbps. Default value: 100 Mbps.
* @param InternetMaxBandwidthOut Maximum outbound public network bandwidth of the server fleet. Value range: 1 - 200 Mbps. Default value: 100 Mbps.
*/
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