// <auto-generated>
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>

namespace k8s.Models
{
    using Newtonsoft.Json;
    using System.Linq;

    /// <summary>
    /// ServiceBackendPort is the service port being referenced.
    /// </summary>
    public partial class V1ServiceBackendPort
    {
        /// <summary>
        /// Initializes a new instance of the V1ServiceBackendPort class.
        /// </summary>
        public V1ServiceBackendPort()
        {
            CustomInit();
        }

        /// <summary>
        /// Initializes a new instance of the V1ServiceBackendPort class.
        /// </summary>
        /// <param name="name">Name is the name of the port on the Service.
        /// This is a mutually exclusive setting with "Number".</param>
        /// <param name="number">Number is the numerical port number (e.g. 80)
        /// on the Service. This is a mutually exclusive setting with
        /// "Name".</param>
        public V1ServiceBackendPort(string name = default(string), int? number = default(int?))
        {
            Name = name;
            Number = number;
            CustomInit();
        }

        /// <summary>
        /// An initialization method that performs custom operations like setting defaults
        /// </summary>
        partial void CustomInit();

        /// <summary>
        /// Gets or sets name is the name of the port on the Service. This is a
        /// mutually exclusive setting with "Number".
        /// </summary>
        [JsonProperty(PropertyName = "name")]
        public string Name { get; set; }

        /// <summary>
        /// Gets or sets number is the numerical port number (e.g. 80) on the
        /// Service. This is a mutually exclusive setting with "Name".
        /// </summary>
        [JsonProperty(PropertyName = "number")]
        public int? Number { get; set; }

    }
}
