com.azure.resourcemanager.elastic.fluent.models.UserApiKeyResponseInner Maven / Gradle / Ivy
// 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.fluent.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
/** The User Api Key created for the Organization associated with the User Email Id that was passed in the request. */
@Fluent
public final class UserApiKeyResponseInner {
/*
* The User Api Key Generated based on ReturnApiKey flag. This is applicable for non-Portal clients only.
*/
@JsonProperty(value = "apiKey")
private String apiKey;
/** Creates an instance of UserApiKeyResponseInner class. */
public UserApiKeyResponseInner() {
}
/**
* Get the apiKey property: The User Api Key Generated based on ReturnApiKey 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 ReturnApiKey flag. This is applicable for non-Portal
* clients only.
*
* @param apiKey the apiKey value to set.
* @return the UserApiKeyResponseInner object itself.
*/
public UserApiKeyResponseInner withApiKey(String apiKey) {
this.apiKey = apiKey;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
}