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 Details

    • ServiceEndpointPropertiesFormat

      public ServiceEndpointPropertiesFormat()
      Creates an instance of ServiceEndpointPropertiesFormat class.
  • Method Details

    • service

      public String service()
      Get the service property: The type of the endpoint service.
      Returns:
      the service value.
    • withService

      public ServiceEndpointPropertiesFormat withService(String service)
      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

      public List<String> locations()
      Get the locations property: A list of locations.
      Returns:
      the locations value.
    • withLocations

      public ServiceEndpointPropertiesFormat withLocations(List<String> locations)
      Set the locations property: A list of locations.
      Parameters:
      locations - the locations value to set.
      Returns:
      the ServiceEndpointPropertiesFormat object itself.
    • provisioningState

      public ProvisioningState 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.