Class JitNetworkAccessRequestPort

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

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

    • JitNetworkAccessRequestPort

      public JitNetworkAccessRequestPort()
  • Method Details

    • number

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

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

      public List<String> allowedSourceAddressPrefixes()
      Get the allowedSourceAddressPrefixes property: Mutually exclusive with the "allowedSourceAddressPrefix" parameter.
      Returns:
      the allowedSourceAddressPrefixes value.
    • withAllowedSourceAddressPrefixes

      public JitNetworkAccessRequestPort withAllowedSourceAddressPrefixes(List<String> allowedSourceAddressPrefixes)
      Set the allowedSourceAddressPrefixes property: Mutually exclusive with the "allowedSourceAddressPrefix" parameter.
      Parameters:
      allowedSourceAddressPrefixes - the allowedSourceAddressPrefixes value to set.
      Returns:
      the JitNetworkAccessRequestPort object itself.
    • endTimeUtc

      public OffsetDateTime endTimeUtc()
      Get the endTimeUtc property: The date & time at which the request ends in UTC.
      Returns:
      the endTimeUtc value.
    • withEndTimeUtc

      public JitNetworkAccessRequestPort withEndTimeUtc(OffsetDateTime endTimeUtc)
      Set the endTimeUtc property: The date & time at which the request ends in UTC.
      Parameters:
      endTimeUtc - the endTimeUtc value to set.
      Returns:
      the JitNetworkAccessRequestPort object itself.
    • status

      public Status status()
      Get the status property: The status of the port.
      Returns:
      the status value.
    • withStatus

      public JitNetworkAccessRequestPort withStatus(Status status)
      Set the status property: The status of the port.
      Parameters:
      status - the status value to set.
      Returns:
      the JitNetworkAccessRequestPort object itself.
    • statusReason

      public StatusReason statusReason()
      Get the statusReason property: A description of why the `status` has its value.
      Returns:
      the statusReason value.
    • withStatusReason

      public JitNetworkAccessRequestPort withStatusReason(StatusReason statusReason)
      Set the statusReason property: A description of why the `status` has its value.
      Parameters:
      statusReason - the statusReason value to set.
      Returns:
      the JitNetworkAccessRequestPort object itself.
    • 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:
      the mappedPort value.
    • 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:
      mappedPort - the mappedPort value to set.
      Returns:
      the JitNetworkAccessRequestPort object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.