Class DelegatedResource

java.lang.Object
com.azure.resourcemanager.containerservice.models.DelegatedResource
All Implemented Interfaces:
com.azure.json.JsonSerializable<DelegatedResource>

public final class DelegatedResource extends Object implements com.azure.json.JsonSerializable<DelegatedResource>
Delegated resource properties - internal use only.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of DelegatedResource class.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of DelegatedResource from the JsonReader.
    Get the location property: The source resource location - internal use only.
    Get the referralResource property: The delegation id of the referral delegation (optional) - internal use only.
    Get the resourceId property: The ARM resource id of the delegated resource - internal use only.
    Get the tenantId property: The tenant id of the delegated resource - internal use only.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    withLocation(String location)
    Set the location property: The source resource location - internal use only.
    withReferralResource(String referralResource)
    Set the referralResource property: The delegation id of the referral delegation (optional) - internal use only.
    withResourceId(String resourceId)
    Set the resourceId property: The ARM resource id of the delegated resource - internal use only.
    withTenantId(UUID tenantId)
    Set the tenantId property: The tenant id of the delegated resource - internal use only.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • DelegatedResource

      public DelegatedResource()
      Creates an instance of DelegatedResource class.
  • Method Details

    • resourceId

      public String resourceId()
      Get the resourceId property: The ARM resource id of the delegated resource - internal use only.
      Returns:
      the resourceId value.
    • 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.
    • tenantId

      public UUID tenantId()
      Get the tenantId property: The tenant id of the delegated resource - internal use only.
      Returns:
      the tenantId value.
    • 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.
    • referralResource

      public String referralResource()
      Get the referralResource property: The delegation id of the referral delegation (optional) - internal use only.
      Returns:
      the referralResource value.
    • 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.
    • location

      public String location()
      Get the location property: The source resource location - internal use only.
      Returns:
      the location value.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<DelegatedResource>
      Throws:
      IOException
    • fromJson

      public static DelegatedResource fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.