Class LoadBalancerPropertiesFormat
java.lang.Object
com.azure.resourcemanager.network.fluent.models.LoadBalancerPropertiesFormat
- All Implemented Interfaces:
com.azure.json.JsonSerializable<LoadBalancerPropertiesFormat>
public final class LoadBalancerPropertiesFormat
extends Object
implements com.azure.json.JsonSerializable<LoadBalancerPropertiesFormat>
Properties of the load balancer.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of LoadBalancerPropertiesFormat class. -
Method Summary
Modifier and TypeMethodDescriptionGet the backendAddressPools property: Collection of backend address pools used by a load balancer.static LoadBalancerPropertiesFormatfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of LoadBalancerPropertiesFormat from the JsonReader.Get the frontendIpConfigurations property: Object representing the frontend IPs to be used for the load balancer.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.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.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withBackendAddressPools(List<BackendAddressPoolInner> backendAddressPools) Set the backendAddressPools property: Collection of backend address pools used by a load balancer.withFrontendIpConfigurations(List<FrontendIpConfigurationInner> frontendIpConfigurations) Set the frontendIpConfigurations property: Object representing the frontend IPs to be used for the load balancer.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.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.Methods 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
-
LoadBalancerPropertiesFormat
public LoadBalancerPropertiesFormat()Creates an instance of LoadBalancerPropertiesFormat class.
-
-
Method Details
-
frontendIpConfigurations
Get the frontendIpConfigurations property: Object representing the frontend IPs to be used for the load balancer.- Returns:
- the frontendIpConfigurations value.
-
withFrontendIpConfigurations
public LoadBalancerPropertiesFormat 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 LoadBalancerPropertiesFormat object itself.
-
backendAddressPools
Get the backendAddressPools property: Collection of backend address pools used by a load balancer.- Returns:
- the backendAddressPools value.
-
withBackendAddressPools
public LoadBalancerPropertiesFormat 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 LoadBalancerPropertiesFormat object itself.
-
loadBalancingRules
Get the loadBalancingRules property: Object collection representing the load balancing rules Gets the provisioning.- Returns:
- the loadBalancingRules value.
-
withLoadBalancingRules
public LoadBalancerPropertiesFormat 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 LoadBalancerPropertiesFormat 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 LoadBalancerPropertiesFormat 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 LoadBalancerPropertiesFormat 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 LoadBalancerPropertiesFormat 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 LoadBalancerPropertiesFormat 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<LoadBalancerPropertiesFormat>- Throws:
IOException
-
fromJson
public static LoadBalancerPropertiesFormat fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of LoadBalancerPropertiesFormat from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of LoadBalancerPropertiesFormat 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 LoadBalancerPropertiesFormat.
-