JitNetworkAccessPolicyInner Class

public final class JitNetworkAccessPolicyInner
extends ProxyResource

The JitNetworkAccessPolicy model.

Constructor Summary

Constructor Description
JitNetworkAccessPolicyInner()

Creates an instance of JitNetworkAccessPolicyInner class.

Method Summary

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

Reads an instance of JitNetworkAccessPolicyInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String kind()

Get the kind property: Kind of the resource.

String location()

Get the location property: Location where the resource is stored.

String name()

Get the name property: The name of the resource.

String provisioningState()

Get the provisioningState property: Gets the provisioning state of the Just-in-Time policy.

List<JitNetworkAccessRequestInner> requests()

Get the requests property: The requests property.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

List<JitNetworkAccessPolicyVirtualMachine> virtualMachines()

Get the virtualMachines property: Configurations for Microsoft.Compute/virtualMachines resource type.

JitNetworkAccessPolicyInner withKind(String kind)

Set the kind property: Kind of the resource.

JitNetworkAccessPolicyInner withRequests(List<JitNetworkAccessRequestInner> requests)

Set the requests property: The requests property.

JitNetworkAccessPolicyInner withVirtualMachines(List<JitNetworkAccessPolicyVirtualMachine> virtualMachines)

Set the virtualMachines property: Configurations for Microsoft.Compute/virtualMachines resource type.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

JitNetworkAccessPolicyInner

public JitNetworkAccessPolicyInner()

Creates an instance of JitNetworkAccessPolicyInner class.

Method Details

fromJson

public static JitNetworkAccessPolicyInner fromJson(JsonReader jsonReader)

Reads an instance of JitNetworkAccessPolicyInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of JitNetworkAccessPolicyInner 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: Fully qualified resource Id for the resource.

Overrides:

JitNetworkAccessPolicyInner.id()

Returns:

the id value.

kind

public String kind()

Get the kind property: Kind of the resource.

Returns:

the kind value.

location

public String location()

Get the location property: Location where the resource is stored.

Returns:

the location value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

JitNetworkAccessPolicyInner.name()

Returns:

the name value.

provisioningState

public String provisioningState()

Get the provisioningState property: Gets the provisioning state of the Just-in-Time policy.

Returns:

the provisioningState value.

requests

public List<JitNetworkAccessRequestInner> requests()

Get the requests property: The requests property.

Returns:

the requests value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

JitNetworkAccessPolicyInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

JitNetworkAccessPolicyInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

virtualMachines

public List<JitNetworkAccessPolicyVirtualMachine> virtualMachines()

Get the virtualMachines property: Configurations for Microsoft.Compute/virtualMachines resource type.

Returns:

the virtualMachines value.

withKind

public JitNetworkAccessPolicyInner withKind(String kind)

Set the kind property: Kind of the resource.

Parameters:

kind - the kind value to set.

Returns:

the JitNetworkAccessPolicyInner object itself.

withRequests

public JitNetworkAccessPolicyInner withRequests(List<JitNetworkAccessRequestInner> requests)

Set the requests property: The requests property.

Parameters:

requests - the requests value to set.

Returns:

the JitNetworkAccessPolicyInner object itself.

withVirtualMachines

public JitNetworkAccessPolicyInner withVirtualMachines(List<JitNetworkAccessPolicyVirtualMachine> virtualMachines)

Set the virtualMachines property: Configurations for Microsoft.Compute/virtualMachines resource type.

Parameters:

virtualMachines - the virtualMachines value to set.

Returns:

the JitNetworkAccessPolicyInner object itself.

Applies to