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

package com.azure.resourcemanager.attestation.models;

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

/** Client supplied parameters used to create a new attestation provider. */
@Fluent
public final class AttestationServiceCreationSpecificParams {
    /*
     * JSON Web Key Set defining a set of X.509 Certificates that will represent the parent certificate for the signing
     * certificate used for policy operations
     */
    @JsonProperty(value = "policySigningCertificates")
    private JsonWebKeySet policySigningCertificates;

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

    /**
     * Get the policySigningCertificates property: JSON Web Key Set defining a set of X.509 Certificates that will
     * represent the parent certificate for the signing certificate used for policy operations.
     *
     * @return the policySigningCertificates value.
     */
    public JsonWebKeySet policySigningCertificates() {
        return this.policySigningCertificates;
    }

    /**
     * Set the policySigningCertificates property: JSON Web Key Set defining a set of X.509 Certificates that will
     * represent the parent certificate for the signing certificate used for policy operations.
     *
     * @param policySigningCertificates the policySigningCertificates value to set.
     * @return the AttestationServiceCreationSpecificParams object itself.
     */
    public AttestationServiceCreationSpecificParams withPolicySigningCertificates(
        JsonWebKeySet policySigningCertificates) {
        this.policySigningCertificates = policySigningCertificates;
        return this;
    }

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