DelegatedResource Class

  • java.lang.Object
    • com.azure.resourcemanager.containerservice.models.DelegatedResource

Implements

public final class DelegatedResource
implements JsonSerializable<DelegatedResource>

Delegated resource properties - internal use only.

Constructor Summary

Constructor Description
DelegatedResource()

Creates an instance of DelegatedResource class.

Method Summary

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

Reads an instance of DelegatedResource from the JsonReader.

String location()

Get the location property: The source resource location - internal use only.

String referralResource()

Get the referralResource property: The delegation id of the referral delegation (optional) - internal use only.

String resourceId()

Get the resourceId property: The ARM resource id of the delegated resource - internal use only.

UUID tenantId()

Get the tenantId property: The tenant id of the delegated resource - internal use only.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DelegatedResource withLocation(String location)

Set the location property: The source resource location - internal use only.

DelegatedResource withReferralResource(String referralResource)

Set the referralResource property: The delegation id of the referral delegation (optional) - internal use only.

DelegatedResource withResourceId(String resourceId)

Set the resourceId property: The ARM resource id of the delegated resource - internal use only.

DelegatedResource withTenantId(UUID tenantId)

Set the tenantId property: The tenant id of the delegated resource - internal use only.

Methods inherited from java.lang.Object

Constructor Details

DelegatedResource

public DelegatedResource()

Creates an instance of DelegatedResource class.

Method Details

fromJson

public static DelegatedResource fromJson(JsonReader jsonReader)

Reads an instance of DelegatedResource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DelegatedResource if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the DelegatedResource.

location

public String location()

Get the location property: The source resource location - internal use only.

Returns:

the location value.

referralResource

public String referralResource()

Get the referralResource property: The delegation id of the referral delegation (optional) - internal use only.

Returns:

the referralResource value.

resourceId

public String resourceId()

Get the resourceId property: The ARM resource id of the delegated resource - internal use only.

Returns:

the resourceId value.

tenantId

public UUID tenantId()

Get the tenantId property: The tenant id of the delegated resource - internal use only.

Returns:

the tenantId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withLocation

public DelegatedResource withLocation(String location)

Set the location property: The source resource location - internal use only.

Parameters:

location - the location value to set.

Returns:

the DelegatedResource object itself.

withReferralResource

public DelegatedResource withReferralResource(String referralResource)

Set the referralResource property: The delegation id of the referral delegation (optional) - internal use only.

Parameters:

referralResource - the referralResource value to set.

Returns:

the DelegatedResource object itself.

withResourceId

public DelegatedResource withResourceId(String resourceId)

Set the resourceId property: The ARM resource id of the delegated resource - internal use only.

Parameters:

resourceId - the resourceId value to set.

Returns:

the DelegatedResource object itself.

withTenantId

public DelegatedResource withTenantId(UUID tenantId)

Set the tenantId property: The tenant id of the delegated resource - internal use only.

Parameters:

tenantId - the tenantId value to set.

Returns:

the DelegatedResource object itself.

Applies to