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 Summary
ConstructorsConstructorDescriptionCreates an instance of ServiceEndpointPolicyDefinitionPropertiesFormat class. -
Method Summary
Modifier and TypeMethodDescriptionGet the description property: A description for this rule.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ServiceEndpointPolicyDefinitionPropertiesFormat from the JsonReader.Get the provisioningState property: The provisioning state of the service endpoint policy definition resource.service()Get the service property: Service endpoint name.Get the serviceResources property: A list of service resources.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDescription(String description) Set the description property: A description for this rule.withService(String service) Set the service property: Service endpoint name.withServiceResources(List<String> serviceResources) Set the serviceResources property: A list of service resources.Methods inherited from class java.lang.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
-
ServiceEndpointPolicyDefinitionPropertiesFormat
public ServiceEndpointPolicyDefinitionPropertiesFormat()Creates an instance of ServiceEndpointPolicyDefinitionPropertiesFormat class.
-
-
Method Details
-
description
Get the description property: A description for this rule. Restricted to 140 chars.- Returns:
- the description value.
-
withDescription
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
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
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
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
- Specified by:
toJsonin interfacecom.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.
-