JitNetworkAccessRequestPort Class
- java.
lang. Object - com.
azure. resourcemanager. security. models. JitNetworkAccessRequestPort
- com.
Implements
public final class JitNetworkAccessRequestPort
implements JsonSerializable<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 |
|
static
Jit |
fromJson(JsonReader jsonReader)
Reads an instance of Jit |
| 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 |
|
Json |
toJson(JsonWriter jsonWriter) |
| 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<String> allowedSourceAddressPrefixes()
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:
fromJson
public static JitNetworkAccessRequestPort fromJson(JsonReader jsonReader)
Reads an instance of JitNetworkAccessRequestPort from the JsonReader.
Parameters:
Returns:
Throws:
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:
toJson
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<String> allowedSourceAddressPrefixes)
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: