JobAgentIdentity Class

  • java.lang.Object
    • com.azure.resourcemanager.sql.models.JobAgentIdentity

Implements

public final class JobAgentIdentity
implements JsonSerializable<JobAgentIdentity>

Azure Active Directory identity configuration for a resource.

Constructor Summary

Constructor Description
JobAgentIdentity()

Creates an instance of JobAgentIdentity class.

Method Summary

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

Reads an instance of JobAgentIdentity from the JsonReader.

UUID tenantId()

Get the tenantId property: The job agent identity tenant id.

JsonWriter toJson(JsonWriter jsonWriter)
JobAgentIdentityType type()

Get the type property: The job agent identity type.

Map<String,JobAgentUserAssignedIdentity> userAssignedIdentities()

Get the userAssignedIdentities property: The resource ids of the user assigned identities to use.

void validate()

Validates the instance.

JobAgentIdentity withTenantId(UUID tenantId)

Set the tenantId property: The job agent identity tenant id.

JobAgentIdentity withType(JobAgentIdentityType type)

Set the type property: The job agent identity type.

JobAgentIdentity withUserAssignedIdentities(Map<String,JobAgentUserAssignedIdentity> userAssignedIdentities)

Set the userAssignedIdentities property: The resource ids of the user assigned identities to use.

Methods inherited from java.lang.Object

Constructor Details

JobAgentIdentity

public JobAgentIdentity()

Creates an instance of JobAgentIdentity class.

Method Details

fromJson

public static JobAgentIdentity fromJson(JsonReader jsonReader)

Reads an instance of JobAgentIdentity from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

tenantId

public UUID tenantId()

Get the tenantId property: The job agent identity tenant id.

Returns:

the tenantId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public JobAgentIdentityType type()

Get the type property: The job agent identity type.

Returns:

the type value.

userAssignedIdentities

public Map<String,JobAgentUserAssignedIdentity> userAssignedIdentities()

Get the userAssignedIdentities property: The resource ids of the user assigned identities to use.

Returns:

the userAssignedIdentities value.

validate

public void validate()

Validates the instance.

withTenantId

public JobAgentIdentity withTenantId(UUID tenantId)

Set the tenantId property: The job agent identity tenant id.

Parameters:

tenantId - the tenantId value to set.

Returns:

the JobAgentIdentity object itself.

withType

public JobAgentIdentity withType(JobAgentIdentityType type)

Set the type property: The job agent identity type.

Parameters:

type - the type value to set.

Returns:

the JobAgentIdentity object itself.

withUserAssignedIdentities

public JobAgentIdentity withUserAssignedIdentities(Map<String,JobAgentUserAssignedIdentity> userAssignedIdentities)

Set the userAssignedIdentities property: The resource ids of the user assigned identities to use.

Parameters:

userAssignedIdentities - the userAssignedIdentities value to set.

Returns:

the JobAgentIdentity object itself.

Applies to