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

package com.azure.resourcemanager.machinelearning.fluent.models;

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

/** Keys for endpoint authentication. */
@Fluent
public final class EndpointAuthKeysInner {
    /*
     * The primary key.
     */
    @JsonProperty(value = "primaryKey")
    private String primaryKey;

    /*
     * The secondary key.
     */
    @JsonProperty(value = "secondaryKey")
    private String secondaryKey;

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

    /**
     * Get the primaryKey property: The primary key.
     *
     * @return the primaryKey value.
     */
    public String primaryKey() {
        return this.primaryKey;
    }

    /**
     * Set the primaryKey property: The primary key.
     *
     * @param primaryKey the primaryKey value to set.
     * @return the EndpointAuthKeysInner object itself.
     */
    public EndpointAuthKeysInner withPrimaryKey(String primaryKey) {
        this.primaryKey = primaryKey;
        return this;
    }

    /**
     * Get the secondaryKey property: The secondary key.
     *
     * @return the secondaryKey value.
     */
    public String secondaryKey() {
        return this.secondaryKey;
    }

    /**
     * Set the secondaryKey property: The secondary key.
     *
     * @param secondaryKey the secondaryKey value to set.
     * @return the EndpointAuthKeysInner object itself.
     */
    public EndpointAuthKeysInner withSecondaryKey(String secondaryKey) {
        this.secondaryKey = secondaryKey;
        return this;
    }

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