JitNetworkAccessRequestPort Class

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

public final class 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.

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.

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 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.

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.

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 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