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

package com.azure.resourcemanager.elastic.models;

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

/** The UserApiKeyResponseProperties model. */
@Fluent
public final class UserApiKeyResponseProperties {
    /*
     * The User Api Key Generated based on GenerateApiKey flag. This is applicable for non-Portal clients only.
     */
    @JsonProperty(value = "apiKey")
    private String apiKey;

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

    /**
     * Get the apiKey property: The User Api Key Generated based on GenerateApiKey flag. This is applicable for
     * non-Portal clients only.
     *
     * @return the apiKey value.
     */
    public String apiKey() {
        return this.apiKey;
    }

    /**
     * Set the apiKey property: The User Api Key Generated based on GenerateApiKey flag. This is applicable for
     * non-Portal clients only.
     *
     * @param apiKey the apiKey value to set.
     * @return the UserApiKeyResponseProperties object itself.
     */
    public UserApiKeyResponseProperties withApiKey(String apiKey) {
        this.apiKey = apiKey;
        return this;
    }

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