Share via


ServiceGatewayServiceInner Class

  • java.lang.Object
    • com.azure.resourcemanager.network.fluent.models.ServiceGatewayServiceInner

Implements

public final class ServiceGatewayServiceInner
implements JsonSerializable<ServiceGatewayServiceInner>

Properties of the service gateway service.

Constructor Summary

Constructor Description
ServiceGatewayServiceInner()

Creates an instance of ServiceGatewayServiceInner class.

Method Summary

Modifier and Type Method and Description
static ServiceGatewayServiceInner fromJson(JsonReader jsonReader)

Reads an instance of ServiceGatewayServiceInner from the JsonReader.

Boolean isDefault()

Get the isDefault property: Set to true to mark default service for inbound or outbound.

List<BackendAddressPoolInner> loadBalancerBackendPools()

Get the loadBalancerBackendPools property: An array of load balancer backend address pools.

String name()

Get the name property: Name of the service.

String publicNatGatewayId()

Get the publicNatGatewayId property: Azure Resource Id of public natgateway.

ServiceType serviceType()

Get the serviceType property: Name of the service.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ServiceGatewayServiceInner withIsDefault(Boolean isDefault)

Set the isDefault property: Set to true to mark default service for inbound or outbound.

ServiceGatewayServiceInner withLoadBalancerBackendPools(List<BackendAddressPoolInner> loadBalancerBackendPools)

Set the loadBalancerBackendPools property: An array of load balancer backend address pools.

ServiceGatewayServiceInner withName(String name)

Set the name property: Name of the service.

ServiceGatewayServiceInner withPublicNatGatewayId(String publicNatGatewayId)

Set the publicNatGatewayId property: Azure Resource Id of public natgateway.

ServiceGatewayServiceInner withServiceType(ServiceType serviceType)

Set the serviceType property: Name of the service.

Methods inherited from java.lang.Object

Constructor Details

ServiceGatewayServiceInner

public ServiceGatewayServiceInner()

Creates an instance of ServiceGatewayServiceInner class.

Method Details

fromJson

public static ServiceGatewayServiceInner fromJson(JsonReader jsonReader)

Reads an instance of ServiceGatewayServiceInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ServiceGatewayServiceInner 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 ServiceGatewayServiceInner.

isDefault

public Boolean isDefault()

Get the isDefault property: Set to true to mark default service for inbound or outbound.

Returns:

the isDefault value.

loadBalancerBackendPools

public List<BackendAddressPoolInner> loadBalancerBackendPools()

Get the loadBalancerBackendPools property: An array of load balancer backend address pools.

Returns:

the loadBalancerBackendPools value.

name

public String name()

Get the name property: Name of the service.

Returns:

the name value.

publicNatGatewayId

public String publicNatGatewayId()

Get the publicNatGatewayId property: Azure Resource Id of public natgateway.

Returns:

the publicNatGatewayId value.

serviceType

public ServiceType serviceType()

Get the serviceType property: Name of the service.

Returns:

the serviceType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withIsDefault

public ServiceGatewayServiceInner withIsDefault(Boolean isDefault)

Set the isDefault property: Set to true to mark default service for inbound or outbound.

Parameters:

isDefault - the isDefault value to set.

Returns:

the ServiceGatewayServiceInner object itself.

withLoadBalancerBackendPools

public ServiceGatewayServiceInner 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 ServiceGatewayServiceInner object itself.

withName

public ServiceGatewayServiceInner withName(String name)

Set the name property: Name of the service.

Parameters:

name - the name value to set.

Returns:

the ServiceGatewayServiceInner object itself.

withPublicNatGatewayId

public ServiceGatewayServiceInner withPublicNatGatewayId(String publicNatGatewayId)

Set the publicNatGatewayId property: Azure Resource Id of public natgateway.

Parameters:

publicNatGatewayId - the publicNatGatewayId value to set.

Returns:

the ServiceGatewayServiceInner object itself.

withServiceType

public ServiceGatewayServiceInner withServiceType(ServiceType serviceType)

Set the serviceType property: Name of the service.

Parameters:

serviceType - the serviceType value to set.

Returns:

the ServiceGatewayServiceInner object itself.

Applies to