Class ManagedEnvironmentPropertiesPeerTrafficConfiguration
java.lang.Object
com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentPropertiesPeerTrafficConfiguration
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ManagedEnvironmentPropertiesPeerTrafficConfiguration>
public final class ManagedEnvironmentPropertiesPeerTrafficConfiguration
extends Object
implements com.azure.json.JsonSerializable<ManagedEnvironmentPropertiesPeerTrafficConfiguration>
Peer traffic settings for the Managed Environment.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ManagedEnvironmentPropertiesPeerTrafficConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionGet the encryption property: Peer traffic encryption settings for the Managed Environment.fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ManagedEnvironmentPropertiesPeerTrafficConfiguration from the JsonReader.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.Set the encryption property: Peer traffic encryption settings for the Managed Environment.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ManagedEnvironmentPropertiesPeerTrafficConfiguration
public ManagedEnvironmentPropertiesPeerTrafficConfiguration()Creates an instance of ManagedEnvironmentPropertiesPeerTrafficConfiguration class.
-
-
Method Details
-
encryption
Get the encryption property: Peer traffic encryption settings for the Managed Environment.- Returns:
- the encryption value.
-
withEncryption
public ManagedEnvironmentPropertiesPeerTrafficConfiguration withEncryption(ManagedEnvironmentPropertiesPeerTrafficConfigurationEncryption encryption) Set the encryption property: Peer traffic encryption settings for the Managed Environment.- Parameters:
encryption
- the encryption value to set.- Returns:
- the ManagedEnvironmentPropertiesPeerTrafficConfiguration object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<ManagedEnvironmentPropertiesPeerTrafficConfiguration>
- Throws:
IOException
-
fromJson
public static ManagedEnvironmentPropertiesPeerTrafficConfiguration fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ManagedEnvironmentPropertiesPeerTrafficConfiguration from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ManagedEnvironmentPropertiesPeerTrafficConfiguration if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the ManagedEnvironmentPropertiesPeerTrafficConfiguration.
-