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

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

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

/** The access keys for the cognitive services account. */
@Fluent
public final class ApiKeysInner {
    /*
     * Gets the value of key 1.
     */
    @JsonProperty(value = "key1")
    private String key1;

    /*
     * Gets the value of key 2.
     */
    @JsonProperty(value = "key2")
    private String key2;

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

    /**
     * Get the key1 property: Gets the value of key 1.
     *
     * @return the key1 value.
     */
    public String key1() {
        return this.key1;
    }

    /**
     * Set the key1 property: Gets the value of key 1.
     *
     * @param key1 the key1 value to set.
     * @return the ApiKeysInner object itself.
     */
    public ApiKeysInner withKey1(String key1) {
        this.key1 = key1;
        return this;
    }

    /**
     * Get the key2 property: Gets the value of key 2.
     *
     * @return the key2 value.
     */
    public String key2() {
        return this.key2;
    }

    /**
     * Set the key2 property: Gets the value of key 2.
     *
     * @param key2 the key2 value to set.
     * @return the ApiKeysInner object itself.
     */
    public ApiKeysInner withKey2(String key2) {
        this.key2 = key2;
        return this;
    }

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