Class ServiceGatewayServicePropertiesFormat
java.lang.Object
com.azure.resourcemanager.network.fluent.models.ServiceGatewayServicePropertiesFormat
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ServiceGatewayServicePropertiesFormat>
public final class ServiceGatewayServicePropertiesFormat
extends Object
implements com.azure.json.JsonSerializable<ServiceGatewayServicePropertiesFormat>
Properties of the service gateway service.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ServiceGatewayServicePropertiesFormat class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ServiceGatewayServicePropertiesFormat from the JsonReader.Get the isDefault property: Set to true to mark default service for inbound or outbound.Get the loadBalancerBackendPools property: An array of load balancer backend address pools.Get the publicNatGatewayId property: Azure Resource Id of public natgateway.Get the serviceType property: Name of the service.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withIsDefault(Boolean isDefault) Set the isDefault property: Set to true to mark default service for inbound or outbound.withLoadBalancerBackendPools(List<BackendAddressPoolInner> loadBalancerBackendPools) Set the loadBalancerBackendPools property: An array of load balancer backend address pools.withPublicNatGatewayId(String publicNatGatewayId) Set the publicNatGatewayId property: Azure Resource Id of public natgateway.withServiceType(ServiceType serviceType) Set the serviceType property: Name of the service.Methods inherited from class 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
-
ServiceGatewayServicePropertiesFormat
public ServiceGatewayServicePropertiesFormat()Creates an instance of ServiceGatewayServicePropertiesFormat class.
-
-
Method Details
-
serviceType
Get the serviceType property: Name of the service.- Returns:
- the serviceType value.
-
withServiceType
Set the serviceType property: Name of the service.- Parameters:
serviceType- the serviceType value to set.- Returns:
- the ServiceGatewayServicePropertiesFormat object itself.
-
isDefault
Get the isDefault property: Set to true to mark default service for inbound or outbound.- Returns:
- the isDefault value.
-
withIsDefault
Set the isDefault property: Set to true to mark default service for inbound or outbound.- Parameters:
isDefault- the isDefault value to set.- Returns:
- the ServiceGatewayServicePropertiesFormat object itself.
-
loadBalancerBackendPools
Get the loadBalancerBackendPools property: An array of load balancer backend address pools.- Returns:
- the loadBalancerBackendPools value.
-
withLoadBalancerBackendPools
public ServiceGatewayServicePropertiesFormat withLoadBalancerBackendPools(List<BackendAddressPoolInner> loadBalancerBackendPools) Set the loadBalancerBackendPools property: An array of load balancer backend address pools.- Parameters:
loadBalancerBackendPools- the loadBalancerBackendPools value to set.- Returns:
- the ServiceGatewayServicePropertiesFormat object itself.
-
publicNatGatewayId
Get the publicNatGatewayId property: Azure Resource Id of public natgateway.- Returns:
- the publicNatGatewayId value.
-
withPublicNatGatewayId
Set the publicNatGatewayId property: Azure Resource Id of public natgateway.- Parameters:
publicNatGatewayId- the publicNatGatewayId value to set.- Returns:
- the ServiceGatewayServicePropertiesFormat 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<ServiceGatewayServicePropertiesFormat>- Throws:
IOException
-
fromJson
public static ServiceGatewayServicePropertiesFormat fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ServiceGatewayServicePropertiesFormat from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ServiceGatewayServicePropertiesFormat 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 ServiceGatewayServicePropertiesFormat.
-