Freigeben über


JitNetworkAccessRequestVirtualMachine Class

  • java.lang.Object
    • com.azure.resourcemanager.security.models.JitNetworkAccessRequestVirtualMachine

Implements

public final class JitNetworkAccessRequestVirtualMachine
implements JsonSerializable<JitNetworkAccessRequestVirtualMachine>

The JitNetworkAccessRequestVirtualMachine model.

Constructor Summary

Constructor Description
JitNetworkAccessRequestVirtualMachine()

Creates an instance of JitNetworkAccessRequestVirtualMachine class.

Method Summary

Modifier and Type Method and Description
static JitNetworkAccessRequestVirtualMachine fromJson(JsonReader jsonReader)

Reads an instance of JitNetworkAccessRequestVirtualMachine from the JsonReader.

String id()

Get the id property: Resource ID of the virtual machine that is linked to this policy.

List<JitNetworkAccessRequestPort> ports()

Get the ports property: The ports that were opened for the virtual machine.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

JitNetworkAccessRequestVirtualMachine withId(String id)

Set the id property: Resource ID of the virtual machine that is linked to this policy.

JitNetworkAccessRequestVirtualMachine 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:

jsonReader - The JsonReader being read.

Returns:

An instance of JitNetworkAccessRequestVirtualMachine if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Resource ID of the virtual machine that is linked to this policy.

Returns:

the id value.

ports

public List<JitNetworkAccessRequestPort> ports()

Get the ports property: The ports that were opened for the virtual machine.

Returns:

the ports value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

id - the id value to set.

Returns:

the JitNetworkAccessRequestVirtualMachine object itself.

withPorts

public JitNetworkAccessRequestVirtualMachine withPorts(List<JitNetworkAccessRequestPort> ports)

Set the ports property: The ports that were opened for the virtual machine.

Parameters:

ports - the ports value to set.

Returns:

the JitNetworkAccessRequestVirtualMachine object itself.

Applies to