Class ServiceEndpointPolicyDefinitionPropertiesFormat

java.lang.Object
com.azure.resourcemanager.network.fluent.models.ServiceEndpointPolicyDefinitionPropertiesFormat
All Implemented Interfaces:
com.azure.json.JsonSerializable<ServiceEndpointPolicyDefinitionPropertiesFormat>

public final class ServiceEndpointPolicyDefinitionPropertiesFormat extends Object implements com.azure.json.JsonSerializable<ServiceEndpointPolicyDefinitionPropertiesFormat>
Service Endpoint policy definition resource.
  • Constructor Details

    • ServiceEndpointPolicyDefinitionPropertiesFormat

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

    • description

      public String description()
      Get the description property: A description for this rule. Restricted to 140 chars.
      Returns:
      the description value.
    • withDescription

      public ServiceEndpointPolicyDefinitionPropertiesFormat withDescription(String description)
      Set the description property: A description for this rule. Restricted to 140 chars.
      Parameters:
      description - the description value to set.
      Returns:
      the ServiceEndpointPolicyDefinitionPropertiesFormat object itself.
    • service

      public String service()
      Get the service property: Service endpoint name.
      Returns:
      the service value.
    • withService

      Set the service property: Service endpoint name.
      Parameters:
      service - the service value to set.
      Returns:
      the ServiceEndpointPolicyDefinitionPropertiesFormat object itself.
    • serviceResources

      public List<String> serviceResources()
      Get the serviceResources property: A list of service resources.
      Returns:
      the serviceResources value.
    • withServiceResources

      public ServiceEndpointPolicyDefinitionPropertiesFormat withServiceResources(List<String> serviceResources)
      Set the serviceResources property: A list of service resources.
      Parameters:
      serviceResources - the serviceResources value to set.
      Returns:
      the ServiceEndpointPolicyDefinitionPropertiesFormat object itself.
    • provisioningState

      public ProvisioningState provisioningState()
      Get the provisioningState property: The provisioning state of the service endpoint policy definition 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<ServiceEndpointPolicyDefinitionPropertiesFormat>
      Throws:
      IOException
    • fromJson

      public static ServiceEndpointPolicyDefinitionPropertiesFormat fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ServiceEndpointPolicyDefinitionPropertiesFormat from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ServiceEndpointPolicyDefinitionPropertiesFormat 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 ServiceEndpointPolicyDefinitionPropertiesFormat.