// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.azurearcdata.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.UUID;

/** Service principal for uploading billing, metrics and logs. */
@Fluent
public final class UploadServicePrincipal {
    /*
     * Client ID of the service principal for uploading data.
     */
    @JsonProperty(value = "clientId")
    private UUID clientId;

    /*
     * Tenant ID of the service principal.
     */
    @JsonProperty(value = "tenantId")
    private UUID tenantId;

    /*
     * Authority for the service principal. Example: https://login.microsoftonline.com/
     */
    @JsonProperty(value = "authority")
    private String authority;

    /*
     * Secret of the service principal
     */
    @JsonProperty(value = "clientSecret")
    private String clientSecret;

    /** Creates an instance of UploadServicePrincipal class. */
    public UploadServicePrincipal() {
    }

    /**
     * Get the clientId property: Client ID of the service principal for uploading data.
     *
     * @return the clientId value.
     */
    public UUID clientId() {
        return this.clientId;
    }

    /**
     * Set the clientId property: Client ID of the service principal for uploading data.
     *
     * @param clientId the clientId value to set.
     * @return the UploadServicePrincipal object itself.
     */
    public UploadServicePrincipal withClientId(UUID clientId) {
        this.clientId = clientId;
        return this;
    }

    /**
     * Get the tenantId property: Tenant ID of the service principal.
     *
     * @return the tenantId value.
     */
    public UUID tenantId() {
        return this.tenantId;
    }

    /**
     * Set the tenantId property: Tenant ID of the service principal.
     *
     * @param tenantId the tenantId value to set.
     * @return the UploadServicePrincipal object itself.
     */
    public UploadServicePrincipal withTenantId(UUID tenantId) {
        this.tenantId = tenantId;
        return this;
    }

    /**
     * Get the authority property: Authority for the service principal. Example: https://login.microsoftonline.com/.
     *
     * @return the authority value.
     */
    public String authority() {
        return this.authority;
    }

    /**
     * Set the authority property: Authority for the service principal. Example: https://login.microsoftonline.com/.
     *
     * @param authority the authority value to set.
     * @return the UploadServicePrincipal object itself.
     */
    public UploadServicePrincipal withAuthority(String authority) {
        this.authority = authority;
        return this;
    }

    /**
     * Get the clientSecret property: Secret of the service principal.
     *
     * @return the clientSecret value.
     */
    public String clientSecret() {
        return this.clientSecret;
    }

    /**
     * Set the clientSecret property: Secret of the service principal.
     *
     * @param clientSecret the clientSecret value to set.
     * @return the UploadServicePrincipal object itself.
     */
    public UploadServicePrincipal withClientSecret(String clientSecret) {
        this.clientSecret = clientSecret;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}
