ScopeConnectionInner Class

public final class ScopeConnectionInner
extends ChildResource

The Scope Connections resource.

Constructor Summary

Constructor Description
ScopeConnectionInner()

Creates an instance of ScopeConnectionInner class.

Method Summary

Modifier and Type Method and Description
ScopeConnectionState connectionState()

Get the connectionState property: Connection State.

String description()

Get the description property: A description of the scope connection.

String etag()

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

static ScopeConnectionInner fromJson(JsonReader jsonReader)

Reads an instance of ScopeConnectionInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String name()

Get the name property: The name of the resource.

String resourceId()

Get the resourceId property: Resource ID.

SystemData systemData()

Get the systemData property: The system metadata related to this resource.

String tenantId()

Get the tenantId property: Tenant ID.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

ScopeConnectionInner withDescription(String description)

Set the description property: A description of the scope connection.

ScopeConnectionInner withResourceId(String resourceId)

Set the resourceId property: Resource ID.

ScopeConnectionInner withTenantId(String tenantId)

Set the tenantId property: Tenant ID.

Methods inherited from ChildResource

Methods inherited from java.lang.Object

Constructor Details

ScopeConnectionInner

public ScopeConnectionInner()

Creates an instance of ScopeConnectionInner class.

Method Details

connectionState

public ScopeConnectionState connectionState()

Get the connectionState property: Connection State.

Returns:

the connectionState value.

description

public String description()

Get the description property: A description of the scope connection.

Returns:

the description value.

etag

public String etag()

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

Overrides:

ScopeConnectionInner.etag()

Returns:

the etag value.

fromJson

public static ScopeConnectionInner fromJson(JsonReader jsonReader)

Reads an instance of ScopeConnectionInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ScopeConnectionInner 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: Fully qualified resource Id for the resource.

Overrides:

ScopeConnectionInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ScopeConnectionInner.name()

Returns:

the name value.

resourceId

public String resourceId()

Get the resourceId property: Resource ID.

Returns:

the resourceId value.

systemData

public SystemData systemData()

Get the systemData property: The system metadata related to this resource.

Returns:

the systemData value.

tenantId

public String tenantId()

Get the tenantId property: Tenant ID.

Returns:

the tenantId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ScopeConnectionInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ScopeConnectionInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

ScopeConnectionInner.validate()

withDescription

public ScopeConnectionInner withDescription(String description)

Set the description property: A description of the scope connection.

Parameters:

description - the description value to set.

Returns:

the ScopeConnectionInner object itself.

withResourceId

public ScopeConnectionInner withResourceId(String resourceId)

Set the resourceId property: Resource ID.

Parameters:

resourceId - the resourceId value to set.

Returns:

the ScopeConnectionInner object itself.

withTenantId

public ScopeConnectionInner withTenantId(String tenantId)

Set the tenantId property: Tenant ID.

Parameters:

tenantId - the tenantId value to set.

Returns:

the ScopeConnectionInner object itself.

Applies to