com.pulumi.azure.elasticcloud.outputs.ElasticsearchLogs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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.azure.elasticcloud.outputs;
import com.pulumi.azure.elasticcloud.outputs.ElasticsearchLogsFilteringTag;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ElasticsearchLogs {
/**
* @return A list of `filtering_tag` blocks as defined above.
*
*/
private @Nullable List filteringTags;
/**
* @return Specifies if the Azure Activity Logs should be sent to the Elasticsearch cluster. Defaults to `false`.
*
*/
private @Nullable Boolean sendActivityLogs;
/**
* @return Specifies if the AzureAD Logs should be sent to the Elasticsearch cluster. Defaults to `false`.
*
*/
private @Nullable Boolean sendAzureadLogs;
/**
* @return Specifies if the Azure Subscription Logs should be sent to the Elasticsearch cluster. Defaults to `false`.
*
*/
private @Nullable Boolean sendSubscriptionLogs;
private ElasticsearchLogs() {}
/**
* @return A list of `filtering_tag` blocks as defined above.
*
*/
public List filteringTags() {
return this.filteringTags == null ? List.of() : this.filteringTags;
}
/**
* @return Specifies if the Azure Activity Logs should be sent to the Elasticsearch cluster. Defaults to `false`.
*
*/
public Optional sendActivityLogs() {
return Optional.ofNullable(this.sendActivityLogs);
}
/**
* @return Specifies if the AzureAD Logs should be sent to the Elasticsearch cluster. Defaults to `false`.
*
*/
public Optional sendAzureadLogs() {
return Optional.ofNullable(this.sendAzureadLogs);
}
/**
* @return Specifies if the Azure Subscription Logs should be sent to the Elasticsearch cluster. Defaults to `false`.
*
*/
public Optional sendSubscriptionLogs() {
return Optional.ofNullable(this.sendSubscriptionLogs);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ElasticsearchLogs defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List filteringTags;
private @Nullable Boolean sendActivityLogs;
private @Nullable Boolean sendAzureadLogs;
private @Nullable Boolean sendSubscriptionLogs;
public Builder() {}
public Builder(ElasticsearchLogs defaults) {
Objects.requireNonNull(defaults);
this.filteringTags = defaults.filteringTags;
this.sendActivityLogs = defaults.sendActivityLogs;
this.sendAzureadLogs = defaults.sendAzureadLogs;
this.sendSubscriptionLogs = defaults.sendSubscriptionLogs;
}
@CustomType.Setter
public Builder filteringTags(@Nullable List filteringTags) {
this.filteringTags = filteringTags;
return this;
}
public Builder filteringTags(ElasticsearchLogsFilteringTag... filteringTags) {
return filteringTags(List.of(filteringTags));
}
@CustomType.Setter
public Builder sendActivityLogs(@Nullable Boolean sendActivityLogs) {
this.sendActivityLogs = sendActivityLogs;
return this;
}
@CustomType.Setter
public Builder sendAzureadLogs(@Nullable Boolean sendAzureadLogs) {
this.sendAzureadLogs = sendAzureadLogs;
return this;
}
@CustomType.Setter
public Builder sendSubscriptionLogs(@Nullable Boolean sendSubscriptionLogs) {
this.sendSubscriptionLogs = sendSubscriptionLogs;
return this;
}
public ElasticsearchLogs build() {
final var _resultValue = new ElasticsearchLogs();
_resultValue.filteringTags = filteringTags;
_resultValue.sendActivityLogs = sendActivityLogs;
_resultValue.sendAzureadLogs = sendAzureadLogs;
_resultValue.sendSubscriptionLogs = sendSubscriptionLogs;
return _resultValue;
}
}
}