Class ServiceEndpointPolicyDefinitionInner
- java.lang.Object
-
- com.azure.core.management.SubResource
-
- com.azure.resourcemanager.network.fluent.models.ServiceEndpointPolicyDefinitionInner
-
public final class ServiceEndpointPolicyDefinitionInner extends com.azure.core.management.SubResourceService Endpoint policy definitions.
-
-
Constructor Summary
Constructors Constructor Description ServiceEndpointPolicyDefinitionInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdescription()Get the description property: A description for this rule.Stringetag()Get the etag property: A unique read-only string that changes whenever the resource is updated.Stringname()Get the name property: The name of the resource that is unique within a resource group.ProvisioningStateprovisioningState()Get the provisioningState property: The provisioning state of the service endpoint policy definition resource.Stringservice()Get the service property: Service endpoint name.List<String>serviceResources()Get the serviceResources property: A list of service resources.Stringtype()Get the type property: The type of the resource.voidvalidate()Validates the instance.ServiceEndpointPolicyDefinitionInnerwithDescription(String description)Set the description property: A description for this rule.ServiceEndpointPolicyDefinitionInnerwithId(String id)ServiceEndpointPolicyDefinitionInnerwithName(String name)Set the name property: The name of the resource that is unique within a resource group.ServiceEndpointPolicyDefinitionInnerwithService(String service)Set the service property: Service endpoint name.ServiceEndpointPolicyDefinitionInnerwithServiceResources(List<String> serviceResources)Set the serviceResources property: A list of service resources.ServiceEndpointPolicyDefinitionInnerwithType(String type)Set the type property: The type of the resource.
-
-
-
Method Detail
-
name
public String 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
public ServiceEndpointPolicyDefinitionInner withName(String name)
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
public String etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated.- Returns:
- the etag value.
-
type
public String type()
Get the type property: The type of the resource.- Returns:
- the type value.
-
withType
public ServiceEndpointPolicyDefinitionInner withType(String type)
Set the type property: The type of the resource.- Parameters:
type- the type value to set.- Returns:
- the ServiceEndpointPolicyDefinitionInner object itself.
-
withId
public ServiceEndpointPolicyDefinitionInner withId(String id)
- Overrides:
withIdin classcom.azure.core.management.SubResource
-
description
public String description()
Get the description property: A description for this rule. Restricted to 140 chars.- Returns:
- the description value.
-
withDescription
public ServiceEndpointPolicyDefinitionInner 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 ServiceEndpointPolicyDefinitionInner object itself.
-
service
public String service()
Get the service property: Service endpoint name.- Returns:
- the service value.
-
withService
public ServiceEndpointPolicyDefinitionInner withService(String service)
Set the service property: Service endpoint name.- Parameters:
service- the service value to set.- Returns:
- the ServiceEndpointPolicyDefinitionInner object itself.
-
serviceResources
public List<String> serviceResources()
Get the serviceResources property: A list of service resources.- Returns:
- the serviceResources value.
-
withServiceResources
public ServiceEndpointPolicyDefinitionInner withServiceResources(List<String> serviceResources)
Set the serviceResources property: A list of service resources.- Parameters:
serviceResources- the serviceResources value to set.- Returns:
- the ServiceEndpointPolicyDefinitionInner 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.
-
-