/// <summary> /// Initializes a new instance of the /// BackupLongTermRetentionPolicyInner class. /// </summary> /// <param name="state">The status of the backup long term retention /// policy. Possible values include: 'Disabled', 'Enabled'</param> /// <param name="recoveryServicesBackupPolicyResourceId">The azure /// recovery services backup protection policy resource id</param> /// <param name="location">The geo-location where the resource /// lives</param> public BackupLongTermRetentionPolicyInner(BackupLongTermRetentionPolicyState state, string recoveryServicesBackupPolicyResourceId, string id = default(string), string name = default(string), string type = default(string), string location = default(string)) : base(id, name, type) { Location = location; State = state; RecoveryServicesBackupPolicyResourceId = recoveryServicesBackupPolicyResourceId; CustomInit(); }
internal static string ToSerializedValue(this BackupLongTermRetentionPolicyState value) { switch (value) { case BackupLongTermRetentionPolicyState.Disabled: return("Disabled"); case BackupLongTermRetentionPolicyState.Enabled: return("Enabled"); } return(null); }