/// <summary> /// Initializes a new instance of the AccountEncryption class. /// </summary> /// <param name="type">The type of key used to encrypt the Account Key. /// Possible values include: 'SystemKey', 'CustomerKey'</param> /// <param name="keyVaultProperties">The properties of the key used to /// encrypt the account.</param> /// <param name="identity">The Key Vault identity.</param> /// <param name="status">The current status of the Key Vault /// mapping.</param> public AccountEncryption(AccountEncryptionKeyType type, KeyVaultProperties keyVaultProperties = default(KeyVaultProperties), ResourceIdentity identity = default(ResourceIdentity), string status = default(string)) { Type = type; KeyVaultProperties = keyVaultProperties; Identity = identity; Status = status; CustomInit(); }
/// <summary> /// Validate the object. /// </summary> /// <exception cref="Rest.ValidationException"> /// Thrown if validation fails /// </exception> public virtual void Validate() { if (KeyVaultProperties != null) { KeyVaultProperties.Validate(); } if (Identity != null) { Identity.Validate(); } }