ConnectionPolicyInner Class

public final class ConnectionPolicyInner
extends ProxyResource

ConnectionPolicy resource defined for VirtualHub.

Constructor Summary

Constructor Description
ConnectionPolicyInner()

Creates an instance of ConnectionPolicyInner class.

Method Summary

Modifier and Type Method and Description
String etag()

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

static ConnectionPolicyInner fromJson(JsonReader jsonReader)

Reads an instance of ConnectionPolicyInner from the JsonReader.

String id()

Get the id property: Resource ID.

String name()

Get the name property: The name of the resource.

ConnectionPolicyProperties properties()

Get the properties property: Properties of the ConnectionPolicy resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

ConnectionPolicyInner withId(String id)

Set the id property: Resource ID.

ConnectionPolicyInner withProperties(ConnectionPolicyProperties properties)

Set the properties property: Properties of the ConnectionPolicy resource.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

ConnectionPolicyInner

public ConnectionPolicyInner()

Creates an instance of ConnectionPolicyInner class.

Method Details

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

Reads an instance of ConnectionPolicyInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ConnectionPolicyInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Resource ID.

Overrides:

ConnectionPolicyInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ConnectionPolicyInner.name()

Returns:

the name value.

properties

public ConnectionPolicyProperties properties()

Get the properties property: Properties of the ConnectionPolicy resource.

Returns:

the properties value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ConnectionPolicyInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ConnectionPolicyInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withId

public ConnectionPolicyInner withId(String id)

Set the id property: Resource ID.

Parameters:

id - the id value to set.

Returns:

the ConnectionPolicyInner object itself.

withProperties

public ConnectionPolicyInner withProperties(ConnectionPolicyProperties properties)

Set the properties property: Properties of the ConnectionPolicy resource.

Parameters:

properties - the properties value to set.

Returns:

the ConnectionPolicyInner object itself.

Applies to