generated/api/Models/AlertDefinitionsTargetRecipients.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>AlertDefinitionsTargetRecipients</summary>
    public partial class AlertDefinitionsTargetRecipients :
        Commvault.Powershell.Models.IAlertDefinitionsTargetRecipients,
        Commvault.Powershell.Models.IAlertDefinitionsTargetRecipientsInternal
    {

        /// <summary>Backing field for <see cref="Bcc" /> property.</summary>
        private System.Collections.Generic.List<Commvault.Powershell.Models.IAlertTargetIdNameType1> _bcc;

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public System.Collections.Generic.List<Commvault.Powershell.Models.IAlertTargetIdNameType1> Bcc { get => this._bcc; set => this._bcc = value; }

        /// <summary>Backing field for <see cref="Cc" /> property.</summary>
        private System.Collections.Generic.List<Commvault.Powershell.Models.IAlertTargetIdNameType1> _cc;

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public System.Collections.Generic.List<Commvault.Powershell.Models.IAlertTargetIdNameType1> Cc { get => this._cc; set => this._cc = value; }

        /// <summary>Backing field for <see cref="To" /> property.</summary>
        private System.Collections.Generic.List<Commvault.Powershell.Models.IAlertTargetIdNameType1> _to;

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public System.Collections.Generic.List<Commvault.Powershell.Models.IAlertTargetIdNameType1> To { get => this._to; set => this._to = value; }

        /// <summary>Backing field for <see cref="WebHookId" /> property.</summary>
        private long? _webHookId;

        /// <summary>
        /// id of the webhook to be associated with the alert definition. Only needed incase of webhook notif selected. To get a list
        /// of webhooks, use api GET Webhook
        /// </summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public long? WebHookId { get => this._webHookId; set => this._webHookId = value; }

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

        }
    }
    /// AlertDefinitionsTargetRecipients
    public partial interface IAlertDefinitionsTargetRecipients :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"",
        SerializedName = @"bcc",
        PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IAlertTargetIdNameType1) })]
        System.Collections.Generic.List<Commvault.Powershell.Models.IAlertTargetIdNameType1> Bcc { get; set; }

        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"",
        SerializedName = @"cc",
        PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IAlertTargetIdNameType1) })]
        System.Collections.Generic.List<Commvault.Powershell.Models.IAlertTargetIdNameType1> Cc { get; set; }

        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"",
        SerializedName = @"to",
        PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IAlertTargetIdNameType1) })]
        System.Collections.Generic.List<Commvault.Powershell.Models.IAlertTargetIdNameType1> To { get; set; }
        /// <summary>
        /// id of the webhook to be associated with the alert definition. Only needed incase of webhook notif selected. To get a list
        /// of webhooks, use api GET Webhook
        /// </summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"id of the webhook to be associated with the alert definition. Only needed incase of webhook notif selected. To get a list of webhooks, use api GET Webhook",
        SerializedName = @"webHookId",
        PossibleTypes = new [] { typeof(long) })]
        long? WebHookId { get; set; }

    }
    /// AlertDefinitionsTargetRecipients
    internal partial interface IAlertDefinitionsTargetRecipientsInternal

    {
        System.Collections.Generic.List<Commvault.Powershell.Models.IAlertTargetIdNameType1> Bcc { get; set; }

        System.Collections.Generic.List<Commvault.Powershell.Models.IAlertTargetIdNameType1> Cc { get; set; }

        System.Collections.Generic.List<Commvault.Powershell.Models.IAlertTargetIdNameType1> To { get; set; }
        /// <summary>
        /// id of the webhook to be associated with the alert definition. Only needed incase of webhook notif selected. To get a list
        /// of webhooks, use api GET Webhook
        /// </summary>
        long? WebHookId { get; set; }

    }
}