Aracılığıyla paylaş


RoleSinkInfo Class

  • java.lang.Object
    • com.azure.resourcemanager.databoxedge.models.RoleSinkInfo

Implements

public final class RoleSinkInfo
implements JsonSerializable<RoleSinkInfo>

Compute role against which events will be raised.

Constructor Summary

Constructor Description
RoleSinkInfo()

Creates an instance of RoleSinkInfo class.

Method Summary

Modifier and Type Method and Description
static RoleSinkInfo fromJson(JsonReader jsonReader)

Reads an instance of RoleSinkInfo from the JsonReader.

String roleId()

Get the roleId property: Compute role ID.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RoleSinkInfo withRoleId(String roleId)

Set the roleId property: Compute role ID.

Methods inherited from java.lang.Object

Constructor Details

RoleSinkInfo

public RoleSinkInfo()

Creates an instance of RoleSinkInfo class.

Method Details

fromJson

public static RoleSinkInfo fromJson(JsonReader jsonReader)

Reads an instance of RoleSinkInfo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of RoleSinkInfo 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.

roleId

public String roleId()

Get the roleId property: Compute role ID.

Returns:

the roleId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withRoleId

public RoleSinkInfo withRoleId(String roleId)

Set the roleId property: Compute role ID.

Parameters:

roleId - the roleId value to set.

Returns:

the RoleSinkInfo object itself.

Applies to