/*
 * ProxMox VE API
 *
 * ProxMox VE API
 *
 * The version of the OpenAPI document: 2.0
 * Contact: support@lumaserv.com
 * Generated by: https://github.com/openapitools/openapi-generator.git
 */


using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.IO;
using System.Runtime.Serialization;
using System.Text;
using System.Text.RegularExpressions;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter;

namespace ProxmoxSharp.Model
{
    /// <summary>
    /// GetNodesSingleLxcSingleInterfaces200ResponseDataInner
    /// </summary>
    [DataContract(Name = "getNodesSingleLxcSingleInterfaces_200_response_data_inner")]
    public partial class GetNodesSingleLxcSingleInterfaces200ResponseDataInner : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GetNodesSingleLxcSingleInterfaces200ResponseDataInner" /> class.
        /// </summary>
        /// <param name="hardwareAddress">The MAC address of the interface.</param>
        /// <param name="hwaddr">The MAC address of the interface.</param>
        /// <param name="inet">The IPv4 address of the interface.</param>
        /// <param name="inet6">The IPv6 address of the interface.</param>
        /// <param name="ipAddresses">The addresses of the interface.</param>
        /// <param name="name">The name of the interface.</param>
        public GetNodesSingleLxcSingleInterfaces200ResponseDataInner(string hardwareAddress = default(string), string hwaddr = default(string), string inet = default(string), string inet6 = default(string), List<GetNodesSingleLxcSingleInterfaces200ResponseDataInnerIpAddressesInner> ipAddresses = default(List<GetNodesSingleLxcSingleInterfaces200ResponseDataInnerIpAddressesInner>), string name = default(string))
        {
            this.HardwareAddress = hardwareAddress;
            this.Hwaddr = hwaddr;
            this.Inet = inet;
            this.Inet6 = inet6;
            this.IpAddresses = ipAddresses;
            this.Name = name;
        }

        /// <summary>
        /// The MAC address of the interface
        /// </summary>
        /// <value>The MAC address of the interface</value>
        [DataMember(Name = "hardware-address", EmitDefaultValue = false)]
        public string HardwareAddress { get; set; }

        /// <summary>
        /// The MAC address of the interface
        /// </summary>
        /// <value>The MAC address of the interface</value>
        [DataMember(Name = "hwaddr", EmitDefaultValue = false)]
        public string Hwaddr { get; set; }

        /// <summary>
        /// The IPv4 address of the interface
        /// </summary>
        /// <value>The IPv4 address of the interface</value>
        [DataMember(Name = "inet", EmitDefaultValue = false)]
        public string Inet { get; set; }

        /// <summary>
        /// The IPv6 address of the interface
        /// </summary>
        /// <value>The IPv6 address of the interface</value>
        [DataMember(Name = "inet6", EmitDefaultValue = false)]
        public string Inet6 { get; set; }

        /// <summary>
        /// The addresses of the interface
        /// </summary>
        /// <value>The addresses of the interface</value>
        [DataMember(Name = "ip-addresses", EmitDefaultValue = false)]
        public List<GetNodesSingleLxcSingleInterfaces200ResponseDataInnerIpAddressesInner> IpAddresses { get; set; }

        /// <summary>
        /// The name of the interface
        /// </summary>
        /// <value>The name of the interface</value>
        [DataMember(Name = "name", EmitDefaultValue = false)]
        public string Name { get; set; }

        /// <summary>
        /// Returns the string presentation of the object
        /// </summary>
        /// <returns>String presentation of the object</returns>
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();
            sb.Append("class GetNodesSingleLxcSingleInterfaces200ResponseDataInner {\n");
            sb.Append("  HardwareAddress: ").Append(HardwareAddress).Append("\n");
            sb.Append("  Hwaddr: ").Append(Hwaddr).Append("\n");
            sb.Append("  Inet: ").Append(Inet).Append("\n");
            sb.Append("  Inet6: ").Append(Inet6).Append("\n");
            sb.Append("  IpAddresses: ").Append(IpAddresses).Append("\n");
            sb.Append("  Name: ").Append(Name).Append("\n");
            sb.Append("}\n");
            return sb.ToString();
        }

        /// <summary>
        /// Returns the JSON string presentation of the object
        /// </summary>
        /// <returns>JSON string presentation of the object</returns>
        public virtual string ToJson()
        {
            return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
        }

        /// <summary>
        /// To validate all properties of the instance
        /// </summary>
        /// <param name="validationContext">Validation context</param>
        /// <returns>Validation Result</returns>
        IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
        {
            yield break;
        }
    }

}
