### YamlMime:JavaType uid: "com.azure.resourcemanager.eventhubs.models.Encryption" fullName: "com.azure.resourcemanager.eventhubs.models.Encryption" name: "Encryption" nameWithType: "Encryption" summary: "Properties to configure Encryption." inheritances: - "" inheritedClassMethods: - classRef: "java.lang.Object" methodsRef: - "clone" - "equals" - "finalize" - "getClass" - "hashCode" - "notify" - "notifyAll" - "toString" - "wait" - "wait" - "wait" syntax: "public final class **Encryption**
implements <>" constructors: - uid: "com.azure.resourcemanager.eventhubs.models.Encryption.Encryption()" fullName: "com.azure.resourcemanager.eventhubs.models.Encryption.Encryption()" name: "Encryption()" nameWithType: "Encryption.Encryption()" summary: "Creates an instance of Encryption class." syntax: "public Encryption()" desc: "Creates an instance of Encryption class." methods: - uid: "com.azure.resourcemanager.eventhubs.models.Encryption.fromJson(com.azure.json.JsonReader)" fullName: "com.azure.resourcemanager.eventhubs.models.Encryption.fromJson(JsonReader jsonReader)" name: "fromJson(JsonReader jsonReader)" nameWithType: "Encryption.fromJson(JsonReader jsonReader)" summary: "Reads an instance of Encryption from the JsonReader." modifiers: - "static" parameters: - description: "The JsonReader being read." name: "jsonReader" type: "" syntax: "public static Encryption fromJson(JsonReader jsonReader)" exceptions: - description: "If an error occurs while reading the Encryption." type: "IOException" desc: "Reads an instance of Encryption from the JsonReader." returns: description: "An instance of Encryption if the JsonReader was pointing to an instance of it, or null if it was pointing\n to JSON null." type: "" - uid: "com.azure.resourcemanager.eventhubs.models.Encryption.keySource()" fullName: "com.azure.resourcemanager.eventhubs.models.Encryption.keySource()" name: "keySource()" nameWithType: "Encryption.keySource()" summary: "Get the keySource property: Enumerates the possible value of keySource for Encryption." syntax: "public KeySource keySource()" desc: "Get the keySource property: Enumerates the possible value of keySource for Encryption." returns: description: "the keySource value." type: "" - uid: "com.azure.resourcemanager.eventhubs.models.Encryption.keyVaultProperties()" fullName: "com.azure.resourcemanager.eventhubs.models.Encryption.keyVaultProperties()" name: "keyVaultProperties()" nameWithType: "Encryption.keyVaultProperties()" summary: "Get the keyVaultProperties property: Properties of KeyVault." syntax: "public List keyVaultProperties()" desc: "Get the keyVaultProperties property: Properties of KeyVault." returns: description: "the keyVaultProperties value." type: "List<>" - uid: "com.azure.resourcemanager.eventhubs.models.Encryption.requireInfrastructureEncryption()" fullName: "com.azure.resourcemanager.eventhubs.models.Encryption.requireInfrastructureEncryption()" name: "requireInfrastructureEncryption()" nameWithType: "Encryption.requireInfrastructureEncryption()" summary: "Get the requireInfrastructureEncryption property: Enable Infrastructure Encryption (Double Encryption)." syntax: "public Boolean requireInfrastructureEncryption()" desc: "Get the requireInfrastructureEncryption property: Enable Infrastructure Encryption (Double Encryption)." returns: description: "the requireInfrastructureEncryption value." type: "Boolean" - uid: "com.azure.resourcemanager.eventhubs.models.Encryption.toJson(com.azure.json.JsonWriter)" fullName: "com.azure.resourcemanager.eventhubs.models.Encryption.toJson(JsonWriter jsonWriter)" name: "toJson(JsonWriter jsonWriter)" nameWithType: "Encryption.toJson(JsonWriter jsonWriter)" parameters: - name: "jsonWriter" type: "" syntax: "public JsonWriter toJson(JsonWriter jsonWriter)" exceptions: - type: "IOException" returns: type: "" - uid: "com.azure.resourcemanager.eventhubs.models.Encryption.validate()" fullName: "com.azure.resourcemanager.eventhubs.models.Encryption.validate()" name: "validate()" nameWithType: "Encryption.validate()" summary: "Validates the instance." syntax: "public void validate()" desc: "Validates the instance." - uid: "com.azure.resourcemanager.eventhubs.models.Encryption.withKeySource(com.azure.resourcemanager.eventhubs.models.KeySource)" fullName: "com.azure.resourcemanager.eventhubs.models.Encryption.withKeySource(KeySource keySource)" name: "withKeySource(KeySource keySource)" nameWithType: "Encryption.withKeySource(KeySource keySource)" summary: "Set the keySource property: Enumerates the possible value of keySource for Encryption." parameters: - description: "the keySource value to set." name: "keySource" type: "" syntax: "public Encryption withKeySource(KeySource keySource)" desc: "Set the keySource property: Enumerates the possible value of keySource for Encryption." returns: description: "the Encryption object itself." type: "" - uid: "com.azure.resourcemanager.eventhubs.models.Encryption.withKeyVaultProperties(java.util.List)" fullName: "com.azure.resourcemanager.eventhubs.models.Encryption.withKeyVaultProperties(List keyVaultProperties)" name: "withKeyVaultProperties(List keyVaultProperties)" nameWithType: "Encryption.withKeyVaultProperties(List keyVaultProperties)" summary: "Set the keyVaultProperties property: Properties of KeyVault." parameters: - description: "the keyVaultProperties value to set." name: "keyVaultProperties" type: "List<>" syntax: "public Encryption withKeyVaultProperties(List keyVaultProperties)" desc: "Set the keyVaultProperties property: Properties of KeyVault." returns: description: "the Encryption object itself." type: "" - uid: "com.azure.resourcemanager.eventhubs.models.Encryption.withRequireInfrastructureEncryption(java.lang.Boolean)" fullName: "com.azure.resourcemanager.eventhubs.models.Encryption.withRequireInfrastructureEncryption(Boolean requireInfrastructureEncryption)" name: "withRequireInfrastructureEncryption(Boolean requireInfrastructureEncryption)" nameWithType: "Encryption.withRequireInfrastructureEncryption(Boolean requireInfrastructureEncryption)" summary: "Set the requireInfrastructureEncryption property: Enable Infrastructure Encryption (Double Encryption)." parameters: - description: "the requireInfrastructureEncryption value to set." name: "requireInfrastructureEncryption" type: "Boolean" syntax: "public Encryption withRequireInfrastructureEncryption(Boolean requireInfrastructureEncryption)" desc: "Set the requireInfrastructureEncryption property: Enable Infrastructure Encryption (Double Encryption)." returns: description: "the Encryption object itself." type: "" type: "class" desc: "Properties to configure Encryption." implements: - "<>" metadata: {} package: "com.azure.resourcemanager.eventhubs.models" artifact: com.azure.resourcemanager:azure-resourcemanager-eventhubs:2.44.0