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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the backendAddressPools property: Collection of backend address pools used by a load balancer.etag()Get the etag property: A unique read-only string that changes whenever the resource is updated.Get the extendedLocation property: The extended location of the load balancer.static LoadBalancerInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of LoadBalancerInner from the JsonReader.Get the frontendIpConfigurations property: Object representing the frontend IPs to be used for the load balancer.id()Get the id property: Resource ID.Get the inboundNatPools property: Defines an external port range for inbound NAT to a single backend port on NICs associated with a load balancer.Get the inboundNatRules property: Collection of inbound NAT Rules used by a load balancer.Get the loadBalancingRules property: Object collection representing the load balancing rules Gets the provisioning.name()Get the name property: The name of the resource.Get the outboundRules property: The outbound rules.probes()Get the probes property: Collection of probe objects used in the load balancer.Get the provisioningState property: The provisioning state of the load balancer resource.Get the resourceGuid property: The resource GUID property of the load balancer resource.sku()Get the sku property: The load balancer SKU.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.voidvalidate()Validates the instance.withBackendAddressPools(List<BackendAddressPoolInner> backendAddressPools) Set the backendAddressPools property: Collection of backend address pools used by a load balancer.withExtendedLocation(ExtendedLocation extendedLocation) Set the extendedLocation property: The extended location of the load balancer.withFrontendIpConfigurations(List<FrontendIpConfigurationInner> frontendIpConfigurations) Set the frontendIpConfigurations property: Object representing the frontend IPs to be used for the load balancer.Set the id property: Resource ID.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.withInboundNatRules(List<InboundNatRuleInner> inboundNatRules) Set the inboundNatRules property: Collection of inbound NAT Rules used by a load balancer.withLoadBalancingRules(List<LoadBalancingRuleInner> loadBalancingRules) Set the loadBalancingRules property: Object collection representing the load balancing rules Gets the provisioning.withLocation(String location) withOutboundRules(List<OutboundRuleInner> outboundRules) Set the outboundRules property: The outbound rules.withProbes(List<ProbeInner> probes) Set the probes property: Collection of probe objects used in the load balancer.withSku(LoadBalancerSku sku) Set the sku property: The load balancer SKU.Methods inherited from class com.azure.core.management.Resource
location, tagsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
LoadBalancerInner
public LoadBalancerInner()Creates an instance of LoadBalancerInner class.
-
-
Method Details
-
extendedLocation
Get the extendedLocation property: The extended location of the load balancer.- Returns:
- the extendedLocation value.
-
withExtendedLocation
Set the extendedLocation property: The extended location of the load balancer.- Parameters:
extendedLocation- the extendedLocation value to set.- Returns:
- the LoadBalancerInner object itself.
-
sku
Get the sku property: The load balancer SKU.- Returns:
- the sku value.
-
withSku
Set the sku property: The load balancer SKU.- Parameters:
sku- the sku value to set.- Returns:
- the LoadBalancerInner object itself.
-
etag
Get the etag property: A unique read-only string that changes whenever the resource is updated.- Returns:
- the etag value.
-
id
Get the id property: Resource ID.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
withId
Set the id property: Resource ID.- Parameters:
id- the id value to set.- Returns:
- the LoadBalancerInner object itself.
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
withLocation
- Overrides:
withLocationin classcom.azure.core.management.Resource
-
withTags
- Overrides:
withTagsin classcom.azure.core.management.Resource
-
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
Get the backendAddressPools property: Collection of backend address pools used by a load balancer.- Returns:
- the backendAddressPools value.
-
withBackendAddressPools
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
Get the loadBalancingRules property: Object collection representing the load balancing rules Gets the provisioning.- Returns:
- the loadBalancingRules value.
-
withLoadBalancingRules
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
Get the probes property: Collection of probe objects used in the load balancer.- Returns:
- the probes value.
-
withProbes
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
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
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
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
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
Get the outboundRules property: The outbound rules.- Returns:
- the outboundRules value.
-
withOutboundRules
Set the outboundRules property: The outbound rules.- Parameters:
outboundRules- the outboundRules value to set.- Returns:
- the LoadBalancerInner object itself.
-
resourceGuid
Get the resourceGuid property: The resource GUID property of the load balancer resource.- Returns:
- the resourceGuid value.
-
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.Resource- Throws:
IOException
-
fromJson
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.
-