ServiceEndpointPolicyDefinitionInner Class

public final class ServiceEndpointPolicyDefinitionInner
extends SubResourceModel

Service Endpoint policy definitions.

Constructor Summary

Constructor Description
ServiceEndpointPolicyDefinitionInner()

Creates an instance of ServiceEndpointPolicyDefinitionInner class.

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 ServiceEndpointPolicyDefinitionInner fromJson(JsonReader jsonReader)

Reads an instance of ServiceEndpointPolicyDefinitionInner from the JsonReader.

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the service endpoint policy definition resource.

String service()

Get the service property: Service endpoint name.

List<String> serviceResources()

Get the serviceResources property: A list of service resources.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Resource type.

void validate()

Validates the instance.

ServiceEndpointPolicyDefinitionInner withDescription(String description)

Set the description property: A description for this rule.

ServiceEndpointPolicyDefinitionInner withId(String id)
ServiceEndpointPolicyDefinitionInner withName(String name)

Set the name property: Name of the resource.

ServiceEndpointPolicyDefinitionInner withService(String service)

Set the service property: Service endpoint name.

ServiceEndpointPolicyDefinitionInner withServiceResources(List<String> serviceResources)

Set the serviceResources property: A list of service resources.

Methods inherited from SubResource

id

Methods inherited from SubResourceModel

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:

the description value.

etag

public String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

Returns:

the etag value.

fromJson

public static ServiceEndpointPolicyDefinitionInner fromJson(JsonReader jsonReader)

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.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the service endpoint policy definition resource.

Returns:

the provisioningState value.

service

public String service()

Get the service property: Service endpoint name.

Returns:

the service value.

serviceResources

public List<String> serviceResources()

Get the serviceResources property: A list of service resources.

Returns:

the serviceResources value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ServiceEndpointPolicyDefinitionInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Resource type.

Overrides:

ServiceEndpointPolicyDefinitionInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

ServiceEndpointPolicyDefinitionInner.validate()

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.

withId

public ServiceEndpointPolicyDefinitionInner withId(String id)

Overrides:

ServiceEndpointPolicyDefinitionInner.withId(String id)

Parameters:

id

withName

public ServiceEndpointPolicyDefinitionInner withName(String name)

Set the name property: Name of the resource.

Overrides:

ServiceEndpointPolicyDefinitionInner.withName(String name)

Parameters:

name

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.

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.

Applies to