![JAR search and dependency download from the Maven repository](/logo.png)
com.tencentcloudapi.gse.v20191112.models.GameServerSession Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Tencent Cloud 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.gse.v20191112.models;
import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class GameServerSession extends AbstractModel {
/**
* Game server session creation time
*/
@SerializedName("CreationTime")
@Expose
private String CreationTime;
/**
* Creator ID. Up to 1024 ASCII characters are allowed.
Note: this field may return `null`, indicating that no valid value is obtained.
*/
@SerializedName("CreatorId")
@Expose
private String CreatorId;
/**
* The current number of players, which cannot be less than 0.
*/
@SerializedName("CurrentPlayerSessionCount")
@Expose
private Long CurrentPlayerSessionCount;
/**
* CVM DNS ID
Note: this field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("DnsName")
@Expose
private String DnsName;
/**
* Fleet ID
*/
@SerializedName("FleetId")
@Expose
private String FleetId;
/**
* Game attributes. Up to 16 groups of attributes are allowed.
Note: this field may return `null`, indicating that no valid value is obtained.
*/
@SerializedName("GameProperties")
@Expose
private GameProperty [] GameProperties;
/**
* The attribute details of game server session. Up to 4096 ASCII characters are allowed.
Note: this field may return `null`, indicating that no valid value is obtained.
*/
@SerializedName("GameServerSessionData")
@Expose
private String GameServerSessionData;
/**
* Game server session ID. It should contain 1 to 48 ASCII characters.
*/
@SerializedName("GameServerSessionId")
@Expose
private String GameServerSessionId;
/**
* CVM IP address
*/
@SerializedName("IpAddress")
@Expose
private String IpAddress;
/**
* Battle progress details. Up to 400,000 ASCII characters are allowed.
Note: this field may return `null`, indicating that no valid value is obtained.
*/
@SerializedName("MatchmakerData")
@Expose
private String MatchmakerData;
/**
* The maximum number of players, which cannot be less than 0.
*/
@SerializedName("MaximumPlayerSessionCount")
@Expose
private Long MaximumPlayerSessionCount;
/**
* The name of game server session. Up to 1024 ASCII characters are allowed.
Note: this field may return `null`, indicating that no valid value is obtained.
*/
@SerializedName("Name")
@Expose
private String Name;
/**
* Player session creation policy. Valid values: ACCEPT_ALL, DENY_ALL
Note: this field may return `null`, indicating that no valid value is obtained.
*/
@SerializedName("PlayerSessionCreationPolicy")
@Expose
private String PlayerSessionCreationPolicy;
/**
* Port number. It should be a value between 1 to 60000.
*/
@SerializedName("Port")
@Expose
private Long Port;
/**
* Game server session status. Valid values: ACTIVE, ACTIVATING, TERMINATED, TERMINATING, ERROR
*/
@SerializedName("Status")
@Expose
private String Status;
/**
* Additional information of game server session status
Note: this field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("StatusReason")
@Expose
private String StatusReason;
/**
* Termination time
Note: this field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("TerminationTime")
@Expose
private String TerminationTime;
/**
* Instance type. Up to 128 ASCII characters are allowed.
Note: this field may return `null`, indicating that no valid value is obtained.
*/
@SerializedName("InstanceType")
@Expose
private String InstanceType;
/**
* Current custom count
Note: this field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("CurrentCustomCount")
@Expose
private Long CurrentCustomCount;
/**
* Maximum custom count
Note: this field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("MaxCustomCount")
@Expose
private Long MaxCustomCount;
/**
* Weight
Note: this field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("Weight")
@Expose
private Long Weight;
/**
* Session availability status, i.e., whether it is blocked. Valid value: Enable, Disable
Note: this field may return `null`, indicating that no valid value is obtained.
*/
@SerializedName("AvailabilityStatus")
@Expose
private String AvailabilityStatus;
/**
* Get Game server session creation time
* @return CreationTime Game server session creation time
*/
public String getCreationTime() {
return this.CreationTime;
}
/**
* Set Game server session creation time
* @param CreationTime Game server session creation time
*/
public void setCreationTime(String CreationTime) {
this.CreationTime = CreationTime;
}
/**
* Get Creator ID. Up to 1024 ASCII characters are allowed.
Note: this field may return `null`, indicating that no valid value is obtained.
* @return CreatorId Creator ID. Up to 1024 ASCII characters are allowed.
Note: this field may return `null`, indicating that no valid value is obtained.
*/
public String getCreatorId() {
return this.CreatorId;
}
/**
* Set Creator ID. Up to 1024 ASCII characters are allowed.
Note: this field may return `null`, indicating that no valid value is obtained.
* @param CreatorId Creator ID. Up to 1024 ASCII characters are allowed.
Note: this field may return `null`, indicating that no valid value is obtained.
*/
public void setCreatorId(String CreatorId) {
this.CreatorId = CreatorId;
}
/**
* Get The current number of players, which cannot be less than 0.
* @return CurrentPlayerSessionCount The current number of players, which cannot be less than 0.
*/
public Long getCurrentPlayerSessionCount() {
return this.CurrentPlayerSessionCount;
}
/**
* Set The current number of players, which cannot be less than 0.
* @param CurrentPlayerSessionCount The current number of players, which cannot be less than 0.
*/
public void setCurrentPlayerSessionCount(Long CurrentPlayerSessionCount) {
this.CurrentPlayerSessionCount = CurrentPlayerSessionCount;
}
/**
* Get CVM DNS ID
Note: this field may return null, indicating that no valid values can be obtained.
* @return DnsName CVM DNS ID
Note: this field may return null, indicating that no valid values can be obtained.
*/
public String getDnsName() {
return this.DnsName;
}
/**
* Set CVM DNS ID
Note: this field may return null, indicating that no valid values can be obtained.
* @param DnsName CVM DNS ID
Note: this field may return null, indicating that no valid values can be obtained.
*/
public void setDnsName(String DnsName) {
this.DnsName = DnsName;
}
/**
* Get Fleet ID
* @return FleetId Fleet ID
*/
public String getFleetId() {
return this.FleetId;
}
/**
* Set Fleet ID
* @param FleetId Fleet ID
*/
public void setFleetId(String FleetId) {
this.FleetId = FleetId;
}
/**
* Get Game attributes. Up to 16 groups of attributes are allowed.
Note: this field may return `null`, indicating that no valid value is obtained.
* @return GameProperties Game attributes. Up to 16 groups of attributes are allowed.
Note: this field may return `null`, indicating that no valid value is obtained.
*/
public GameProperty [] getGameProperties() {
return this.GameProperties;
}
/**
* Set Game attributes. Up to 16 groups of attributes are allowed.
Note: this field may return `null`, indicating that no valid value is obtained.
* @param GameProperties Game attributes. Up to 16 groups of attributes are allowed.
Note: this field may return `null`, indicating that no valid value is obtained.
*/
public void setGameProperties(GameProperty [] GameProperties) {
this.GameProperties = GameProperties;
}
/**
* Get The attribute details of game server session. Up to 4096 ASCII characters are allowed.
Note: this field may return `null`, indicating that no valid value is obtained.
* @return GameServerSessionData The attribute details of game server session. Up to 4096 ASCII characters are allowed.
Note: this field may return `null`, indicating that no valid value is obtained.
*/
public String getGameServerSessionData() {
return this.GameServerSessionData;
}
/**
* Set The attribute details of game server session. Up to 4096 ASCII characters are allowed.
Note: this field may return `null`, indicating that no valid value is obtained.
* @param GameServerSessionData The attribute details of game server session. Up to 4096 ASCII characters are allowed.
Note: this field may return `null`, indicating that no valid value is obtained.
*/
public void setGameServerSessionData(String GameServerSessionData) {
this.GameServerSessionData = GameServerSessionData;
}
/**
* Get Game server session ID. It should contain 1 to 48 ASCII characters.
* @return GameServerSessionId Game server session ID. It should contain 1 to 48 ASCII characters.
*/
public String getGameServerSessionId() {
return this.GameServerSessionId;
}
/**
* Set Game server session ID. It should contain 1 to 48 ASCII characters.
* @param GameServerSessionId Game server session ID. It should contain 1 to 48 ASCII characters.
*/
public void setGameServerSessionId(String GameServerSessionId) {
this.GameServerSessionId = GameServerSessionId;
}
/**
* Get CVM IP address
* @return IpAddress CVM IP address
*/
public String getIpAddress() {
return this.IpAddress;
}
/**
* Set CVM IP address
* @param IpAddress CVM IP address
*/
public void setIpAddress(String IpAddress) {
this.IpAddress = IpAddress;
}
/**
* Get Battle progress details. Up to 400,000 ASCII characters are allowed.
Note: this field may return `null`, indicating that no valid value is obtained.
* @return MatchmakerData Battle progress details. Up to 400,000 ASCII characters are allowed.
Note: this field may return `null`, indicating that no valid value is obtained.
*/
public String getMatchmakerData() {
return this.MatchmakerData;
}
/**
* Set Battle progress details. Up to 400,000 ASCII characters are allowed.
Note: this field may return `null`, indicating that no valid value is obtained.
* @param MatchmakerData Battle progress details. Up to 400,000 ASCII characters are allowed.
Note: this field may return `null`, indicating that no valid value is obtained.
*/
public void setMatchmakerData(String MatchmakerData) {
this.MatchmakerData = MatchmakerData;
}
/**
* Get The maximum number of players, which cannot be less than 0.
* @return MaximumPlayerSessionCount The maximum number of players, which cannot be less than 0.
*/
public Long getMaximumPlayerSessionCount() {
return this.MaximumPlayerSessionCount;
}
/**
* Set The maximum number of players, which cannot be less than 0.
* @param MaximumPlayerSessionCount The maximum number of players, which cannot be less than 0.
*/
public void setMaximumPlayerSessionCount(Long MaximumPlayerSessionCount) {
this.MaximumPlayerSessionCount = MaximumPlayerSessionCount;
}
/**
* Get The name of game server session. Up to 1024 ASCII characters are allowed.
Note: this field may return `null`, indicating that no valid value is obtained.
* @return Name The name of game server session. Up to 1024 ASCII characters are allowed.
Note: this field may return `null`, indicating that no valid value is obtained.
*/
public String getName() {
return this.Name;
}
/**
* Set The name of game server session. Up to 1024 ASCII characters are allowed.
Note: this field may return `null`, indicating that no valid value is obtained.
* @param Name The name of game server session. Up to 1024 ASCII characters are allowed.
Note: this field may return `null`, indicating that no valid value is obtained.
*/
public void setName(String Name) {
this.Name = Name;
}
/**
* Get Player session creation policy. Valid values: ACCEPT_ALL, DENY_ALL
Note: this field may return `null`, indicating that no valid value is obtained.
* @return PlayerSessionCreationPolicy Player session creation policy. Valid values: ACCEPT_ALL, DENY_ALL
Note: this field may return `null`, indicating that no valid value is obtained.
*/
public String getPlayerSessionCreationPolicy() {
return this.PlayerSessionCreationPolicy;
}
/**
* Set Player session creation policy. Valid values: ACCEPT_ALL, DENY_ALL
Note: this field may return `null`, indicating that no valid value is obtained.
* @param PlayerSessionCreationPolicy Player session creation policy. Valid values: ACCEPT_ALL, DENY_ALL
Note: this field may return `null`, indicating that no valid value is obtained.
*/
public void setPlayerSessionCreationPolicy(String PlayerSessionCreationPolicy) {
this.PlayerSessionCreationPolicy = PlayerSessionCreationPolicy;
}
/**
* Get Port number. It should be a value between 1 to 60000.
* @return Port Port number. It should be a value between 1 to 60000.
*/
public Long getPort() {
return this.Port;
}
/**
* Set Port number. It should be a value between 1 to 60000.
* @param Port Port number. It should be a value between 1 to 60000.
*/
public void setPort(Long Port) {
this.Port = Port;
}
/**
* Get Game server session status. Valid values: ACTIVE, ACTIVATING, TERMINATED, TERMINATING, ERROR
* @return Status Game server session status. Valid values: ACTIVE, ACTIVATING, TERMINATED, TERMINATING, ERROR
*/
public String getStatus() {
return this.Status;
}
/**
* Set Game server session status. Valid values: ACTIVE, ACTIVATING, TERMINATED, TERMINATING, ERROR
* @param Status Game server session status. Valid values: ACTIVE, ACTIVATING, TERMINATED, TERMINATING, ERROR
*/
public void setStatus(String Status) {
this.Status = Status;
}
/**
* Get Additional information of game server session status
Note: this field may return null, indicating that no valid values can be obtained.
* @return StatusReason Additional information of game server session status
Note: this field may return null, indicating that no valid values can be obtained.
*/
public String getStatusReason() {
return this.StatusReason;
}
/**
* Set Additional information of game server session status
Note: this field may return null, indicating that no valid values can be obtained.
* @param StatusReason Additional information of game server session status
Note: this field may return null, indicating that no valid values can be obtained.
*/
public void setStatusReason(String StatusReason) {
this.StatusReason = StatusReason;
}
/**
* Get Termination time
Note: this field may return null, indicating that no valid values can be obtained.
* @return TerminationTime Termination time
Note: this field may return null, indicating that no valid values can be obtained.
*/
public String getTerminationTime() {
return this.TerminationTime;
}
/**
* Set Termination time
Note: this field may return null, indicating that no valid values can be obtained.
* @param TerminationTime Termination time
Note: this field may return null, indicating that no valid values can be obtained.
*/
public void setTerminationTime(String TerminationTime) {
this.TerminationTime = TerminationTime;
}
/**
* Get Instance type. Up to 128 ASCII characters are allowed.
Note: this field may return `null`, indicating that no valid value is obtained.
* @return InstanceType Instance type. Up to 128 ASCII characters are allowed.
Note: this field may return `null`, indicating that no valid value is obtained.
*/
public String getInstanceType() {
return this.InstanceType;
}
/**
* Set Instance type. Up to 128 ASCII characters are allowed.
Note: this field may return `null`, indicating that no valid value is obtained.
* @param InstanceType Instance type. Up to 128 ASCII characters are allowed.
Note: this field may return `null`, indicating that no valid value is obtained.
*/
public void setInstanceType(String InstanceType) {
this.InstanceType = InstanceType;
}
/**
* Get Current custom count
Note: this field may return null, indicating that no valid values can be obtained.
* @return CurrentCustomCount Current custom count
Note: this field may return null, indicating that no valid values can be obtained.
*/
public Long getCurrentCustomCount() {
return this.CurrentCustomCount;
}
/**
* Set Current custom count
Note: this field may return null, indicating that no valid values can be obtained.
* @param CurrentCustomCount Current custom count
Note: this field may return null, indicating that no valid values can be obtained.
*/
public void setCurrentCustomCount(Long CurrentCustomCount) {
this.CurrentCustomCount = CurrentCustomCount;
}
/**
* Get Maximum custom count
Note: this field may return null, indicating that no valid values can be obtained.
* @return MaxCustomCount Maximum custom count
Note: this field may return null, indicating that no valid values can be obtained.
*/
public Long getMaxCustomCount() {
return this.MaxCustomCount;
}
/**
* Set Maximum custom count
Note: this field may return null, indicating that no valid values can be obtained.
* @param MaxCustomCount Maximum custom count
Note: this field may return null, indicating that no valid values can be obtained.
*/
public void setMaxCustomCount(Long MaxCustomCount) {
this.MaxCustomCount = MaxCustomCount;
}
/**
* Get Weight
Note: this field may return null, indicating that no valid values can be obtained.
* @return Weight Weight
Note: this field may return null, indicating that no valid values can be obtained.
*/
public Long getWeight() {
return this.Weight;
}
/**
* Set Weight
Note: this field may return null, indicating that no valid values can be obtained.
* @param Weight Weight
Note: this field may return null, indicating that no valid values can be obtained.
*/
public void setWeight(Long Weight) {
this.Weight = Weight;
}
/**
* Get Session availability status, i.e., whether it is blocked. Valid value: Enable, Disable
Note: this field may return `null`, indicating that no valid value is obtained.
* @return AvailabilityStatus Session availability status, i.e., whether it is blocked. Valid value: Enable, Disable
Note: this field may return `null`, indicating that no valid value is obtained.
*/
public String getAvailabilityStatus() {
return this.AvailabilityStatus;
}
/**
* Set Session availability status, i.e., whether it is blocked. Valid value: Enable, Disable
Note: this field may return `null`, indicating that no valid value is obtained.
* @param AvailabilityStatus Session availability status, i.e., whether it is blocked. Valid value: Enable, Disable
Note: this field may return `null`, indicating that no valid value is obtained.
*/
public void setAvailabilityStatus(String AvailabilityStatus) {
this.AvailabilityStatus = AvailabilityStatus;
}
public GameServerSession() {
}
/**
* 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 GameServerSession(GameServerSession source) {
if (source.CreationTime != null) {
this.CreationTime = new String(source.CreationTime);
}
if (source.CreatorId != null) {
this.CreatorId = new String(source.CreatorId);
}
if (source.CurrentPlayerSessionCount != null) {
this.CurrentPlayerSessionCount = new Long(source.CurrentPlayerSessionCount);
}
if (source.DnsName != null) {
this.DnsName = new String(source.DnsName);
}
if (source.FleetId != null) {
this.FleetId = new String(source.FleetId);
}
if (source.GameProperties != null) {
this.GameProperties = new GameProperty[source.GameProperties.length];
for (int i = 0; i < source.GameProperties.length; i++) {
this.GameProperties[i] = new GameProperty(source.GameProperties[i]);
}
}
if (source.GameServerSessionData != null) {
this.GameServerSessionData = new String(source.GameServerSessionData);
}
if (source.GameServerSessionId != null) {
this.GameServerSessionId = new String(source.GameServerSessionId);
}
if (source.IpAddress != null) {
this.IpAddress = new String(source.IpAddress);
}
if (source.MatchmakerData != null) {
this.MatchmakerData = new String(source.MatchmakerData);
}
if (source.MaximumPlayerSessionCount != null) {
this.MaximumPlayerSessionCount = new Long(source.MaximumPlayerSessionCount);
}
if (source.Name != null) {
this.Name = new String(source.Name);
}
if (source.PlayerSessionCreationPolicy != null) {
this.PlayerSessionCreationPolicy = new String(source.PlayerSessionCreationPolicy);
}
if (source.Port != null) {
this.Port = new Long(source.Port);
}
if (source.Status != null) {
this.Status = new String(source.Status);
}
if (source.StatusReason != null) {
this.StatusReason = new String(source.StatusReason);
}
if (source.TerminationTime != null) {
this.TerminationTime = new String(source.TerminationTime);
}
if (source.InstanceType != null) {
this.InstanceType = new String(source.InstanceType);
}
if (source.CurrentCustomCount != null) {
this.CurrentCustomCount = new Long(source.CurrentCustomCount);
}
if (source.MaxCustomCount != null) {
this.MaxCustomCount = new Long(source.MaxCustomCount);
}
if (source.Weight != null) {
this.Weight = new Long(source.Weight);
}
if (source.AvailabilityStatus != null) {
this.AvailabilityStatus = new String(source.AvailabilityStatus);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "CreationTime", this.CreationTime);
this.setParamSimple(map, prefix + "CreatorId", this.CreatorId);
this.setParamSimple(map, prefix + "CurrentPlayerSessionCount", this.CurrentPlayerSessionCount);
this.setParamSimple(map, prefix + "DnsName", this.DnsName);
this.setParamSimple(map, prefix + "FleetId", this.FleetId);
this.setParamArrayObj(map, prefix + "GameProperties.", this.GameProperties);
this.setParamSimple(map, prefix + "GameServerSessionData", this.GameServerSessionData);
this.setParamSimple(map, prefix + "GameServerSessionId", this.GameServerSessionId);
this.setParamSimple(map, prefix + "IpAddress", this.IpAddress);
this.setParamSimple(map, prefix + "MatchmakerData", this.MatchmakerData);
this.setParamSimple(map, prefix + "MaximumPlayerSessionCount", this.MaximumPlayerSessionCount);
this.setParamSimple(map, prefix + "Name", this.Name);
this.setParamSimple(map, prefix + "PlayerSessionCreationPolicy", this.PlayerSessionCreationPolicy);
this.setParamSimple(map, prefix + "Port", this.Port);
this.setParamSimple(map, prefix + "Status", this.Status);
this.setParamSimple(map, prefix + "StatusReason", this.StatusReason);
this.setParamSimple(map, prefix + "TerminationTime", this.TerminationTime);
this.setParamSimple(map, prefix + "InstanceType", this.InstanceType);
this.setParamSimple(map, prefix + "CurrentCustomCount", this.CurrentCustomCount);
this.setParamSimple(map, prefix + "MaxCustomCount", this.MaxCustomCount);
this.setParamSimple(map, prefix + "Weight", this.Weight);
this.setParamSimple(map, prefix + "AvailabilityStatus", this.AvailabilityStatus);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy