generated/api/Models/ReasonDetails.cs

// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.4, generator: @autorest/powershell@3.0.415)
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

namespace Commvault.Powershell.Models
{
    using static Commvault.Powershell.Runtime.Extensions;

    public partial class ReasonDetails :
        Commvault.Powershell.Models.IReasonDetails,
        Commvault.Powershell.Models.IReasonDetailsInternal
    {

        /// <summary>Internal Acessors for Subclient</summary>
        Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IReasonDetailsInternal.Subclient { get => (this._subclient = this._subclient ?? new Commvault.Powershell.Models.IdName()); set { {_subclient = value;} } }

        /// <summary>Backing field for <see cref="MightMissReason" /> property.</summary>
        private string _mightMissReason;

        /// <summary>Gives the reason as to why the SLA might not be met.</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string MightMissReason { get => this._mightMissReason; set => this._mightMissReason = value; }

        /// <summary>Backing field for <see cref="Subclient" /> property.</summary>
        private Commvault.Powershell.Models.IIdName _subclient;

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        internal Commvault.Powershell.Models.IIdName Subclient { get => (this._subclient = this._subclient ?? new Commvault.Powershell.Models.IdName()); set => this._subclient = value; }

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public long? SubclientId { get => ((Commvault.Powershell.Models.IIdNameInternal)Subclient).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)Subclient).Id = value ?? default(long); }

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public string SubclientName { get => ((Commvault.Powershell.Models.IIdNameInternal)Subclient).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)Subclient).Name = value ?? null; }

        /// <summary>Creates an new <see cref="ReasonDetails" /> instance.</summary>
        public ReasonDetails()
        {

        }
    }
    public partial interface IReasonDetails :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        /// <summary>Gives the reason as to why the SLA might not be met.</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Gives the reason as to why the SLA might not be met.",
        SerializedName = @"mightMissReason",
        PossibleTypes = new [] { typeof(string) })]
        string MightMissReason { get; set; }

        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"id",
        PossibleTypes = new [] { typeof(long) })]
        long? SubclientId { get; set; }

        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"name",
        PossibleTypes = new [] { typeof(string) })]
        string SubclientName { get; set; }

    }
    internal partial interface IReasonDetailsInternal

    {
        /// <summary>Gives the reason as to why the SLA might not be met.</summary>
        string MightMissReason { get; set; }

        Commvault.Powershell.Models.IIdName Subclient { get; set; }

        long? SubclientId { get; set; }

        string SubclientName { get; set; }

    }
}