Class JitNetworkAccessPolicyInitiatePort
java.lang.Object
com.azure.resourcemanager.security.models.JitNetworkAccessPolicyInitiatePort
The JitNetworkAccessPolicyInitiatePort model.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the allowedSourceAddressPrefix property: Source of the allowed traffic.Get the endTimeUtc property: The time to close the request in UTC.int
number()
Get the number property: The number property.void
validate()
Validates the instance.withAllowedSourceAddressPrefix
(String allowedSourceAddressPrefix) Set the allowedSourceAddressPrefix property: Source of the allowed traffic.withEndTimeUtc
(OffsetDateTime endTimeUtc) Set the endTimeUtc property: The time to close the request in UTC.withNumber
(int number) Set the number property: The number property.
-
Constructor Details
-
JitNetworkAccessPolicyInitiatePort
public JitNetworkAccessPolicyInitiatePort()
-
-
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 JitNetworkAccessPolicyInitiatePort object itself.
-
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.
-
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.
-
endTimeUtc
Get the endTimeUtc property: The time to close the request in UTC.- Returns:
- the endTimeUtc value.
-
withEndTimeUtc
Set the endTimeUtc property: The time to close the request in UTC.- Parameters:
endTimeUtc
- the endTimeUtc value to set.- Returns:
- the JitNetworkAccessPolicyInitiatePort object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-