次の方法で共有


ClientInner Class

public final class ClientInner
extends ProxyResource

The Client resource.

Constructor Summary

Constructor Description
ClientInner()

Creates an instance of ClientInner class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> attributes()

Get the attributes property: Attributes for the client.

String authenticationName()

Get the authenticationName property: The name presented by the client for authentication.

ClientCertificateAuthentication clientCertificateAuthentication()

Get the clientCertificateAuthentication property: The client certificate authentication information.

String description()

Get the description property: Description for the Client resource.

static ClientInner fromJson(JsonReader jsonReader)

Reads an instance of ClientInner 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.

ClientProvisioningState provisioningState()

Get the provisioningState property: Provisioning state of the Client resource.

ClientState state()

Get the state property: Indicates if the client is enabled or not.

SystemData systemData()

Get the systemData property: The system metadata relating to the Event Grid resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

ClientInner withAttributes(Map<String,Object> attributes)

Set the attributes property: Attributes for the client.

ClientInner withAuthenticationName(String authenticationName)

Set the authenticationName property: The name presented by the client for authentication.

ClientInner withClientCertificateAuthentication(ClientCertificateAuthentication clientCertificateAuthentication)

Set the clientCertificateAuthentication property: The client certificate authentication information.

ClientInner withDescription(String description)

Set the description property: Description for the Client resource.

ClientInner withState(ClientState state)

Set the state property: Indicates if the client is enabled or not.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

ClientInner

public ClientInner()

Creates an instance of ClientInner class.

Method Details

attributes

public Map<String,Object> attributes()

Get the attributes property: Attributes for the client. Supported values are int, bool, string, string[]. Example: "attributes": { "room": "345", "floor": 12, "deviceTypes": ["Fan", "Light"] }.

Returns:

the attributes value.

authenticationName

public String authenticationName()

Get the authenticationName property: The name presented by the client for authentication. The default value is the name of the resource.

Returns:

the authenticationName value.

clientCertificateAuthentication

public ClientCertificateAuthentication clientCertificateAuthentication()

Get the clientCertificateAuthentication property: The client certificate authentication information.

Returns:

the clientCertificateAuthentication value.

description

public String description()

Get the description property: Description for the Client resource.

Returns:

the description value.

fromJson

public static ClientInner fromJson(JsonReader jsonReader)

Reads an instance of ClientInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ClientInner 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:

ClientInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ClientInner.name()

Returns:

the name value.

provisioningState

public ClientProvisioningState provisioningState()

Get the provisioningState property: Provisioning state of the Client resource.

Returns:

the provisioningState value.

state

public ClientState state()

Get the state property: Indicates if the client is enabled or not. Default value is Enabled.

Returns:

the state value.

systemData

public SystemData systemData()

Get the systemData property: The system metadata relating to the Event Grid resource.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ClientInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ClientInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withAttributes

public ClientInner withAttributes(Map<String,Object> attributes)

Set the attributes property: Attributes for the client. Supported values are int, bool, string, string[]. Example: "attributes": { "room": "345", "floor": 12, "deviceTypes": ["Fan", "Light"] }.

Parameters:

attributes - the attributes value to set.

Returns:

the ClientInner object itself.

withAuthenticationName

public ClientInner withAuthenticationName(String authenticationName)

Set the authenticationName property: The name presented by the client for authentication. The default value is the name of the resource.

Parameters:

authenticationName - the authenticationName value to set.

Returns:

the ClientInner object itself.

withClientCertificateAuthentication

public ClientInner withClientCertificateAuthentication(ClientCertificateAuthentication clientCertificateAuthentication)

Set the clientCertificateAuthentication property: The client certificate authentication information.

Parameters:

clientCertificateAuthentication - the clientCertificateAuthentication value to set.

Returns:

the ClientInner object itself.

withDescription

public ClientInner withDescription(String description)

Set the description property: Description for the Client resource.

Parameters:

description - the description value to set.

Returns:

the ClientInner object itself.

withState

public ClientInner withState(ClientState state)

Set the state property: Indicates if the client is enabled or not. Default value is Enabled.

Parameters:

state - the state value to set.

Returns:

the ClientInner object itself.

Applies to