generated/api/Models/ObjectStoreBackupPlanRpo.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;

    /// <summary>
    /// Recovery Point Objective (RPO) is the maximum amount of time that data can be lost during a service disruption. Your RPO
    /// determines the frequency of your backup jobs.
    /// </summary>
    public partial class ObjectStoreBackupPlanRpo :
        Commvault.Powershell.Models.IObjectStoreBackupPlanRpo,
        Commvault.Powershell.Models.IObjectStoreBackupPlanRpoInternal
    {

        /// <summary>Backing field for <see cref="BackupFrequency" /> property.</summary>
        private Commvault.Powershell.Models.IObjectStorePlanSchedules _backupFrequency;

        /// <summary>PlanSchedules</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        internal Commvault.Powershell.Models.IObjectStorePlanSchedules BackupFrequency { get => (this._backupFrequency = this._backupFrequency ?? new Commvault.Powershell.Models.ObjectStorePlanSchedules()); set => this._backupFrequency = value; }

        /// <summary>Operation type for the list</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public string BackupFrequencyOperationType { get => ((Commvault.Powershell.Models.IObjectStorePlanSchedulesInternal)BackupFrequency).OperationType; set => ((Commvault.Powershell.Models.IObjectStorePlanSchedulesInternal)BackupFrequency).OperationType = value ?? null; }

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public Commvault.Powershell.Models.IObjectStorePlanSchedule[] BackupFrequencySchedules { get => ((Commvault.Powershell.Models.IObjectStorePlanSchedulesInternal)BackupFrequency).Schedules; set => ((Commvault.Powershell.Models.IObjectStorePlanSchedulesInternal)BackupFrequency).Schedules = value ?? null /* arrayOf */; }

        /// <summary>Internal Acessors for BackupFrequency</summary>
        Commvault.Powershell.Models.IObjectStorePlanSchedules Commvault.Powershell.Models.IObjectStoreBackupPlanRpoInternal.BackupFrequency { get => (this._backupFrequency = this._backupFrequency ?? new Commvault.Powershell.Models.ObjectStorePlanSchedules()); set { {_backupFrequency = value;} } }

        /// <summary>Backing field for <see cref="FullBackupWindow" /> property.</summary>
        private Commvault.Powershell.Models.IDayAndTime[] _fullBackupWindow;

        /// <summary>Backup window for full backup</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public Commvault.Powershell.Models.IDayAndTime[] FullBackupWindow { get => this._fullBackupWindow; set => this._fullBackupWindow = value; }

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

        }
    }
    /// Recovery Point Objective (RPO) is the maximum amount of time that data can be lost during a service disruption. Your RPO
    /// determines the frequency of your backup jobs.
    public partial interface IObjectStoreBackupPlanRpo :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        /// <summary>Operation type for the list</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Operation type for the list",
        SerializedName = @"operationType",
        PossibleTypes = new [] { typeof(string) })]
        string BackupFrequencyOperationType { get; set; }

        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"schedules",
        PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IObjectStorePlanSchedule) })]
        Commvault.Powershell.Models.IObjectStorePlanSchedule[] BackupFrequencySchedules { get; set; }
        /// <summary>Backup window for full backup</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Backup window for full backup",
        SerializedName = @"fullBackupWindow",
        PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IDayAndTime) })]
        Commvault.Powershell.Models.IDayAndTime[] FullBackupWindow { get; set; }

    }
    /// Recovery Point Objective (RPO) is the maximum amount of time that data can be lost during a service disruption. Your RPO
    /// determines the frequency of your backup jobs.
    internal partial interface IObjectStoreBackupPlanRpoInternal

    {
        /// <summary>PlanSchedules</summary>
        Commvault.Powershell.Models.IObjectStorePlanSchedules BackupFrequency { get; set; }
        /// <summary>Operation type for the list</summary>
        string BackupFrequencyOperationType { get; set; }

        Commvault.Powershell.Models.IObjectStorePlanSchedule[] BackupFrequencySchedules { get; set; }
        /// <summary>Backup window for full backup</summary>
        Commvault.Powershell.Models.IDayAndTime[] FullBackupWindow { get; set; }

    }
}