JitNetworkAccessPolicyInitiatePort Class
- java.
lang. Object - com.
azure. resourcemanager. security. models. JitNetworkAccessPolicyInitiatePort
- com.
Implements
public final class JitNetworkAccessPolicyInitiatePort
implements JsonSerializable<JitNetworkAccessPolicyInitiatePort>
The JitNetworkAccessPolicyInitiatePort model.
Constructor Summary
| Constructor | Description |
|---|---|
| JitNetworkAccessPolicyInitiatePort() |
Creates an instance of Jit |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
allowedSourceAddressPrefix()
Get the allowed |
|
Offset |
endTimeUtc()
Get the end |
|
static
Jit |
fromJson(JsonReader jsonReader)
Reads an instance of Jit |
| int |
number()
Get the number property: The number property. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Jit |
withAllowedSourceAddressPrefix(String allowedSourceAddressPrefix)
Set the allowed |
|
Jit |
withEndTimeUtc(OffsetDateTime endTimeUtc)
Set the end |
|
Jit |
withNumber(int number)
Set the number property: The number property. |
Methods inherited from java.lang.Object
Constructor Details
JitNetworkAccessPolicyInitiatePort
public JitNetworkAccessPolicyInitiatePort()
Creates an instance of JitNetworkAccessPolicyInitiatePort class.
Method Details
allowedSourceAddressPrefix
public String 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:
endTimeUtc
public OffsetDateTime endTimeUtc()
Get the endTimeUtc property: The time to close the request in UTC.
Returns:
fromJson
public static JitNetworkAccessPolicyInitiatePort fromJson(JsonReader jsonReader)
Reads an instance of JitNetworkAccessPolicyInitiatePort from the JsonReader.
Parameters:
Returns:
Throws:
number
public int number()
Get the number property: The number property.
Returns:
toJson
validate
public void validate()
Validates the instance.
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:
Returns:
withEndTimeUtc
public JitNetworkAccessPolicyInitiatePort withEndTimeUtc(OffsetDateTime endTimeUtc)
Set the endTimeUtc property: The time to close the request in UTC.
Parameters:
Returns:
withNumber
public JitNetworkAccessPolicyInitiatePort withNumber(int number)
Set the number property: The number property.
Parameters:
Returns: