Class UploadServicePrincipal

java.lang.Object
com.azure.resourcemanager.azurearcdata.models.UploadServicePrincipal

public final class UploadServicePrincipal extends Object
Service principal for uploading billing, metrics and logs.
  • Constructor Details

    • UploadServicePrincipal

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

    • clientId

      public UUID clientId()
      Get the clientId property: Client ID of the service principal for uploading data.
      Returns:
      the clientId value.
    • withClientId

      public UploadServicePrincipal withClientId(UUID clientId)
      Set the clientId property: Client ID of the service principal for uploading data.
      Parameters:
      clientId - the clientId value to set.
      Returns:
      the UploadServicePrincipal object itself.
    • tenantId

      public UUID tenantId()
      Get the tenantId property: Tenant ID of the service principal.
      Returns:
      the tenantId value.
    • withTenantId

      public UploadServicePrincipal withTenantId(UUID tenantId)
      Set the tenantId property: Tenant ID of the service principal.
      Parameters:
      tenantId - the tenantId value to set.
      Returns:
      the UploadServicePrincipal object itself.
    • authority

      public String authority()
      Get the authority property: Authority for the service principal. Example: https://login.microsoftonline.com/.
      Returns:
      the authority value.
    • withAuthority

      public UploadServicePrincipal withAuthority(String authority)
      Set the authority property: Authority for the service principal. Example: https://login.microsoftonline.com/.
      Parameters:
      authority - the authority value to set.
      Returns:
      the UploadServicePrincipal object itself.
    • clientSecret

      public String clientSecret()
      Get the clientSecret property: Secret of the service principal.
      Returns:
      the clientSecret value.
    • withClientSecret

      public UploadServicePrincipal withClientSecret(String clientSecret)
      Set the clientSecret property: Secret of the service principal.
      Parameters:
      clientSecret - the clientSecret value to set.
      Returns:
      the UploadServicePrincipal object itself.
    • validate

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