JitNetworkAccessPortRule Class
- java.
lang. Object - com.
azure. resourcemanager. security. models. JitNetworkAccessPortRule
- com.
Implements
public final class JitNetworkAccessPortRule
implements JsonSerializable<JitNetworkAccessPortRule>
The JitNetworkAccessPortRule model.
Constructor Summary
| Constructor | Description |
|---|---|
| JitNetworkAccessPortRule() |
Creates an instance of Jit |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
allowedSourceAddressPrefix()
Get the allowed |
| List<String> |
allowedSourceAddressPrefixes()
Get the allowed |
|
static
Jit |
fromJson(JsonReader jsonReader)
Reads an instance of Jit |
| String |
maxRequestAccessDuration()
Get the max |
| int |
number()
Get the number property: The number property. |
| Protocol |
protocol()
Get the protocol property: The protocol property. |
|
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 |
withMaxRequestAccessDuration(String maxRequestAccessDuration)
Set the max |
|
Jit |
withNumber(int number)
Set the number property: The number property. |
|
Jit |
withProtocol(Protocol protocol)
Set the protocol property: The protocol property. |
Methods inherited from java.lang.Object
Constructor Details
JitNetworkAccessPortRule
public JitNetworkAccessPortRule()
Creates an instance of JitNetworkAccessPortRule 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:
fromJson
public static JitNetworkAccessPortRule fromJson(JsonReader jsonReader)
Reads an instance of JitNetworkAccessPortRule from the JsonReader.
Parameters:
Returns:
Throws:
maxRequestAccessDuration
public String maxRequestAccessDuration()
Get the maxRequestAccessDuration property: Maximum duration requests can be made for. In ISO 8601 duration format. Minimum 5 minutes, maximum 1 day.
Returns:
number
public int number()
Get the number property: The number property.
Returns:
protocol
public Protocol protocol()
Get the protocol property: The protocol property.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAllowedSourceAddressPrefix
public JitNetworkAccessPortRule 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 JitNetworkAccessPortRule withAllowedSourceAddressPrefixes(List<String> allowedSourceAddressPrefixes)
Set the allowedSourceAddressPrefixes property: Mutually exclusive with the "allowedSourceAddressPrefix" parameter.
Parameters:
Returns:
withMaxRequestAccessDuration
public JitNetworkAccessPortRule withMaxRequestAccessDuration(String maxRequestAccessDuration)
Set the maxRequestAccessDuration property: Maximum duration requests can be made for. In ISO 8601 duration format. Minimum 5 minutes, maximum 1 day.
Parameters:
Returns:
withNumber
public JitNetworkAccessPortRule withNumber(int number)
Set the number property: The number property.
Parameters:
Returns:
withProtocol
public JitNetworkAccessPortRule withProtocol(Protocol protocol)
Set the protocol property: The protocol property.
Parameters:
Returns: