JitNetworkAccessPolicyInitiatePort Class

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

Implements

public final class JitNetworkAccessPolicyInitiatePort
implements JsonSerializable<JitNetworkAccessPolicyInitiatePort>

The JitNetworkAccessPolicyInitiatePort model.

Constructor Summary

Constructor Description
JitNetworkAccessPolicyInitiatePort()

Creates an instance of JitNetworkAccessPolicyInitiatePort class.

Method Summary

Modifier and Type Method and Description
String allowedSourceAddressPrefix()

Get the allowedSourceAddressPrefix property: Source of the allowed traffic.

OffsetDateTime endTimeUtc()

Get the endTimeUtc property: The time to close the request in UTC.

static JitNetworkAccessPolicyInitiatePort fromJson(JsonReader jsonReader)

Reads an instance of JitNetworkAccessPolicyInitiatePort from the JsonReader.

int number()

Get the number property: The number property.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

JitNetworkAccessPolicyInitiatePort withAllowedSourceAddressPrefix(String allowedSourceAddressPrefix)

Set the allowedSourceAddressPrefix property: Source of the allowed traffic.

JitNetworkAccessPolicyInitiatePort withEndTimeUtc(OffsetDateTime endTimeUtc)

Set the endTimeUtc property: The time to close the request in UTC.

JitNetworkAccessPolicyInitiatePort withNumber(int number)

Set the number property: The number property.

Methods inherited from java.lang.Object

Constructor Details

JitNetworkAccessPolicyInitiatePort

public JitNetworkAccessPolicyInitiatePort()

Creates an instance of JitNetworkAccessPolicyInitiatePort class.

Method Details

allowedSourceAddressPrefix

public String allowedSourceAddressPrefix()

Get the allowedSourceAddressPrefix property: Source of the allowed traffic. If omitted, the request will be for the source IP address of the initiate request.

Returns:

the allowedSourceAddressPrefix value.

endTimeUtc

public OffsetDateTime endTimeUtc()

Get the endTimeUtc property: The time to close the request in UTC.

Returns:

the endTimeUtc value.

fromJson

public static JitNetworkAccessPolicyInitiatePort fromJson(JsonReader jsonReader)

Reads an instance of JitNetworkAccessPolicyInitiatePort from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

number

public int number()

Get the number property: The number property.

Returns:

the number value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAllowedSourceAddressPrefix

public JitNetworkAccessPolicyInitiatePort withAllowedSourceAddressPrefix(String allowedSourceAddressPrefix)

Set the allowedSourceAddressPrefix property: Source of the allowed traffic. If omitted, the request will be for the source IP address of the initiate request.

Parameters:

allowedSourceAddressPrefix - the allowedSourceAddressPrefix value to set.

Returns:

the JitNetworkAccessPolicyInitiatePort object itself.

withEndTimeUtc

public JitNetworkAccessPolicyInitiatePort withEndTimeUtc(OffsetDateTime endTimeUtc)

Set the endTimeUtc property: The time to close the request in UTC.

Parameters:

endTimeUtc - the endTimeUtc value to set.

Returns:

the JitNetworkAccessPolicyInitiatePort object itself.

withNumber

public JitNetworkAccessPolicyInitiatePort withNumber(int number)

Set the number property: The number property.

Parameters:

number - the number value to set.

Returns:

the JitNetworkAccessPolicyInitiatePort object itself.

Applies to