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

package com.azure.resourcemanager.security.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The native cloud connection configuration. */
@Fluent
public final class DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning {
    /*
     * The service account email address in GCP for this offering
     */
    @JsonProperty(value = "serviceAccountEmailAddress")
    private String serviceAccountEmailAddress;

    /*
     * The GCP workload identity provider id for this offering
     */
    @JsonProperty(value = "workloadIdentityProviderId")
    private String workloadIdentityProviderId;

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

    /**
     * Get the serviceAccountEmailAddress property: The service account email address in GCP for this offering.
     *
     * @return the serviceAccountEmailAddress value.
     */
    public String serviceAccountEmailAddress() {
        return this.serviceAccountEmailAddress;
    }

    /**
     * Set the serviceAccountEmailAddress property: The service account email address in GCP for this offering.
     *
     * @param serviceAccountEmailAddress the serviceAccountEmailAddress value to set.
     * @return the DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning object itself.
     */
    public DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning withServiceAccountEmailAddress(
        String serviceAccountEmailAddress) {
        this.serviceAccountEmailAddress = serviceAccountEmailAddress;
        return this;
    }

    /**
     * Get the workloadIdentityProviderId property: The GCP workload identity provider id for this offering.
     *
     * @return the workloadIdentityProviderId value.
     */
    public String workloadIdentityProviderId() {
        return this.workloadIdentityProviderId;
    }

    /**
     * Set the workloadIdentityProviderId property: The GCP workload identity provider id for this offering.
     *
     * @param workloadIdentityProviderId the workloadIdentityProviderId value to set.
     * @return the DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning object itself.
     */
    public DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning withWorkloadIdentityProviderId(
        String workloadIdentityProviderId) {
        this.workloadIdentityProviderId = workloadIdentityProviderId;
        return this;
    }

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