Class CloudServiceNetworkProfile
- java.lang.Object
-
- com.azure.resourcemanager.compute.models.CloudServiceNetworkProfile
-
public final class CloudServiceNetworkProfile extends Object
Network Profile for the cloud service.
-
-
Constructor Summary
Constructors Constructor Description CloudServiceNetworkProfile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<LoadBalancerConfiguration>loadBalancerConfigurations()Get the loadBalancerConfigurations property: List of Load balancer configurations.com.azure.core.management.SubResourceswappableCloudService()Get the swappableCloudService property: The id reference of the cloud service containing the target IP with which the subject cloud service can perform a swap.voidvalidate()Validates the instance.CloudServiceNetworkProfilewithLoadBalancerConfigurations(List<LoadBalancerConfiguration> loadBalancerConfigurations)Set the loadBalancerConfigurations property: List of Load balancer configurations.CloudServiceNetworkProfilewithSwappableCloudService(com.azure.core.management.SubResource swappableCloudService)Set the swappableCloudService property: The id reference of the cloud service containing the target IP with which the subject cloud service can perform a swap.
-
-
-
Method Detail
-
loadBalancerConfigurations
public List<LoadBalancerConfiguration> loadBalancerConfigurations()
Get the loadBalancerConfigurations property: List of Load balancer configurations. Cloud service can have up to two load balancer configurations, corresponding to a Public Load Balancer and an Internal Load Balancer.- Returns:
- the loadBalancerConfigurations value.
-
withLoadBalancerConfigurations
public CloudServiceNetworkProfile withLoadBalancerConfigurations(List<LoadBalancerConfiguration> loadBalancerConfigurations)
Set the loadBalancerConfigurations property: List of Load balancer configurations. Cloud service can have up to two load balancer configurations, corresponding to a Public Load Balancer and an Internal Load Balancer.- Parameters:
loadBalancerConfigurations- the loadBalancerConfigurations value to set.- Returns:
- the CloudServiceNetworkProfile object itself.
-
swappableCloudService
public com.azure.core.management.SubResource swappableCloudService()
Get the swappableCloudService property: The id reference of the cloud service containing the target IP with which the subject cloud service can perform a swap. This property cannot be updated once it is set. The swappable cloud service referred by this id must be present otherwise an error will be thrown.- Returns:
- the swappableCloudService value.
-
withSwappableCloudService
public CloudServiceNetworkProfile withSwappableCloudService(com.azure.core.management.SubResource swappableCloudService)
Set the swappableCloudService property: The id reference of the cloud service containing the target IP with which the subject cloud service can perform a swap. This property cannot be updated once it is set. The swappable cloud service referred by this id must be present otherwise an error will be thrown.- Parameters:
swappableCloudService- the swappableCloudService value to set.- Returns:
- the CloudServiceNetworkProfile object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-