Class ServiceEndpointPropertiesFormat
java.lang.Object
com.azure.resourcemanager.network.models.ServiceEndpointPropertiesFormat
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ServiceEndpointPropertiesFormat>
public final class ServiceEndpointPropertiesFormat
extends Object
implements com.azure.json.JsonSerializable<ServiceEndpointPropertiesFormat>
The service endpoint properties.
-
Constructor Summary
ConstructorDescriptionCreates an instance of ServiceEndpointPropertiesFormat class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ServiceEndpointPropertiesFormat from the JsonReader.Get the locations property: A list of locations.com.azure.core.management.SubResource
Get the networkIdentifier property: SubResource as network identifier.Get the provisioningState property: The provisioning state of the service endpoint resource.service()
Get the service property: The type of the endpoint service.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withLocations
(List<String> locations) Set the locations property: A list of locations.withNetworkIdentifier
(com.azure.core.management.SubResource networkIdentifier) Set the networkIdentifier property: SubResource as network identifier.withService
(String service) Set the service property: The type of the endpoint service.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ServiceEndpointPropertiesFormat
public ServiceEndpointPropertiesFormat()Creates an instance of ServiceEndpointPropertiesFormat class.
-
-
Method Details
-
service
Get the service property: The type of the endpoint service.- Returns:
- the service value.
-
withService
Set the service property: The type of the endpoint service.- Parameters:
service
- the service value to set.- Returns:
- the ServiceEndpointPropertiesFormat object itself.
-
networkIdentifier
public com.azure.core.management.SubResource networkIdentifier()Get the networkIdentifier property: SubResource as network identifier.- Returns:
- the networkIdentifier value.
-
withNetworkIdentifier
public ServiceEndpointPropertiesFormat withNetworkIdentifier(com.azure.core.management.SubResource networkIdentifier) Set the networkIdentifier property: SubResource as network identifier.- Parameters:
networkIdentifier
- the networkIdentifier value to set.- Returns:
- the ServiceEndpointPropertiesFormat object itself.
-
locations
Get the locations property: A list of locations.- Returns:
- the locations value.
-
withLocations
Set the locations property: A list of locations.- Parameters:
locations
- the locations value to set.- Returns:
- the ServiceEndpointPropertiesFormat object itself.
-
provisioningState
Get the provisioningState property: The provisioning state of the service endpoint resource.- Returns:
- the provisioningState value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<ServiceEndpointPropertiesFormat>
- Throws:
IOException
-
fromJson
public static ServiceEndpointPropertiesFormat fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ServiceEndpointPropertiesFormat from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ServiceEndpointPropertiesFormat 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 ServiceEndpointPropertiesFormat.
-