
com.pulumi.azurenative.insights.outputs.MonitoringAccountDestinationResponse 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.insights.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 MonitoringAccountDestinationResponse {
/**
* @return The immutable ID of the account.
*
*/
private String accountId;
/**
* @return The resource ID of the monitoring account.
*
*/
private @Nullable String accountResourceId;
/**
* @return A friendly name for the destination.
* This name should be unique across all destinations (regardless of type) within the data collection rule.
*
*/
private @Nullable String name;
private MonitoringAccountDestinationResponse() {}
/**
* @return The immutable ID of the account.
*
*/
public String accountId() {
return this.accountId;
}
/**
* @return The resource ID of the monitoring account.
*
*/
public Optional accountResourceId() {
return Optional.ofNullable(this.accountResourceId);
}
/**
* @return A friendly name for the destination.
* This name should be unique across all destinations (regardless of type) within the data collection rule.
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(MonitoringAccountDestinationResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String accountId;
private @Nullable String accountResourceId;
private @Nullable String name;
public Builder() {}
public Builder(MonitoringAccountDestinationResponse defaults) {
Objects.requireNonNull(defaults);
this.accountId = defaults.accountId;
this.accountResourceId = defaults.accountResourceId;
this.name = defaults.name;
}
@CustomType.Setter
public Builder accountId(String accountId) {
if (accountId == null) {
throw new MissingRequiredPropertyException("MonitoringAccountDestinationResponse", "accountId");
}
this.accountId = accountId;
return this;
}
@CustomType.Setter
public Builder accountResourceId(@Nullable String accountResourceId) {
this.accountResourceId = accountResourceId;
return this;
}
@CustomType.Setter
public Builder name(@Nullable String name) {
this.name = name;
return this;
}
public MonitoringAccountDestinationResponse build() {
final var _resultValue = new MonitoringAccountDestinationResponse();
_resultValue.accountId = accountId;
_resultValue.accountResourceId = accountResourceId;
_resultValue.name = name;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy