
com.pulumi.azurenative.datadog.outputs.DatadogHostResponse 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.azurenative.datadog.outputs.DatadogHostMetadataResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class DatadogHostResponse {
/**
* @return The aliases for the host.
*
*/
private @Nullable List aliases;
/**
* @return The Datadog integrations reporting metrics for the host.
*
*/
private @Nullable List apps;
private @Nullable DatadogHostMetadataResponse meta;
/**
* @return The name of the host.
*
*/
private @Nullable String name;
private DatadogHostResponse() {}
/**
* @return The aliases for the host.
*
*/
public List aliases() {
return this.aliases == null ? List.of() : this.aliases;
}
/**
* @return The Datadog integrations reporting metrics for the host.
*
*/
public List apps() {
return this.apps == null ? List.of() : this.apps;
}
public Optional meta() {
return Optional.ofNullable(this.meta);
}
/**
* @return The name of the host.
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DatadogHostResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List aliases;
private @Nullable List apps;
private @Nullable DatadogHostMetadataResponse meta;
private @Nullable String name;
public Builder() {}
public Builder(DatadogHostResponse defaults) {
Objects.requireNonNull(defaults);
this.aliases = defaults.aliases;
this.apps = defaults.apps;
this.meta = defaults.meta;
this.name = defaults.name;
}
@CustomType.Setter
public Builder aliases(@Nullable List aliases) {
this.aliases = aliases;
return this;
}
public Builder aliases(String... aliases) {
return aliases(List.of(aliases));
}
@CustomType.Setter
public Builder apps(@Nullable List apps) {
this.apps = apps;
return this;
}
public Builder apps(String... apps) {
return apps(List.of(apps));
}
@CustomType.Setter
public Builder meta(@Nullable DatadogHostMetadataResponse meta) {
this.meta = meta;
return this;
}
@CustomType.Setter
public Builder name(@Nullable String name) {
this.name = name;
return this;
}
public DatadogHostResponse build() {
final var _resultValue = new DatadogHostResponse();
_resultValue.aliases = aliases;
_resultValue.apps = apps;
_resultValue.meta = meta;
_resultValue.name = name;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy