Class ServiceEndpointPolicyDefinitionPropertiesFormat
- java.lang.Object
-
- com.azure.resourcemanager.network.fluent.models.ServiceEndpointPolicyDefinitionPropertiesFormat
-
public final class ServiceEndpointPolicyDefinitionPropertiesFormat extends Object
Service Endpoint policy definition resource.
-
-
Constructor Summary
Constructors Constructor Description ServiceEndpointPolicyDefinitionPropertiesFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdescription()Get the description property: A description for this rule.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.voidvalidate()Validates the instance.ServiceEndpointPolicyDefinitionPropertiesFormatwithDescription(String description)Set the description property: A description for this rule.ServiceEndpointPolicyDefinitionPropertiesFormatwithService(String service)Set the service property: Service endpoint name.ServiceEndpointPolicyDefinitionPropertiesFormatwithServiceResources(List<String> serviceResources)Set the serviceResources property: A list of service resources.
-
-
-
Method Detail
-
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
public ServiceEndpointPolicyDefinitionPropertiesFormat withService(String service)
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.
-
-