ServiceEndpointPolicyDefinitionInner Class
- java.
lang. Object - com.
azure. core. management. SubResource - com.
azure. resourcemanager. network. fluent. models. ServiceEndpointPolicyDefinitionInner
- com.
- com.
public final class ServiceEndpointPolicyDefinitionInner
extends SubResource
Service Endpoint policy definitions.
Constructor Summary
Constructor | Description |
---|---|
ServiceEndpointPolicyDefinitionInner() |
Creates an instance of Service |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
description()
Get the description property: A description for this rule. |
String |
etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated. |
static
Service |
fromJson(JsonReader jsonReader)
Reads an instance of Service |
String |
name()
Get the name property: The name of the resource that is unique within a resource group. |
Provisioning |
provisioningState()
Get the provisioning |
String |
service()
Get the service property: Service endpoint name. |
List<String> |
serviceResources()
Get the service |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Service |
withDescription(String description)
Set the description property: A description for this rule. |
Service |
withId(String id) |
Service |
withName(String name)
Set the name property: The name of the resource that is unique within a resource group. |
Service |
withService(String service)
Set the service property: Service endpoint name. |
Service |
withServiceResources(List<String> serviceResources)
Set the service |
Service |
withType(String type)
Set the type property: The type of the resource. |
Methods inherited from SubResource
Methods inherited from java.lang.Object
Constructor Details
ServiceEndpointPolicyDefinitionInner
public ServiceEndpointPolicyDefinitionInner()
Creates an instance of ServiceEndpointPolicyDefinitionInner class.
Method Details
description
public String description()
Get the description property: A description for this rule. Restricted to 140 chars.
Returns:
etag
public String etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated.
Returns:
fromJson
public static ServiceEndpointPolicyDefinitionInner fromJson(JsonReader jsonReader)
Reads an instance of ServiceEndpointPolicyDefinitionInner from the JsonReader.
Parameters:
Returns:
Throws:
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:
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: The provisioning state of the service endpoint policy definition resource.
Returns:
service
public String service()
Get the service property: Service endpoint name.
Returns:
serviceResources
public List
Get the serviceResources property: A list of service resources.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ServiceEndpointPolicyDefinitionInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Returns:
validate
public void validate()
Validates the instance.
withDescription
public ServiceEndpointPolicyDefinitionInner withDescription(String description)
Set the description property: A description for this rule. Restricted to 140 chars.
Parameters:
Returns:
withId
public ServiceEndpointPolicyDefinitionInner withId(String id)
Overrides:
ServiceEndpointPolicyDefinitionInner.withId(String id)Parameters:
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:
Returns:
withService
public ServiceEndpointPolicyDefinitionInner withService(String service)
Set the service property: Service endpoint name.
Parameters:
Returns:
withServiceResources
public ServiceEndpointPolicyDefinitionInner withServiceResources(List
Set the serviceResources property: A list of service resources.
Parameters:
Returns:
withType
public ServiceEndpointPolicyDefinitionInner withType(String type)
Set the type property: The type of the resource.
Parameters:
Returns:
Applies to
Azure SDK for Java