com.pulumi.azure.sentinel.inputs.GetAlertRuleTemplatePlainArgs 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.sentinel.inputs;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class GetAlertRuleTemplatePlainArgs extends com.pulumi.resources.InvokeArgs {
public static final GetAlertRuleTemplatePlainArgs Empty = new GetAlertRuleTemplatePlainArgs();
/**
* The display name of this Sentinel Alert Rule Template. Either `display_name` or `name` have to be specified.
*
* > **NOTE** As `display_name` is not unique, errors may occur when there are multiple Sentinel Alert Rule Template with same `display_name`.
*
*/
@Import(name="displayName")
private @Nullable String displayName;
/**
* @return The display name of this Sentinel Alert Rule Template. Either `display_name` or `name` have to be specified.
*
* > **NOTE** As `display_name` is not unique, errors may occur when there are multiple Sentinel Alert Rule Template with same `display_name`.
*
*/
public Optional displayName() {
return Optional.ofNullable(this.displayName);
}
/**
* The ID of the Log Analytics Workspace.
*
*/
@Import(name="logAnalyticsWorkspaceId", required=true)
private String logAnalyticsWorkspaceId;
/**
* @return The ID of the Log Analytics Workspace.
*
*/
public String logAnalyticsWorkspaceId() {
return this.logAnalyticsWorkspaceId;
}
/**
* The name of this Sentinel Alert Rule Template. Either `display_name` or `name` have to be specified.
*
*/
@Import(name="name")
private @Nullable String name;
/**
* @return The name of this Sentinel Alert Rule Template. Either `display_name` or `name` have to be specified.
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
private GetAlertRuleTemplatePlainArgs() {}
private GetAlertRuleTemplatePlainArgs(GetAlertRuleTemplatePlainArgs $) {
this.displayName = $.displayName;
this.logAnalyticsWorkspaceId = $.logAnalyticsWorkspaceId;
this.name = $.name;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetAlertRuleTemplatePlainArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private GetAlertRuleTemplatePlainArgs $;
public Builder() {
$ = new GetAlertRuleTemplatePlainArgs();
}
public Builder(GetAlertRuleTemplatePlainArgs defaults) {
$ = new GetAlertRuleTemplatePlainArgs(Objects.requireNonNull(defaults));
}
/**
* @param displayName The display name of this Sentinel Alert Rule Template. Either `display_name` or `name` have to be specified.
*
* > **NOTE** As `display_name` is not unique, errors may occur when there are multiple Sentinel Alert Rule Template with same `display_name`.
*
* @return builder
*
*/
public Builder displayName(@Nullable String displayName) {
$.displayName = displayName;
return this;
}
/**
* @param logAnalyticsWorkspaceId The ID of the Log Analytics Workspace.
*
* @return builder
*
*/
public Builder logAnalyticsWorkspaceId(String logAnalyticsWorkspaceId) {
$.logAnalyticsWorkspaceId = logAnalyticsWorkspaceId;
return this;
}
/**
* @param name The name of this Sentinel Alert Rule Template. Either `display_name` or `name` have to be specified.
*
* @return builder
*
*/
public Builder name(@Nullable String name) {
$.name = name;
return this;
}
public GetAlertRuleTemplatePlainArgs build() {
if ($.logAnalyticsWorkspaceId == null) {
throw new MissingRequiredPropertyException("GetAlertRuleTemplatePlainArgs", "logAnalyticsWorkspaceId");
}
return $;
}
}
}