com.pulumi.azurenative.quantum.outputs.ApiKeyResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.quantum.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ApiKeyResponse {
/**
* @return The creation time of the api key.
*
*/
private @Nullable String createdAt;
/**
* @return The Api key.
*
*/
private String key;
private ApiKeyResponse() {}
/**
* @return The creation time of the api key.
*
*/
public Optional createdAt() {
return Optional.ofNullable(this.createdAt);
}
/**
* @return The Api key.
*
*/
public String key() {
return this.key;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ApiKeyResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String createdAt;
private String key;
public Builder() {}
public Builder(ApiKeyResponse defaults) {
Objects.requireNonNull(defaults);
this.createdAt = defaults.createdAt;
this.key = defaults.key;
}
@CustomType.Setter
public Builder createdAt(@Nullable String createdAt) {
this.createdAt = createdAt;
return this;
}
@CustomType.Setter
public Builder key(String key) {
if (key == null) {
throw new MissingRequiredPropertyException("ApiKeyResponse", "key");
}
this.key = key;
return this;
}
public ApiKeyResponse build() {
final var _resultValue = new ApiKeyResponse();
_resultValue.createdAt = createdAt;
_resultValue.key = key;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy