Class JitNetworkAccessRequestPort
java.lang.Object
com.azure.resourcemanager.security.models.JitNetworkAccessRequestPort
The JitNetworkAccessRequestPort model.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the allowedSourceAddressPrefix property: Mutually exclusive with the "allowedSourceAddressPrefixes" parameter.Get the allowedSourceAddressPrefixes property: Mutually exclusive with the "allowedSourceAddressPrefix" parameter.Get the endTimeUtc property: The date & time at which the request ends in UTC.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()
Get the status property: The status of the port.Get the statusReason property: A description of why the `status` has its value.void
validate()
Validates the instance.withAllowedSourceAddressPrefix
(String allowedSourceAddressPrefix) Set the allowedSourceAddressPrefix property: Mutually exclusive with the "allowedSourceAddressPrefixes" parameter.withAllowedSourceAddressPrefixes
(List<String> allowedSourceAddressPrefixes) Set the allowedSourceAddressPrefixes property: Mutually exclusive with the "allowedSourceAddressPrefix" parameter.withEndTimeUtc
(OffsetDateTime endTimeUtc) Set the endTimeUtc property: The date & time at which the request ends in UTC.withMappedPort
(Integer mappedPort) Set the mappedPort property: The port which is mapped to this port's `number` in the Azure Firewall, if applicable.withNumber
(int number) Set the number property: The number property.withStatus
(Status status) Set the status property: The status of the port.withStatusReason
(StatusReason statusReason) Set the statusReason property: A description of why the `status` has its value.
-
Constructor Details
-
JitNetworkAccessRequestPort
public JitNetworkAccessRequestPort()
-
-
Method Details
-
number
public int number()Get the number property: The number property.- Returns:
- the number value.
-
withNumber
Set the number property: The number property.- Parameters:
number
- the number value to set.- Returns:
- the JitNetworkAccessRequestPort object itself.
-
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.
-
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.
-
allowedSourceAddressPrefixes
Get the allowedSourceAddressPrefixes property: Mutually exclusive with the "allowedSourceAddressPrefix" parameter.- Returns:
- the allowedSourceAddressPrefixes value.
-
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.
-
endTimeUtc
Get the endTimeUtc property: The date & time at which the request ends in UTC.- Returns:
- the endTimeUtc value.
-
withEndTimeUtc
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.
-
status
Get the status property: The status of the port.- Returns:
- the status value.
-
withStatus
Set the status property: The status of the port.- Parameters:
status
- the status value to set.- Returns:
- the JitNetworkAccessRequestPort object itself.
-
statusReason
Get the statusReason property: A description of why the `status` has its value.- Returns:
- the statusReason value.
-
withStatusReason
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.
-
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.
-
withMappedPort
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-