AssignedUser Class

  • java.lang.Object
    • com.azure.resourcemanager.machinelearning.models.AssignedUser

Implements

public final class AssignedUser
implements JsonSerializable<AssignedUser>

A user that can be assigned to a compute instance.

Constructor Summary

Constructor Description
AssignedUser()

Creates an instance of AssignedUser class.

Method Summary

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

Reads an instance of AssignedUser from the JsonReader.

String objectId()

Get the objectId property: User’s AAD Object Id.

String tenantId()

Get the tenantId property: User’s AAD Tenant Id.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AssignedUser withObjectId(String objectId)

Set the objectId property: User’s AAD Object Id.

AssignedUser withTenantId(String tenantId)

Set the tenantId property: User’s AAD Tenant Id.

Methods inherited from java.lang.Object

Constructor Details

AssignedUser

public AssignedUser()

Creates an instance of AssignedUser class.

Method Details

fromJson

public static AssignedUser fromJson(JsonReader jsonReader)

Reads an instance of AssignedUser from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

objectId

public String objectId()

Get the objectId property: User’s AAD Object Id.

Returns:

the objectId value.

tenantId

public String tenantId()

Get the tenantId property: User’s AAD Tenant Id.

Returns:

the tenantId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withObjectId

public AssignedUser withObjectId(String objectId)

Set the objectId property: User’s AAD Object Id.

Parameters:

objectId - the objectId value to set.

Returns:

the AssignedUser object itself.

withTenantId

public AssignedUser withTenantId(String tenantId)

Set the tenantId property: User’s AAD Tenant Id.

Parameters:

tenantId - the tenantId value to set.

Returns:

the AssignedUser object itself.

Applies to