JitNetworkAccessRequestVirtualMachine Class
- java.
lang. Object - com.
azure. resourcemanager. security. models. JitNetworkAccessRequestVirtualMachine
- com.
Implements
public final class JitNetworkAccessRequestVirtualMachine
implements JsonSerializable<JitNetworkAccessRequestVirtualMachine>
The JitNetworkAccessRequestVirtualMachine model.
Constructor Summary
| Constructor | Description |
|---|---|
| JitNetworkAccessRequestVirtualMachine() |
Creates an instance of Jit |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Jit |
fromJson(JsonReader jsonReader)
Reads an instance of Jit |
| String |
id()
Get the id property: Resource ID of the virtual machine that is linked to this policy. |
|
List<Jit |
ports()
Get the ports property: The ports that were opened for the virtual machine. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Jit |
withId(String id)
Set the id property: Resource ID of the virtual machine that is linked to this policy. |
|
Jit |
withPorts(List<JitNetworkAccessRequestPort> ports)
Set the ports property: The ports that were opened for the virtual machine. |
Methods inherited from java.lang.Object
Constructor Details
JitNetworkAccessRequestVirtualMachine
public JitNetworkAccessRequestVirtualMachine()
Creates an instance of JitNetworkAccessRequestVirtualMachine class.
Method Details
fromJson
public static JitNetworkAccessRequestVirtualMachine fromJson(JsonReader jsonReader)
Reads an instance of JitNetworkAccessRequestVirtualMachine from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Resource ID of the virtual machine that is linked to this policy.
Returns:
ports
public List<JitNetworkAccessRequestPort> ports()
Get the ports property: The ports that were opened for the virtual machine.
Returns:
toJson
validate
public void validate()
Validates the instance.
withId
public JitNetworkAccessRequestVirtualMachine withId(String id)
Set the id property: Resource ID of the virtual machine that is linked to this policy.
Parameters:
Returns:
withPorts
public JitNetworkAccessRequestVirtualMachine withPorts(List<JitNetworkAccessRequestPort> ports)
Set the ports property: The ports that were opened for the virtual machine.
Parameters:
Returns: