generated/api/Models/AlertCategoryIdNameValue1.cs

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

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

    /// <summary>category utilized in alert definition creation</summary>
    public partial class AlertCategoryIdNameValue1 :
        Commvault.Powershell.Models.IAlertCategoryIdNameValue1,
        Commvault.Powershell.Models.IAlertCategoryIdNameValue1Internal,
        Commvault.Powershell.Runtime.IValidates
    {
        /// <summary>
        /// Backing field for Inherited model <see cref= "Commvault.Powershell.Models.IAlertTypeIdName1" />
        /// </summary>
        private Commvault.Powershell.Models.IAlertTypeIdName1 __alertTypeIdName1 = new Commvault.Powershell.Models.AlertTypeIdName1();

        /// <summary>id of the alert definition</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)]
        public long? Id { get => ((Commvault.Powershell.Models.IAlertTypeIdName1Internal)__alertTypeIdName1).Id; set => ((Commvault.Powershell.Models.IAlertTypeIdName1Internal)__alertTypeIdName1).Id = value ?? default(long); }

        /// <summary>type of the alert definitions</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)]
        public string Name { get => ((Commvault.Powershell.Models.IAlertTypeIdName1Internal)__alertTypeIdName1).Name; set => ((Commvault.Powershell.Models.IAlertTypeIdName1Internal)__alertTypeIdName1).Name = value ?? null; }

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

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string Value { get => this._value; set => this._value = value; }

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

        }

        /// <summary>Validates that this object meets the validation criteria.</summary>
        /// <param name="eventListener">an <see cref="Commvault.Powershell.Runtime.IEventListener" /> instance that will receive validation
        /// events.</param>
        /// <returns>
        /// A <see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed.
        /// </returns>
        public async global::System.Threading.Tasks.Task Validate(Commvault.Powershell.Runtime.IEventListener eventListener)
        {
            await eventListener.AssertNotNull(nameof(__alertTypeIdName1), __alertTypeIdName1);
            await eventListener.AssertObjectIsValid(nameof(__alertTypeIdName1), __alertTypeIdName1);
        }
    }
    /// category utilized in alert definition creation
    public partial interface IAlertCategoryIdNameValue1 :
        Commvault.Powershell.Runtime.IJsonSerializable,
        Commvault.Powershell.Models.IAlertTypeIdName1
    {
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"",
        SerializedName = @"value",
        PossibleTypes = new [] { typeof(string) })]
        string Value { get; set; }

    }
    /// category utilized in alert definition creation
    internal partial interface IAlertCategoryIdNameValue1Internal :
        Commvault.Powershell.Models.IAlertTypeIdName1Internal
    {
        string Value { get; set; }

    }
}