Class JitNetworkAccessPolicyInitiatePort

java.lang.Object
com.azure.resourcemanager.security.models.JitNetworkAccessPolicyInitiatePort

public final class JitNetworkAccessPolicyInitiatePort extends Object
The JitNetworkAccessPolicyInitiatePort model.
  • Constructor Details

    • JitNetworkAccessPolicyInitiatePort

      public JitNetworkAccessPolicyInitiatePort()
  • Method Details

    • number

      public int number()
      Get the number property: The number property.
      Returns:
      the number value.
    • withNumber

      public JitNetworkAccessPolicyInitiatePort withNumber(int number)
      Set the number property: The number property.
      Parameters:
      number - the number value to set.
      Returns:
      the JitNetworkAccessPolicyInitiatePort object itself.
    • 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:
      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

      public OffsetDateTime endTimeUtc()
      Get the endTimeUtc property: The time to close the request in UTC.
      Returns:
      the endTimeUtc value.
    • withEndTimeUtc

      public JitNetworkAccessPolicyInitiatePort withEndTimeUtc(OffsetDateTime endTimeUtc)
      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.