// 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;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
import java.util.List;

/** The gcpOrganization data for the parent account. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "organizationMembershipType")
@JsonTypeName("Organization")
@Fluent
public final class GcpOrganizationalDataOrganization extends GcpOrganizationalData {
    /*
     * If the multi cloud account is of membership type organization, list of accounts excluded from offering
     */
    @JsonProperty(value = "excludedProjectNumbers")
    private List<String> excludedProjectNumbers;

    /*
     * The service account email address which represents the organization level permissions container.
     */
    @JsonProperty(value = "serviceAccountEmailAddress")
    private String serviceAccountEmailAddress;

    /*
     * The GCP workload identity provider id which represents the permissions required to auto provision security
     * connectors
     */
    @JsonProperty(value = "workloadIdentityProviderId")
    private String workloadIdentityProviderId;

    /*
     * GCP organization name
     */
    @JsonProperty(value = "organizationName", access = JsonProperty.Access.WRITE_ONLY)
    private String organizationName;

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

    /**
     * Get the excludedProjectNumbers property: If the multi cloud account is of membership type organization, list of
     * accounts excluded from offering.
     *
     * @return the excludedProjectNumbers value.
     */
    public List<String> excludedProjectNumbers() {
        return this.excludedProjectNumbers;
    }

    /**
     * Set the excludedProjectNumbers property: If the multi cloud account is of membership type organization, list of
     * accounts excluded from offering.
     *
     * @param excludedProjectNumbers the excludedProjectNumbers value to set.
     * @return the GcpOrganizationalDataOrganization object itself.
     */
    public GcpOrganizationalDataOrganization withExcludedProjectNumbers(List<String> excludedProjectNumbers) {
        this.excludedProjectNumbers = excludedProjectNumbers;
        return this;
    }

    /**
     * Get the serviceAccountEmailAddress property: The service account email address which represents the organization
     * level permissions container.
     *
     * @return the serviceAccountEmailAddress value.
     */
    public String serviceAccountEmailAddress() {
        return this.serviceAccountEmailAddress;
    }

    /**
     * Set the serviceAccountEmailAddress property: The service account email address which represents the organization
     * level permissions container.
     *
     * @param serviceAccountEmailAddress the serviceAccountEmailAddress value to set.
     * @return the GcpOrganizationalDataOrganization object itself.
     */
    public GcpOrganizationalDataOrganization withServiceAccountEmailAddress(String serviceAccountEmailAddress) {
        this.serviceAccountEmailAddress = serviceAccountEmailAddress;
        return this;
    }

    /**
     * Get the workloadIdentityProviderId property: The GCP workload identity provider id which represents the
     * permissions required to auto provision security connectors.
     *
     * @return the workloadIdentityProviderId value.
     */
    public String workloadIdentityProviderId() {
        return this.workloadIdentityProviderId;
    }

    /**
     * Set the workloadIdentityProviderId property: The GCP workload identity provider id which represents the
     * permissions required to auto provision security connectors.
     *
     * @param workloadIdentityProviderId the workloadIdentityProviderId value to set.
     * @return the GcpOrganizationalDataOrganization object itself.
     */
    public GcpOrganizationalDataOrganization withWorkloadIdentityProviderId(String workloadIdentityProviderId) {
        this.workloadIdentityProviderId = workloadIdentityProviderId;
        return this;
    }

    /**
     * Get the organizationName property: GCP organization name.
     *
     * @return the organizationName value.
     */
    public String organizationName() {
        return this.organizationName;
    }

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