Class CloudServiceNetworkProfile
java.lang.Object
com.azure.resourcemanager.compute.models.CloudServiceNetworkProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CloudServiceNetworkProfile>
public final class CloudServiceNetworkProfile
extends Object
implements com.azure.json.JsonSerializable<CloudServiceNetworkProfile>
Network Profile for the cloud service.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CloudServiceNetworkProfile class. -
Method Summary
Modifier and TypeMethodDescriptionstatic CloudServiceNetworkProfilefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CloudServiceNetworkProfile from the JsonReader.Get the loadBalancerConfigurations property: List of Load balancer configurations.slotType()Get the slotType property: Slot type for the cloud service.com.azure.core.management.SubResourceGet the swappableCloudService property: The id reference of the cloud service containing the target IP with which the subject cloud service can perform a swap.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withLoadBalancerConfigurations(List<LoadBalancerConfiguration> loadBalancerConfigurations) Set the loadBalancerConfigurations property: List of Load balancer configurations.withSlotType(CloudServiceSlotType slotType) Set the slotType property: Slot type for the cloud service.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.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
-
CloudServiceNetworkProfile
public CloudServiceNetworkProfile()Creates an instance of CloudServiceNetworkProfile class.
-
-
Method Details
-
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.
-
slotType
Get the slotType property: Slot type for the cloud service. Possible values are <br /><br />**Production**<br /><br />**Staging**<br /><br /> If not specified, the default value is Production.- Returns:
- the slotType value.
-
withSlotType
Set the slotType property: Slot type for the cloud service. Possible values are <br /><br />**Production**<br /><br />**Staging**<br /><br /> If not specified, the default value is Production.- Parameters:
slotType- the slotType 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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<CloudServiceNetworkProfile>- Throws:
IOException
-
fromJson
public static CloudServiceNetworkProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of CloudServiceNetworkProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of CloudServiceNetworkProfile 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 CloudServiceNetworkProfile.
-