Class RuntimeNetworkProfile
java.lang.Object
com.azure.resourcemanager.compute.workloadmanager.models.RuntimeNetworkProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RuntimeNetworkProfile>
public final class RuntimeNetworkProfile
extends Object
implements com.azure.json.JsonSerializable<RuntimeNetworkProfile>
Network configuration for a managed runtime.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the egressMode property: Indicates who manages runtime egress.static RuntimeNetworkProfilefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RuntimeNetworkProfile from the JsonReader.Get the subnetResourceId property: The customer-provided subnet used by the runtime.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) withEgressMode(EgressMode egressMode) Set the egressMode property: Indicates who manages runtime egress.withSubnetResourceId(String subnetResourceId) Set the subnetResourceId property: The customer-provided subnet used by the runtime.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
RuntimeNetworkProfile
public RuntimeNetworkProfile()Creates an instance of RuntimeNetworkProfile class.
-
-
Method Details
-
subnetResourceId
Get the subnetResourceId property: The customer-provided subnet used by the runtime.- Returns:
- the subnetResourceId value.
-
withSubnetResourceId
Set the subnetResourceId property: The customer-provided subnet used by the runtime.- Parameters:
subnetResourceId- the subnetResourceId value to set.- Returns:
- the RuntimeNetworkProfile object itself.
-
egressMode
Get the egressMode property: Indicates who manages runtime egress.- Returns:
- the egressMode value.
-
withEgressMode
Set the egressMode property: Indicates who manages runtime egress.- Parameters:
egressMode- the egressMode value to set.- Returns:
- the RuntimeNetworkProfile object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<RuntimeNetworkProfile>- Throws:
IOException
-
fromJson
public static RuntimeNetworkProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of RuntimeNetworkProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RuntimeNetworkProfile 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 RuntimeNetworkProfile.
-