Freigeben über


JitNetworkAccessRequestPort Class

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

Implements

public final class JitNetworkAccessRequestPort
implements JsonSerializable<JitNetworkAccessRequestPort>

The JitNetworkAccessRequestPort model.

Constructor Summary

Constructor Description
JitNetworkAccessRequestPort()

Creates an instance of JitNetworkAccessRequestPort class.

Method Summary

Modifier and Type Method and Description
String allowedSourceAddressPrefix()

Get the allowedSourceAddressPrefix property: Mutually exclusive with the "allowedSourceAddressPrefixes" parameter.

List<String> allowedSourceAddressPrefixes()

Get the allowedSourceAddressPrefixes property: Mutually exclusive with the "allowedSourceAddressPrefix" parameter.

OffsetDateTime endTimeUtc()

Get the endTimeUtc property: The date & time at which the request ends in UTC.

static JitNetworkAccessRequestPort fromJson(JsonReader jsonReader)

Reads an instance of JitNetworkAccessRequestPort from the JsonReader.

Integer mappedPort()

Get the mappedPort property: The port which is mapped to this port's `number` in the Azure Firewall, if applicable.

int number()

Get the number property: The number property.

Status status()

Get the status property: The status of the port.

StatusReason statusReason()

Get the statusReason property: A description of why the `status` has its value.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

JitNetworkAccessRequestPort withAllowedSourceAddressPrefix(String allowedSourceAddressPrefix)

Set the allowedSourceAddressPrefix property: Mutually exclusive with the "allowedSourceAddressPrefixes" parameter.

JitNetworkAccessRequestPort withAllowedSourceAddressPrefixes(List<String> allowedSourceAddressPrefixes)

Set the allowedSourceAddressPrefixes property: Mutually exclusive with the "allowedSourceAddressPrefix" parameter.

JitNetworkAccessRequestPort withEndTimeUtc(OffsetDateTime endTimeUtc)

Set the endTimeUtc property: The date & time at which the request ends in UTC.

JitNetworkAccessRequestPort withMappedPort(Integer mappedPort)

Set the mappedPort property: The port which is mapped to this port's `number` in the Azure Firewall, if applicable.

JitNetworkAccessRequestPort withNumber(int number)

Set the number property: The number property.

JitNetworkAccessRequestPort withStatus(Status status)

Set the status property: The status of the port.

JitNetworkAccessRequestPort withStatusReason(StatusReason statusReason)

Set the statusReason property: A description of why the `status` has its value.

Methods inherited from java.lang.Object

Constructor Details

JitNetworkAccessRequestPort

public JitNetworkAccessRequestPort()

Creates an instance of JitNetworkAccessRequestPort class.

Method Details

allowedSourceAddressPrefix

public String allowedSourceAddressPrefix()

Get the allowedSourceAddressPrefix property: Mutually exclusive with the "allowedSourceAddressPrefixes" parameter. Should be an IP address or CIDR, for example "192.168.0.3" or "192.168.0.0/16".

Returns:

the allowedSourceAddressPrefix value.

allowedSourceAddressPrefixes

public List<String> allowedSourceAddressPrefixes()

Get the allowedSourceAddressPrefixes property: Mutually exclusive with the "allowedSourceAddressPrefix" parameter.

Returns:

the allowedSourceAddressPrefixes value.

endTimeUtc

public OffsetDateTime endTimeUtc()

Get the endTimeUtc property: The date & time at which the request ends in UTC.

Returns:

the endTimeUtc value.

fromJson

public static JitNetworkAccessRequestPort fromJson(JsonReader jsonReader)

Reads an instance of JitNetworkAccessRequestPort from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

mappedPort

public Integer mappedPort()

Get the mappedPort property: The port which is mapped to this port's `number` in the Azure Firewall, if applicable.

Returns:

the mappedPort value.

number

public int number()

Get the number property: The number property.

Returns:

the number value.

status

public Status status()

Get the status property: The status of the port.

Returns:

the status value.

statusReason

public StatusReason statusReason()

Get the statusReason property: A description of why the `status` has its value.

Returns:

the statusReason value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAllowedSourceAddressPrefix

public JitNetworkAccessRequestPort withAllowedSourceAddressPrefix(String allowedSourceAddressPrefix)

Set the allowedSourceAddressPrefix property: Mutually exclusive with the "allowedSourceAddressPrefixes" parameter. Should be an IP address or CIDR, for example "192.168.0.3" or "192.168.0.0/16".

Parameters:

allowedSourceAddressPrefix - the allowedSourceAddressPrefix value to set.

Returns:

the JitNetworkAccessRequestPort object itself.

withAllowedSourceAddressPrefixes

public JitNetworkAccessRequestPort withAllowedSourceAddressPrefixes(List<String> allowedSourceAddressPrefixes)

Set the allowedSourceAddressPrefixes property: Mutually exclusive with the "allowedSourceAddressPrefix" parameter.

Parameters:

allowedSourceAddressPrefixes - the allowedSourceAddressPrefixes value to set.

Returns:

the JitNetworkAccessRequestPort object itself.

withEndTimeUtc

public JitNetworkAccessRequestPort withEndTimeUtc(OffsetDateTime endTimeUtc)

Set the endTimeUtc property: The date & time at which the request ends in UTC.

Parameters:

endTimeUtc - the endTimeUtc value to set.

Returns:

the JitNetworkAccessRequestPort object itself.

withMappedPort

public JitNetworkAccessRequestPort withMappedPort(Integer mappedPort)

Set the mappedPort property: The port which is mapped to this port's `number` in the Azure Firewall, if applicable.

Parameters:

mappedPort - the mappedPort value to set.

Returns:

the JitNetworkAccessRequestPort object itself.

withNumber

public JitNetworkAccessRequestPort withNumber(int number)

Set the number property: The number property.

Parameters:

number - the number value to set.

Returns:

the JitNetworkAccessRequestPort object itself.

withStatus

public JitNetworkAccessRequestPort withStatus(Status status)

Set the status property: The status of the port.

Parameters:

status - the status value to set.

Returns:

the JitNetworkAccessRequestPort object itself.

withStatusReason

public JitNetworkAccessRequestPort withStatusReason(StatusReason statusReason)

Set the statusReason property: A description of why the `status` has its value.

Parameters:

statusReason - the statusReason value to set.

Returns:

the JitNetworkAccessRequestPort object itself.

Applies to