
com.pulumi.azurenative.appconfiguration.outputs.ApiKeyResponse Maven / Gradle / Ivy
// *** 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.appconfiguration.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class ApiKeyResponse {
/**
* @return A connection string that can be used by supporting clients for authentication.
*
*/
private String connectionString;
/**
* @return The key ID.
*
*/
private String id;
/**
* @return The last time any of the key's properties were modified.
*
*/
private String lastModified;
/**
* @return A name for the key describing its usage.
*
*/
private String name;
/**
* @return Whether this key can only be used for read operations.
*
*/
private Boolean readOnly;
/**
* @return The value of the key that is used for authentication purposes.
*
*/
private String value;
private ApiKeyResponse() {}
/**
* @return A connection string that can be used by supporting clients for authentication.
*
*/
public String connectionString() {
return this.connectionString;
}
/**
* @return The key ID.
*
*/
public String id() {
return this.id;
}
/**
* @return The last time any of the key's properties were modified.
*
*/
public String lastModified() {
return this.lastModified;
}
/**
* @return A name for the key describing its usage.
*
*/
public String name() {
return this.name;
}
/**
* @return Whether this key can only be used for read operations.
*
*/
public Boolean readOnly() {
return this.readOnly;
}
/**
* @return The value of the key that is used for authentication purposes.
*
*/
public String value() {
return this.value;
}
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 String connectionString;
private String id;
private String lastModified;
private String name;
private Boolean readOnly;
private String value;
public Builder() {}
public Builder(ApiKeyResponse defaults) {
Objects.requireNonNull(defaults);
this.connectionString = defaults.connectionString;
this.id = defaults.id;
this.lastModified = defaults.lastModified;
this.name = defaults.name;
this.readOnly = defaults.readOnly;
this.value = defaults.value;
}
@CustomType.Setter
public Builder connectionString(String connectionString) {
if (connectionString == null) {
throw new MissingRequiredPropertyException("ApiKeyResponse", "connectionString");
}
this.connectionString = connectionString;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("ApiKeyResponse", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder lastModified(String lastModified) {
if (lastModified == null) {
throw new MissingRequiredPropertyException("ApiKeyResponse", "lastModified");
}
this.lastModified = lastModified;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("ApiKeyResponse", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder readOnly(Boolean readOnly) {
if (readOnly == null) {
throw new MissingRequiredPropertyException("ApiKeyResponse", "readOnly");
}
this.readOnly = readOnly;
return this;
}
@CustomType.Setter
public Builder value(String value) {
if (value == null) {
throw new MissingRequiredPropertyException("ApiKeyResponse", "value");
}
this.value = value;
return this;
}
public ApiKeyResponse build() {
final var _resultValue = new ApiKeyResponse();
_resultValue.connectionString = connectionString;
_resultValue.id = id;
_resultValue.lastModified = lastModified;
_resultValue.name = name;
_resultValue.readOnly = readOnly;
_resultValue.value = value;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy