Class UploadServicePrincipal
java.lang.Object
com.azure.resourcemanager.azurearcdata.models.UploadServicePrincipal
Service principal for uploading billing, metrics and logs.
-
Constructor Summary
ConstructorDescriptionCreates an instance of UploadServicePrincipal class. -
Method Summary
Modifier and TypeMethodDescriptionGet the authority property: Authority for the service principal.clientId()
Get the clientId property: Client ID of the service principal for uploading data.Get the clientSecret property: Secret of the service principal.tenantId()
Get the tenantId property: Tenant ID of the service principal.void
validate()
Validates the instance.withAuthority
(String authority) Set the authority property: Authority for the service principal.withClientId
(UUID clientId) Set the clientId property: Client ID of the service principal for uploading data.withClientSecret
(String clientSecret) Set the clientSecret property: Secret of the service principal.withTenantId
(UUID tenantId) Set the tenantId property: Tenant ID of the service principal.
-
Constructor Details
-
UploadServicePrincipal
public UploadServicePrincipal()Creates an instance of UploadServicePrincipal class.
-
-
Method Details
-
clientId
Get the clientId property: Client ID of the service principal for uploading data.- Returns:
- the clientId value.
-
withClientId
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
Get the tenantId property: Tenant ID of the service principal.- Returns:
- the tenantId value.
-
withTenantId
Set the tenantId property: Tenant ID of the service principal.- Parameters:
tenantId
- the tenantId value to set.- Returns:
- the UploadServicePrincipal object itself.
-
authority
Get the authority property: Authority for the service principal. Example: https://login.microsoftonline.com/.- Returns:
- the authority value.
-
withAuthority
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
Get the clientSecret property: Secret of the service principal.- Returns:
- the clientSecret value.
-
withClientSecret
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.
-