Class ServiceGatewayServicePropertiesFormat

java.lang.Object
com.azure.resourcemanager.network.fluent.models.ServiceGatewayServicePropertiesFormat
All Implemented Interfaces:
com.azure.json.JsonSerializable<ServiceGatewayServicePropertiesFormat>

public final class ServiceGatewayServicePropertiesFormat extends Object implements com.azure.json.JsonSerializable<ServiceGatewayServicePropertiesFormat>
Properties of the service gateway service.
  • Constructor Details

    • ServiceGatewayServicePropertiesFormat

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

    • serviceType

      public ServiceType serviceType()
      Get the serviceType property: Name of the service.
      Returns:
      the serviceType value.
    • withServiceType

      public ServiceGatewayServicePropertiesFormat withServiceType(ServiceType serviceType)
      Set the serviceType property: Name of the service.
      Parameters:
      serviceType - the serviceType value to set.
      Returns:
      the ServiceGatewayServicePropertiesFormat object itself.
    • isDefault

      public Boolean isDefault()
      Get the isDefault property: Set to true to mark default service for inbound or outbound.
      Returns:
      the isDefault value.
    • withIsDefault

      public ServiceGatewayServicePropertiesFormat withIsDefault(Boolean isDefault)
      Set the isDefault property: Set to true to mark default service for inbound or outbound.
      Parameters:
      isDefault - the isDefault value to set.
      Returns:
      the ServiceGatewayServicePropertiesFormat object itself.
    • loadBalancerBackendPools

      public List<BackendAddressPoolInner> loadBalancerBackendPools()
      Get the loadBalancerBackendPools property: An array of load balancer backend address pools.
      Returns:
      the loadBalancerBackendPools value.
    • withLoadBalancerBackendPools

      public ServiceGatewayServicePropertiesFormat withLoadBalancerBackendPools(List<BackendAddressPoolInner> loadBalancerBackendPools)
      Set the loadBalancerBackendPools property: An array of load balancer backend address pools.
      Parameters:
      loadBalancerBackendPools - the loadBalancerBackendPools value to set.
      Returns:
      the ServiceGatewayServicePropertiesFormat object itself.
    • publicNatGatewayId

      public String publicNatGatewayId()
      Get the publicNatGatewayId property: Azure Resource Id of public natgateway.
      Returns:
      the publicNatGatewayId value.
    • withPublicNatGatewayId

      public ServiceGatewayServicePropertiesFormat withPublicNatGatewayId(String publicNatGatewayId)
      Set the publicNatGatewayId property: Azure Resource Id of public natgateway.
      Parameters:
      publicNatGatewayId - the publicNatGatewayId value to set.
      Returns:
      the ServiceGatewayServicePropertiesFormat 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<ServiceGatewayServicePropertiesFormat>
      Throws:
      IOException
    • fromJson

      public static ServiceGatewayServicePropertiesFormat fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ServiceGatewayServicePropertiesFormat from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ServiceGatewayServicePropertiesFormat 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 ServiceGatewayServicePropertiesFormat.