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 PortMapping {
///
/// The Port to Connect from Internet
///
/// The Port to Connect from Internet
[DataMember(Name="external", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "external")]
public int? External { get; set; }
///
/// The internal Port of the Container
///
/// The internal Port of the Container
[DataMember(Name="internal", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "internal")]
public int? Internal { get; set; }
///
/// The Protocol (i.e. 'TCP')
///
/// The Protocol (i.e. 'TCP')
[DataMember(Name="protocol", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "protocol")]
public string Protocol { get; set; }
///
/// The Name of the port if given, default to internal port in string
///
/// The Name of the port if given, default to internal port in string
[DataMember(Name="name", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
///
/// If the port require TLS Upgrade
///
/// If the port require TLS Upgrade
[DataMember(Name="tls_upgrade", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "tls_upgrade")]
public bool? TlsUpgrade { get; set; }
///
/// link of the port with scheme depending of the protocol
///
/// link of the port with scheme depending of the protocol
[DataMember(Name="link", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "link")]
public string Link { get; set; }
///
/// Internal Proxy Mapping
///
/// Internal Proxy Mapping
[DataMember(Name="proxy", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "proxy")]
public int? Proxy { 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 PortMapping {\n");
sb.Append(" External: ").Append(External).Append("\n");
sb.Append(" Internal: ").Append(Internal).Append("\n");
sb.Append(" Protocol: ").Append(Protocol).Append("\n");
sb.Append(" Name: ").Append(Name).Append("\n");
sb.Append(" TlsUpgrade: ").Append(TlsUpgrade).Append("\n");
sb.Append(" Link: ").Append(Link).Append("\n");
sb.Append(" Proxy: ").Append(Proxy).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);
}
}
}