Class OutboundVnetRouting

java.lang.Object
com.azure.resourcemanager.appservice.models.OutboundVnetRouting
All Implemented Interfaces:
com.azure.json.JsonSerializable<OutboundVnetRouting>

public final class OutboundVnetRouting extends Object implements com.azure.json.JsonSerializable<OutboundVnetRouting>
Outbound traffic options over virtual network.
  • Constructor Details

    • OutboundVnetRouting

      public OutboundVnetRouting()
      Creates an instance of OutboundVnetRouting class.
  • Method Details

    • allTraffic

      public Boolean allTraffic()
      Get the allTraffic property: Enables all other routing options defined in OutboundVnetRouting if this setting is set to true.
      Returns:
      the allTraffic value.
    • withAllTraffic

      public OutboundVnetRouting withAllTraffic(Boolean allTraffic)
      Set the allTraffic property: Enables all other routing options defined in OutboundVnetRouting if this setting is set to true.
      Parameters:
      allTraffic - the allTraffic value to set.
      Returns:
      the OutboundVnetRouting object itself.
    • applicationTraffic

      public Boolean applicationTraffic()
      Get the applicationTraffic property: This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied. Previously called VnetRouteAllEnabled.
      Returns:
      the applicationTraffic value.
    • withApplicationTraffic

      public OutboundVnetRouting withApplicationTraffic(Boolean applicationTraffic)
      Set the applicationTraffic property: This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied. Previously called VnetRouteAllEnabled.
      Parameters:
      applicationTraffic - the applicationTraffic value to set.
      Returns:
      the OutboundVnetRouting object itself.
    • contentShareTraffic

      public Boolean contentShareTraffic()
      Get the contentShareTraffic property: Enables accessing content over virtual network. Previously called VnetContentShareEnabled.
      Returns:
      the contentShareTraffic value.
    • withContentShareTraffic

      public OutboundVnetRouting withContentShareTraffic(Boolean contentShareTraffic)
      Set the contentShareTraffic property: Enables accessing content over virtual network. Previously called VnetContentShareEnabled.
      Parameters:
      contentShareTraffic - the contentShareTraffic value to set.
      Returns:
      the OutboundVnetRouting object itself.
    • imagePullTraffic

      public Boolean imagePullTraffic()
      Get the imagePullTraffic property: Enables pulling image over Virtual Network. Previously called VnetImagePullEnabled.
      Returns:
      the imagePullTraffic value.
    • withImagePullTraffic

      public OutboundVnetRouting withImagePullTraffic(Boolean imagePullTraffic)
      Set the imagePullTraffic property: Enables pulling image over Virtual Network. Previously called VnetImagePullEnabled.
      Parameters:
      imagePullTraffic - the imagePullTraffic value to set.
      Returns:
      the OutboundVnetRouting object itself.
    • backupRestoreTraffic

      public Boolean backupRestoreTraffic()
      Get the backupRestoreTraffic property: Enables Backup and Restore operations over virtual network. Previously called VnetBackupRestoreEnabled.
      Returns:
      the backupRestoreTraffic value.
    • withBackupRestoreTraffic

      public OutboundVnetRouting withBackupRestoreTraffic(Boolean backupRestoreTraffic)
      Set the backupRestoreTraffic property: Enables Backup and Restore operations over virtual network. Previously called VnetBackupRestoreEnabled.
      Parameters:
      backupRestoreTraffic - the backupRestoreTraffic value to set.
      Returns:
      the OutboundVnetRouting object itself.
    • validate

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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<OutboundVnetRouting>
      Throws:
      IOException
    • fromJson

      public static OutboundVnetRouting fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of OutboundVnetRouting from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of OutboundVnetRouting if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the OutboundVnetRouting.