Class ServiceGatewayServiceInner

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

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

    • ServiceGatewayServiceInner

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

    • name

      public String name()
      Get the name property: Name of the service.
      Returns:
      the name value.
    • withName

      public ServiceGatewayServiceInner withName(String name)
      Set the name property: Name of the service.
      Parameters:
      name - the name value to set.
      Returns:
      the ServiceGatewayServiceInner object itself.
    • serviceType

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

      public ServiceGatewayServiceInner withServiceType(ServiceType serviceType)
      Set the serviceType property: Name of the service.
      Parameters:
      serviceType - the serviceType value to set.
      Returns:
      the ServiceGatewayServiceInner 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 ServiceGatewayServiceInner 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 ServiceGatewayServiceInner 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 ServiceGatewayServiceInner 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 ServiceGatewayServiceInner object itself.
    • publicNatGatewayId

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

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

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