Class LoadBalancerInner

java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.network.fluent.models.LoadBalancerInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>

public final class LoadBalancerInner extends com.azure.core.management.Resource
LoadBalancer resource.
  • Constructor Details

    • LoadBalancerInner

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

    • extendedLocation

      public ExtendedLocation extendedLocation()
      Get the extendedLocation property: The extended location of the load balancer.
      Returns:
      the extendedLocation value.
    • withExtendedLocation

      public LoadBalancerInner withExtendedLocation(ExtendedLocation extendedLocation)
      Set the extendedLocation property: The extended location of the load balancer.
      Parameters:
      extendedLocation - the extendedLocation value to set.
      Returns:
      the LoadBalancerInner object itself.
    • sku

      public LoadBalancerSku sku()
      Get the sku property: The load balancer SKU.
      Returns:
      the sku value.
    • withSku

      public LoadBalancerInner withSku(LoadBalancerSku sku)
      Set the sku property: The load balancer SKU.
      Parameters:
      sku - the sku value to set.
      Returns:
      the LoadBalancerInner object itself.
    • etag

      public String etag()
      Get the etag property: A unique read-only string that changes whenever the resource is updated.
      Returns:
      the etag value.
    • id

      public String id()
      Get the id property: Resource ID.
      Overrides:
      id in class com.azure.core.management.ProxyResource
      Returns:
      the id value.
    • withId

      public LoadBalancerInner withId(String id)
      Set the id property: Resource ID.
      Parameters:
      id - the id value to set.
      Returns:
      the LoadBalancerInner object itself.
    • type

      public String type()
      Get the type property: The type of the resource.
      Overrides:
      type in class com.azure.core.management.ProxyResource
      Returns:
      the type value.
    • name

      public String name()
      Get the name property: The name of the resource.
      Overrides:
      name in class com.azure.core.management.ProxyResource
      Returns:
      the name value.
    • withLocation

      public LoadBalancerInner withLocation(String location)
      Overrides:
      withLocation in class com.azure.core.management.Resource
    • withTags

      public LoadBalancerInner withTags(Map<String,String> tags)
      Overrides:
      withTags in class com.azure.core.management.Resource
    • frontendIpConfigurations

      public List<FrontendIpConfigurationInner> frontendIpConfigurations()
      Get the frontendIpConfigurations property: Object representing the frontend IPs to be used for the load balancer.
      Returns:
      the frontendIpConfigurations value.
    • withFrontendIpConfigurations

      public LoadBalancerInner withFrontendIpConfigurations(List<FrontendIpConfigurationInner> frontendIpConfigurations)
      Set the frontendIpConfigurations property: Object representing the frontend IPs to be used for the load balancer.
      Parameters:
      frontendIpConfigurations - the frontendIpConfigurations value to set.
      Returns:
      the LoadBalancerInner object itself.
    • backendAddressPools

      public List<BackendAddressPoolInner> backendAddressPools()
      Get the backendAddressPools property: Collection of backend address pools used by a load balancer.
      Returns:
      the backendAddressPools value.
    • withBackendAddressPools

      public LoadBalancerInner withBackendAddressPools(List<BackendAddressPoolInner> backendAddressPools)
      Set the backendAddressPools property: Collection of backend address pools used by a load balancer.
      Parameters:
      backendAddressPools - the backendAddressPools value to set.
      Returns:
      the LoadBalancerInner object itself.
    • loadBalancingRules

      public List<LoadBalancingRuleInner> loadBalancingRules()
      Get the loadBalancingRules property: Object collection representing the load balancing rules Gets the provisioning.
      Returns:
      the loadBalancingRules value.
    • withLoadBalancingRules

      public LoadBalancerInner withLoadBalancingRules(List<LoadBalancingRuleInner> loadBalancingRules)
      Set the loadBalancingRules property: Object collection representing the load balancing rules Gets the provisioning.
      Parameters:
      loadBalancingRules - the loadBalancingRules value to set.
      Returns:
      the LoadBalancerInner object itself.
    • probes

      public List<ProbeInner> probes()
      Get the probes property: Collection of probe objects used in the load balancer.
      Returns:
      the probes value.
    • withProbes

      public LoadBalancerInner withProbes(List<ProbeInner> probes)
      Set the probes property: Collection of probe objects used in the load balancer.
      Parameters:
      probes - the probes value to set.
      Returns:
      the LoadBalancerInner object itself.
    • inboundNatRules

      public List<InboundNatRuleInner> inboundNatRules()
      Get the inboundNatRules property: Collection of inbound NAT Rules used by a load balancer. Defining inbound NAT rules on your load balancer is mutually exclusive with defining an inbound NAT pool. Inbound NAT pools are referenced from virtual machine scale sets. NICs that are associated with individual virtual machines cannot reference an Inbound NAT pool. They have to reference individual inbound NAT rules.
      Returns:
      the inboundNatRules value.
    • withInboundNatRules

      public LoadBalancerInner withInboundNatRules(List<InboundNatRuleInner> inboundNatRules)
      Set the inboundNatRules property: Collection of inbound NAT Rules used by a load balancer. Defining inbound NAT rules on your load balancer is mutually exclusive with defining an inbound NAT pool. Inbound NAT pools are referenced from virtual machine scale sets. NICs that are associated with individual virtual machines cannot reference an Inbound NAT pool. They have to reference individual inbound NAT rules.
      Parameters:
      inboundNatRules - the inboundNatRules value to set.
      Returns:
      the LoadBalancerInner object itself.
    • inboundNatPools

      public List<InboundNatPool> inboundNatPools()
      Get the inboundNatPools property: Defines an external port range for inbound NAT to a single backend port on NICs associated with a load balancer. Inbound NAT rules are created automatically for each NIC associated with the Load Balancer using an external port from this range. Defining an Inbound NAT pool on your Load Balancer is mutually exclusive with defining inbound NAT rules. Inbound NAT pools are referenced from virtual machine scale sets. NICs that are associated with individual virtual machines cannot reference an inbound NAT pool. They have to reference individual inbound NAT rules.
      Returns:
      the inboundNatPools value.
    • withInboundNatPools

      public LoadBalancerInner withInboundNatPools(List<InboundNatPool> inboundNatPools)
      Set the inboundNatPools property: Defines an external port range for inbound NAT to a single backend port on NICs associated with a load balancer. Inbound NAT rules are created automatically for each NIC associated with the Load Balancer using an external port from this range. Defining an Inbound NAT pool on your Load Balancer is mutually exclusive with defining inbound NAT rules. Inbound NAT pools are referenced from virtual machine scale sets. NICs that are associated with individual virtual machines cannot reference an inbound NAT pool. They have to reference individual inbound NAT rules.
      Parameters:
      inboundNatPools - the inboundNatPools value to set.
      Returns:
      the LoadBalancerInner object itself.
    • outboundRules

      public List<OutboundRuleInner> outboundRules()
      Get the outboundRules property: The outbound rules.
      Returns:
      the outboundRules value.
    • withOutboundRules

      public LoadBalancerInner withOutboundRules(List<OutboundRuleInner> outboundRules)
      Set the outboundRules property: The outbound rules.
      Parameters:
      outboundRules - the outboundRules value to set.
      Returns:
      the LoadBalancerInner object itself.
    • resourceGuid

      public String resourceGuid()
      Get the resourceGuid property: The resource GUID property of the load balancer resource.
      Returns:
      the resourceGuid value.
    • provisioningState

      public ProvisioningState provisioningState()
      Get the provisioningState property: The provisioning state of the load balancer resource.
      Returns:
      the provisioningState value.
    • 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<com.azure.core.management.ProxyResource>
      Overrides:
      toJson in class com.azure.core.management.Resource
      Throws:
      IOException
    • fromJson

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