DelegatedResource Class
- java.
lang. Object - com.
azure. resourcemanager. containerservice. models. DelegatedResource
- com.
Implements
public final class DelegatedResource
implements JsonSerializable<DelegatedResource>
Delegated resource properties - internal use only.
Constructor Summary
Constructor | Description |
---|---|
DelegatedResource() |
Creates an instance of Delegated |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Delegated |
fromJson(JsonReader jsonReader)
Reads an instance of Delegated |
String |
location()
Get the location property: The source resource location - internal use only. |
String |
referralResource()
Get the referral |
String |
resourceId()
Get the resource |
UUID |
tenantId()
Get the tenant |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Delegated |
withLocation(String location)
Set the location property: The source resource location - internal use only. |
Delegated |
withReferralResource(String referralResource)
Set the referral |
Delegated |
withResourceId(String resourceId)
Set the resource |
Delegated |
withTenantId(UUID tenantId)
Set the tenant |
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:
Returns:
Throws:
location
public String location()
Get the location property: The source resource location - internal use only.
Returns:
referralResource
public String referralResource()
Get the referralResource property: The delegation id of the referral delegation (optional) - internal use only.
Returns:
resourceId
public String resourceId()
Get the resourceId property: The ARM resource id of the delegated resource - internal use only.
Returns:
tenantId
public UUID tenantId()
Get the tenantId property: The tenant id of the delegated resource - internal use only.
Returns:
toJson
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:
Returns:
withReferralResource
public DelegatedResource withReferralResource(String referralResource)
Set the referralResource property: The delegation id of the referral delegation (optional) - internal use only.
Parameters:
Returns:
withResourceId
public DelegatedResource withResourceId(String resourceId)
Set the resourceId property: The ARM resource id of the delegated resource - internal use only.
Parameters:
Returns:
withTenantId
public DelegatedResource withTenantId(UUID tenantId)
Set the tenantId property: The tenant id of the delegated resource - internal use only.
Parameters:
Returns:
Applies to
Azure SDK for Java