CloudServiceNetworkProfile Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. CloudServiceNetworkProfile
- com.
Implements
public final class CloudServiceNetworkProfile
implements JsonSerializable<CloudServiceNetworkProfile>
Network Profile for the cloud service.
Constructor Summary
Constructor | Description |
---|---|
CloudServiceNetworkProfile() |
Creates an instance of Cloud |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Cloud |
fromJson(JsonReader jsonReader)
Reads an instance of Cloud |
List<Load |
loadBalancerConfigurations()
Get the load |
Cloud |
slotType()
Get the slot |
Sub |
swappableCloudService()
Get the swappable |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Cloud |
withLoadBalancerConfigurations(List<LoadBalancerConfiguration> loadBalancerConfigurations)
Set the load |
Cloud |
withSlotType(CloudServiceSlotType slotType)
Set the slot |
Cloud |
withSwappableCloudService(SubResource swappableCloudService)
Set the swappable |
Methods inherited from java.lang.Object
Constructor Details
CloudServiceNetworkProfile
public CloudServiceNetworkProfile()
Creates an instance of CloudServiceNetworkProfile class.
Method Details
fromJson
public static CloudServiceNetworkProfile fromJson(JsonReader jsonReader)
Reads an instance of CloudServiceNetworkProfile from the JsonReader.
Parameters:
Returns:
Throws:
loadBalancerConfigurations
public List
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:
slotType
public CloudServiceSlotType slotType()
Get the slotType property: Slot type for the cloud service. Possible values are
**Production**
**Staging**
If not specified, the default value is Production.
Returns:
swappableCloudService
public 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:
toJson
validate
public void validate()
Validates the instance.
withLoadBalancerConfigurations
public CloudServiceNetworkProfile withLoadBalancerConfigurations(List
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:
Returns:
withSlotType
public CloudServiceNetworkProfile withSlotType(CloudServiceSlotType slotType)
Set the slotType property: Slot type for the cloud service. Possible values are
**Production**
**Staging**
If not specified, the default value is Production.
Parameters:
Returns:
withSwappableCloudService
public CloudServiceNetworkProfile withSwappableCloudService(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:
Returns:
Applies to
Azure SDK for Java