/// <summary>
        /// Initializes a new instance of the <see cref="DatabaseInstanceConfiguration"/> class
        /// with a restore point for restoring a database instance from a backup.
        /// </summary>
        /// <param name="flavorRef">A <see cref="FlavorRef"/> object describing the flavor of the database instance.</param>
        /// <param name="volumeConfiguration">A <see cref="DatabaseVolumeConfiguration"/> object containing additional information about
        /// the database instance storage volume.</param>
        /// <param name="name">The name of the database instance, or <see langword="null"/> if the database instance is not named.</param>
        /// <param name="restorePoint">A <see cref="RestorePoint"/> object describing the backup from which this database instance was restored, or null if the restore point is not available.</param>
        /// <exception cref="ArgumentNullException">
        /// If <paramref name="flavorRef"/> is <see langword="null"/>.
        /// <para>-or-</para>
        /// <para>If <paramref name="volumeConfiguration"/> is <see langword="null"/>.</para>
        /// </exception>
        public DatabaseInstanceConfiguration(FlavorRef flavorRef, DatabaseVolumeConfiguration volumeConfiguration, string name, RestorePoint restorePoint)
        {
            if (flavorRef == null)
                throw new ArgumentNullException("flavorRef");
            if (volumeConfiguration == null)
                throw new ArgumentNullException("volumeConfiguration");

            _flavorRef = flavorRef;
            _volume = volumeConfiguration;
            _name = name;
            _restorePoint = restorePoint;
        }
示例#2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DatabaseInstanceConfiguration"/> class
        /// with a restore point for restoring a database instance from a backup.
        /// </summary>
        /// <param name="flavorRef">A <see cref="FlavorRef"/> object describing the flavor of the database instance.</param>
        /// <param name="volumeConfiguration">A <see cref="DatabaseVolumeConfiguration"/> object containing additional information about
        /// the database instance storage volume.</param>
        /// <param name="name">The name of the database instance, or <see langword="null"/> if the database instance is not named.</param>
        /// <param name="restorePoint">A <see cref="RestorePoint"/> object describing the backup from which this database instance was restored, or null if the restore point is not available.</param>
        /// <exception cref="ArgumentNullException">
        /// If <paramref name="flavorRef"/> is <see langword="null"/>.
        /// <para>-or-</para>
        /// <para>If <paramref name="volumeConfiguration"/> is <see langword="null"/>.</para>
        /// </exception>
        public DatabaseInstanceConfiguration(FlavorRef flavorRef, DatabaseVolumeConfiguration volumeConfiguration, string name, RestorePoint restorePoint)
        {
            if (flavorRef == null)
            {
                throw new ArgumentNullException("flavorRef");
            }
            if (volumeConfiguration == null)
            {
                throw new ArgumentNullException("volumeConfiguration");
            }

            _flavorRef    = flavorRef;
            _volume       = volumeConfiguration;
            _name         = name;
            _restorePoint = restorePoint;
        }
示例#3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DatabaseInstanceConfiguration"/> class
 /// with the specified values.
 /// </summary>
 /// <param name="flavorRef">A <see cref="FlavorRef"/> object describing the flavor of the database instance.</param>
 /// <param name="volumeConfiguration">A <see cref="DatabaseVolumeConfiguration"/> object containing additional information about
 /// the database instance storage volume.</param>
 /// <param name="name">The name of the database instance, or <see langword="null"/> if the database instance is not named.</param>
 /// <exception cref="ArgumentNullException">
 /// If <paramref name="flavorRef"/> is <see langword="null"/>.
 /// <para>-or-</para>
 /// <para>If <paramref name="volumeConfiguration"/> is <see langword="null"/>.</para>
 /// </exception>
 public DatabaseInstanceConfiguration(FlavorRef flavorRef, DatabaseVolumeConfiguration volumeConfiguration, string name)
     : this(flavorRef, volumeConfiguration, name, null)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DatabaseInstanceConfiguration"/> class
 /// with the specified values.
 /// </summary>
 /// <param name="flavorRef">A <see cref="FlavorRef"/> object describing the flavor of the database instance.</param>
 /// <param name="volumeConfiguration">A <see cref="DatabaseVolumeConfiguration"/> object containing additional information about
 /// the database instance storage volume.</param>
 /// <param name="name">The name of the database instance, or <see langword="null"/> if the database instance is not named.</param>
 /// <exception cref="ArgumentNullException">
 /// If <paramref name="flavorRef"/> is <see langword="null"/>.
 /// <para>-or-</para>
 /// <para>If <paramref name="volumeConfiguration"/> is <see langword="null"/>.</para>
 /// </exception>
 public DatabaseInstanceConfiguration(FlavorRef flavorRef, DatabaseVolumeConfiguration volumeConfiguration, string name)
     : this(flavorRef, volumeConfiguration, name, null)
 {
 }