generated/api/Models/CreateArchivePlanBackupDestinations.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 CreateArchivePlanBackupDestinations :
        Commvault.Powershell.Models.ICreateArchivePlanBackupDestinations,
        Commvault.Powershell.Models.ICreateArchivePlanBackupDestinationsInternal
    {

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

        /// <summary>Backing field for <see cref="Destinations" /> property.</summary>
        private Commvault.Powershell.Models.ICreateArchivePlanBackupDestination[] _destinations;

        /// <summary>List of backup destinations to create</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public Commvault.Powershell.Models.ICreateArchivePlanBackupDestination[] Destinations { get => this._destinations; set => this._destinations = value; }

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

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

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

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

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

        }
    }
    public partial interface ICreateArchivePlanBackupDestinations :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        /// <summary>List of backup destinations to create</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = true,
        ReadOnly = false,
        Description = @"List of backup destinations to create",
        SerializedName = @"destinations",
        PossibleTypes = new [] { typeof(Commvault.Powershell.Models.ICreateArchivePlanBackupDestination) })]
        Commvault.Powershell.Models.ICreateArchivePlanBackupDestination[] Destinations { get; set; }

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

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

    }
    internal partial interface ICreateArchivePlanBackupDestinationsInternal

    {
        /// <summary>List of backup destinations to create</summary>
        Commvault.Powershell.Models.ICreateArchivePlanBackupDestination[] Destinations { get; set; }

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

        long? RegionId { get; set; }

        string RegionName { get; set; }

    }
}