Class ServiceEndpointPolicyDefinitionInner
java.lang.Object
com.azure.core.management.SubResource
com.azure.resourcemanager.network.fluent.models.ServiceEndpointPolicyDefinitionInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.SubResource>
public final class ServiceEndpointPolicyDefinitionInner
extends com.azure.core.management.SubResource
Service Endpoint policy definitions.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ServiceEndpointPolicyDefinitionInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the description property: A description for this rule.etag()Get the etag property: A unique read-only string that changes whenever the resource is updated.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ServiceEndpointPolicyDefinitionInner from the JsonReader.name()Get the name property: The name of the resource that is unique within a resource group.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) type()Get the type property: The type of the resource.voidvalidate()Validates the instance.withDescription(String description) Set the description property: A description for this rule.Set the name property: The name of the resource that is unique within a resource group.withService(String service) Set the service property: Service endpoint name.withServiceResources(List<String> serviceResources) Set the serviceResources property: A list of service resources.Set the type property: The type of the resource.Methods inherited from class com.azure.core.management.SubResource
idMethods 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
-
ServiceEndpointPolicyDefinitionInner
public ServiceEndpointPolicyDefinitionInner()Creates an instance of ServiceEndpointPolicyDefinitionInner class.
-
-
Method Details
-
name
Get the name property: The name of the resource that is unique within a resource group. This name can be used to access the resource.- Returns:
- the name value.
-
withName
Set the name property: The name of the resource that is unique within a resource group. This name can be used to access the resource.- Parameters:
name- the name value to set.- Returns:
- the ServiceEndpointPolicyDefinitionInner object itself.
-
etag
Get the etag property: A unique read-only string that changes whenever the resource is updated.- Returns:
- the etag value.
-
type
Get the type property: The type of the resource.- Returns:
- the type value.
-
withType
Set the type property: The type of the resource.- Parameters:
type- the type value to set.- Returns:
- the ServiceEndpointPolicyDefinitionInner object itself.
-
withId
- Overrides:
withIdin classcom.azure.core.management.SubResource
-
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 ServiceEndpointPolicyDefinitionInner 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 ServiceEndpointPolicyDefinitionInner object itself.
-
serviceResources
Get the serviceResources property: A list of service resources.- Returns:
- the serviceResources value.
-
withServiceResources
Set the serviceResources property: A list of service resources.- Parameters:
serviceResources- the serviceResources value to set.- Returns:
- the ServiceEndpointPolicyDefinitionInner 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<com.azure.core.management.SubResource>- Overrides:
toJsonin classcom.azure.core.management.SubResource- Throws:
IOException
-
fromJson
public static ServiceEndpointPolicyDefinitionInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ServiceEndpointPolicyDefinitionInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ServiceEndpointPolicyDefinitionInner 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 ServiceEndpointPolicyDefinitionInner.
-