JitNetworkAccessPolicyInitiateVirtualMachine Class

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

Implements

public final class JitNetworkAccessPolicyInitiateVirtualMachine
implements JsonSerializable<JitNetworkAccessPolicyInitiateVirtualMachine>

The JitNetworkAccessPolicyInitiateVirtualMachine model.

Constructor Summary

Constructor Description
JitNetworkAccessPolicyInitiateVirtualMachine()

Creates an instance of JitNetworkAccessPolicyInitiateVirtualMachine class.

Method Summary

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

Reads an instance of JitNetworkAccessPolicyInitiateVirtualMachine from the JsonReader.

String id()

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

List<JitNetworkAccessPolicyInitiatePort> ports()

Get the ports property: The ports to open for the resource with the `id`.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

JitNetworkAccessPolicyInitiateVirtualMachine withId(String id)

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

JitNetworkAccessPolicyInitiateVirtualMachine withPorts(List<JitNetworkAccessPolicyInitiatePort> ports)

Set the ports property: The ports to open for the resource with the `id`.

Methods inherited from java.lang.Object

Constructor Details

JitNetworkAccessPolicyInitiateVirtualMachine

public JitNetworkAccessPolicyInitiateVirtualMachine()

Creates an instance of JitNetworkAccessPolicyInitiateVirtualMachine class.

Method Details

fromJson

public static JitNetworkAccessPolicyInitiateVirtualMachine fromJson(JsonReader jsonReader)

Reads an instance of JitNetworkAccessPolicyInitiateVirtualMachine from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of JitNetworkAccessPolicyInitiateVirtualMachine 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<JitNetworkAccessPolicyInitiatePort> ports()

Get the ports property: The ports to open for the resource with the `id`.

Returns:

the ports value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withId

public JitNetworkAccessPolicyInitiateVirtualMachine 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 JitNetworkAccessPolicyInitiateVirtualMachine object itself.

withPorts

public JitNetworkAccessPolicyInitiateVirtualMachine withPorts(List<JitNetworkAccessPolicyInitiatePort> ports)

Set the ports property: The ports to open for the resource with the `id`.

Parameters:

ports - the ports value to set.

Returns:

the JitNetworkAccessPolicyInitiateVirtualMachine object itself.

Applies to