Freigeben über


JitNetworkAccessRequestInner Class

  • java.lang.Object
    • com.azure.resourcemanager.security.fluent.models.JitNetworkAccessRequestInner

Implements

public final class JitNetworkAccessRequestInner
implements JsonSerializable<JitNetworkAccessRequestInner>

The JitNetworkAccessRequest model.

Constructor Summary

Constructor Description
JitNetworkAccessRequestInner()

Creates an instance of JitNetworkAccessRequestInner class.

Method Summary

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

Reads an instance of JitNetworkAccessRequestInner from the JsonReader.

String justification()

Get the justification property: The justification for making the initiate request.

String requestor()

Get the requestor property: The identity of the person who made the request.

OffsetDateTime startTimeUtc()

Get the startTimeUtc property: The start time of the request in UTC.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

List<JitNetworkAccessRequestVirtualMachine> virtualMachines()

Get the virtualMachines property: The virtualMachines property.

JitNetworkAccessRequestInner withJustification(String justification)

Set the justification property: The justification for making the initiate request.

JitNetworkAccessRequestInner withRequestor(String requestor)

Set the requestor property: The identity of the person who made the request.

JitNetworkAccessRequestInner withStartTimeUtc(OffsetDateTime startTimeUtc)

Set the startTimeUtc property: The start time of the request in UTC.

JitNetworkAccessRequestInner withVirtualMachines(List<JitNetworkAccessRequestVirtualMachine> virtualMachines)

Set the virtualMachines property: The virtualMachines property.

Methods inherited from java.lang.Object

Constructor Details

JitNetworkAccessRequestInner

public JitNetworkAccessRequestInner()

Creates an instance of JitNetworkAccessRequestInner class.

Method Details

fromJson

public static JitNetworkAccessRequestInner fromJson(JsonReader jsonReader)

Reads an instance of JitNetworkAccessRequestInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of JitNetworkAccessRequestInner 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.

justification

public String justification()

Get the justification property: The justification for making the initiate request.

Returns:

the justification value.

requestor

public String requestor()

Get the requestor property: The identity of the person who made the request.

Returns:

the requestor value.

startTimeUtc

public OffsetDateTime startTimeUtc()

Get the startTimeUtc property: The start time of the request in UTC.

Returns:

the startTimeUtc value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

virtualMachines

public List<JitNetworkAccessRequestVirtualMachine> virtualMachines()

Get the virtualMachines property: The virtualMachines property.

Returns:

the virtualMachines value.

withJustification

public JitNetworkAccessRequestInner withJustification(String justification)

Set the justification property: The justification for making the initiate request.

Parameters:

justification - the justification value to set.

Returns:

the JitNetworkAccessRequestInner object itself.

withRequestor

public JitNetworkAccessRequestInner withRequestor(String requestor)

Set the requestor property: The identity of the person who made the request.

Parameters:

requestor - the requestor value to set.

Returns:

the JitNetworkAccessRequestInner object itself.

withStartTimeUtc

public JitNetworkAccessRequestInner withStartTimeUtc(OffsetDateTime startTimeUtc)

Set the startTimeUtc property: The start time of the request in UTC.

Parameters:

startTimeUtc - the startTimeUtc value to set.

Returns:

the JitNetworkAccessRequestInner object itself.

withVirtualMachines

public JitNetworkAccessRequestInner withVirtualMachines(List<JitNetworkAccessRequestVirtualMachine> virtualMachines)

Set the virtualMachines property: The virtualMachines property.

Parameters:

virtualMachines - the virtualMachines value to set.

Returns:

the JitNetworkAccessRequestInner object itself.

Applies to