//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
//
namespace k8s.Models
{
using Microsoft.Rest;
using Newtonsoft.Json;
using System.Linq;
///
/// NodeAddress contains information for the node's address.
///
public partial class V1NodeAddress
{
///
/// Initializes a new instance of the V1NodeAddress class.
///
public V1NodeAddress()
{
CustomInit();
}
///
/// Initializes a new instance of the V1NodeAddress class.
///
/// The node address.
/// Node address type, one of Hostname, ExternalIP
/// or InternalIP.
public V1NodeAddress(string address, string type)
{
Address = address;
Type = type;
CustomInit();
}
///
/// An initialization method that performs custom operations like setting defaults
///
partial void CustomInit();
///
/// Gets or sets the node address.
///
[JsonProperty(PropertyName = "address")]
public string Address { get; set; }
///
/// Gets or sets node address type, one of Hostname, ExternalIP or
/// InternalIP.
///
[JsonProperty(PropertyName = "type")]
public string Type { get; set; }
///
/// Validate the object.
///
///
/// Thrown if validation fails
///
public virtual void Validate()
{
if (Address == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "Address");
}
if (Type == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "Type");
}
}
}
}