using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace IO.Swagger.Model {
///
///
///
[DataContract]
public class AppVersionCreateSessionConfig {
///
/// The kind of session to create. If 'Default' if chosen, the 'session_config' will be ignored. The kind of session must be: Default, Seat, Match
///
/// The kind of session to create. If 'Default' if chosen, the 'session_config' will be ignored. The kind of session must be: Default, Seat, Match
[DataMember(Name="kind", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "kind")]
public string Kind { get; set; }
///
/// The number of game slots on each deployment of this app version.
///
/// The number of game slots on each deployment of this app version.
[DataMember(Name="sockets", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "sockets")]
public int? Sockets { get; set; }
///
/// If a deployment should be made autonomously if there is not enough sockets open on a new session.
///
/// If a deployment should be made autonomously if there is not enough sockets open on a new session.
[DataMember(Name="autodeploy", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "autodeploy")]
public bool? Autodeploy { get; set; }
///
/// The number of minutes a deployment of this app version can spend with no session connected before being terminated.
///
/// The number of minutes a deployment of this app version can spend with no session connected before being terminated.
[DataMember(Name="empty_ttl", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "empty_ttl")]
public int? EmptyTtl { get; set; }
///
/// The number of minutes after a session-type deployment has been terminated to remove all the session information connected to your deployment. Minimum and default value is set to 60 minutes so you can manage your session termination before it is removed.
///
/// The number of minutes after a session-type deployment has been terminated to remove all the session information connected to your deployment. Minimum and default value is set to 60 minutes so you can manage your session termination before it is removed.
[DataMember(Name="session_max_duration", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "session_max_duration")]
public int? SessionMaxDuration { get; set; }
///
/// Get the string presentation of the object
///
/// String presentation of the object
public override string ToString() {
StringBuilder sb = new StringBuilder();
sb.Append("class AppVersionCreateSessionConfig {\n");
sb.Append(" Kind: ").Append(Kind).Append("\n");
sb.Append(" Sockets: ").Append(Sockets).Append("\n");
sb.Append(" Autodeploy: ").Append(Autodeploy).Append("\n");
sb.Append(" EmptyTtl: ").Append(EmptyTtl).Append("\n");
sb.Append(" SessionMaxDuration: ").Append(SessionMaxDuration).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
///
/// Get the JSON string presentation of the object
///
/// JSON string presentation of the object
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}