JitNetworkAccessRequestPort Class
- java.
lang. Object - com.
azure. resourcemanager. security. models. JitNetworkAccessRequestPort
- com.
public final class JitNetworkAccessRequestPort
The JitNetworkAccessRequestPort model.
Constructor Summary
Constructor | Description |
---|---|
JitNetworkAccessRequestPort() |
Creates an instance of Jit |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
allowedSourceAddressPrefix()
Get the allowed |
List<String> |
allowedSourceAddressPrefixes()
Get the allowed |
Offset |
endTimeUtc()
Get the end |
Integer |
mappedPort()
Get the mapped |
int |
number()
Get the number property: The number property. |
Status |
status()
Get the status property: The status of the port. |
Status |
statusReason()
Get the status |
void |
validate()
Validates the instance. |
Jit |
withAllowedSourceAddressPrefix(String allowedSourceAddressPrefix)
Set the allowed |
Jit |
withAllowedSourceAddressPrefixes(List<String> allowedSourceAddressPrefixes)
Set the allowed |
Jit |
withEndTimeUtc(OffsetDateTime endTimeUtc)
Set the end |
Jit |
withMappedPort(Integer mappedPort)
Set the mapped |
Jit |
withNumber(int number)
Set the number property: The number property. |
Jit |
withStatus(Status status)
Set the status property: The status of the port. |
Jit |
withStatusReason(StatusReason statusReason)
Set the status |
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:
allowedSourceAddressPrefixes
public List
Get the allowedSourceAddressPrefixes property: Mutually exclusive with the "allowedSourceAddressPrefix" parameter.
Returns:
endTimeUtc
public OffsetDateTime endTimeUtc()
Get the endTimeUtc property: The date & time at which the request ends in UTC.
Returns:
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:
number
public int number()
Get the number property: The number property.
Returns:
status
public Status status()
Get the status property: The status of the port.
Returns:
statusReason
public StatusReason statusReason()
Get the statusReason property: A description of why the `status` has its value.
Returns:
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:
Returns:
withAllowedSourceAddressPrefixes
public JitNetworkAccessRequestPort withAllowedSourceAddressPrefixes(List
Set the allowedSourceAddressPrefixes property: Mutually exclusive with the "allowedSourceAddressPrefix" parameter.
Parameters:
Returns:
withEndTimeUtc
public JitNetworkAccessRequestPort withEndTimeUtc(OffsetDateTime endTimeUtc)
Set the endTimeUtc property: The date & time at which the request ends in UTC.
Parameters:
Returns:
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:
Returns:
withNumber
public JitNetworkAccessRequestPort withNumber(int number)
Set the number property: The number property.
Parameters:
Returns:
withStatus
public JitNetworkAccessRequestPort withStatus(Status status)
Set the status property: The status of the port.
Parameters:
Returns:
withStatusReason
public JitNetworkAccessRequestPort withStatusReason(StatusReason statusReason)
Set the statusReason property: A description of why the `status` has its value.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for