com.pulumi.azurenative.datadog.outputs.GetMonitorDefaultKeyResult 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.datadog.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 GetMonitorDefaultKeyResult {
/**
* @return The time of creation of the API key.
*
*/
private @Nullable String created;
/**
* @return The user that created the API key.
*
*/
private @Nullable String createdBy;
/**
* @return The value of the API key.
*
*/
private String key;
/**
* @return The name of the API key.
*
*/
private @Nullable String name;
private GetMonitorDefaultKeyResult() {}
/**
* @return The time of creation of the API key.
*
*/
public Optional created() {
return Optional.ofNullable(this.created);
}
/**
* @return The user that created the API key.
*
*/
public Optional createdBy() {
return Optional.ofNullable(this.createdBy);
}
/**
* @return The value of the API key.
*
*/
public String key() {
return this.key;
}
/**
* @return The name of the API key.
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetMonitorDefaultKeyResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String created;
private @Nullable String createdBy;
private String key;
private @Nullable String name;
public Builder() {}
public Builder(GetMonitorDefaultKeyResult defaults) {
Objects.requireNonNull(defaults);
this.created = defaults.created;
this.createdBy = defaults.createdBy;
this.key = defaults.key;
this.name = defaults.name;
}
@CustomType.Setter
public Builder created(@Nullable String created) {
this.created = created;
return this;
}
@CustomType.Setter
public Builder createdBy(@Nullable String createdBy) {
this.createdBy = createdBy;
return this;
}
@CustomType.Setter
public Builder key(String key) {
if (key == null) {
throw new MissingRequiredPropertyException("GetMonitorDefaultKeyResult", "key");
}
this.key = key;
return this;
}
@CustomType.Setter
public Builder name(@Nullable String name) {
this.name = name;
return this;
}
public GetMonitorDefaultKeyResult build() {
final var _resultValue = new GetMonitorDefaultKeyResult();
_resultValue.created = created;
_resultValue.createdBy = createdBy;
_resultValue.key = key;
_resultValue.name = name;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy