com.pulumi.alicloud.cms.inputs.GetMetricRuleTemplatesPlainArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alicloud Show documentation
Show all versions of alicloud Show documentation
A Pulumi package for creating and managing AliCloud 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.alicloud.cms.inputs;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class GetMetricRuleTemplatesPlainArgs extends com.pulumi.resources.InvokeArgs {
public static final GetMetricRuleTemplatesPlainArgs Empty = new GetMetricRuleTemplatesPlainArgs();
/**
* Valid values: `true` or `false`. Default to `false`. Set it to `true` can output more details about resource attributes.
*
*/
@Import(name="enableDetails")
private @Nullable Boolean enableDetails;
/**
* @return Valid values: `true` or `false`. Default to `false`. Set it to `true` can output more details about resource attributes.
*
*/
public Optional enableDetails() {
return Optional.ofNullable(this.enableDetails);
}
/**
* A list of Metric Rule Template IDs.
*
*/
@Import(name="ids")
private @Nullable List ids;
/**
* @return A list of Metric Rule Template IDs.
*
*/
public Optional> ids() {
return Optional.ofNullable(this.ids);
}
/**
* The name of the alert template. You can perform fuzzy search based on the template name.
*
*/
@Import(name="keyword")
private @Nullable String keyword;
/**
* @return The name of the alert template. You can perform fuzzy search based on the template name.
*
*/
public Optional keyword() {
return Optional.ofNullable(this.keyword);
}
/**
* The name of the alert template.
*
*/
@Import(name="metricRuleTemplateName")
private @Nullable String metricRuleTemplateName;
/**
* @return The name of the alert template.
*
*/
public Optional metricRuleTemplateName() {
return Optional.ofNullable(this.metricRuleTemplateName);
}
/**
* A regex string to filter results by Metric Rule Template name.
*
*/
@Import(name="nameRegex")
private @Nullable String nameRegex;
/**
* @return A regex string to filter results by Metric Rule Template name.
*
*/
public Optional nameRegex() {
return Optional.ofNullable(this.nameRegex);
}
/**
* File name where to save data source results (after running `pulumi preview`).
*
*/
@Import(name="outputFile")
private @Nullable String outputFile;
/**
* @return File name where to save data source results (after running `pulumi preview`).
*
*/
public Optional outputFile() {
return Optional.ofNullable(this.outputFile);
}
/**
* The ID of the alert template.
*
*/
@Import(name="templateId")
private @Nullable String templateId;
/**
* @return The ID of the alert template.
*
*/
public Optional templateId() {
return Optional.ofNullable(this.templateId);
}
private GetMetricRuleTemplatesPlainArgs() {}
private GetMetricRuleTemplatesPlainArgs(GetMetricRuleTemplatesPlainArgs $) {
this.enableDetails = $.enableDetails;
this.ids = $.ids;
this.keyword = $.keyword;
this.metricRuleTemplateName = $.metricRuleTemplateName;
this.nameRegex = $.nameRegex;
this.outputFile = $.outputFile;
this.templateId = $.templateId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetMetricRuleTemplatesPlainArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private GetMetricRuleTemplatesPlainArgs $;
public Builder() {
$ = new GetMetricRuleTemplatesPlainArgs();
}
public Builder(GetMetricRuleTemplatesPlainArgs defaults) {
$ = new GetMetricRuleTemplatesPlainArgs(Objects.requireNonNull(defaults));
}
/**
* @param enableDetails Valid values: `true` or `false`. Default to `false`. Set it to `true` can output more details about resource attributes.
*
* @return builder
*
*/
public Builder enableDetails(@Nullable Boolean enableDetails) {
$.enableDetails = enableDetails;
return this;
}
/**
* @param ids A list of Metric Rule Template IDs.
*
* @return builder
*
*/
public Builder ids(@Nullable List ids) {
$.ids = ids;
return this;
}
/**
* @param ids A list of Metric Rule Template IDs.
*
* @return builder
*
*/
public Builder ids(String... ids) {
return ids(List.of(ids));
}
/**
* @param keyword The name of the alert template. You can perform fuzzy search based on the template name.
*
* @return builder
*
*/
public Builder keyword(@Nullable String keyword) {
$.keyword = keyword;
return this;
}
/**
* @param metricRuleTemplateName The name of the alert template.
*
* @return builder
*
*/
public Builder metricRuleTemplateName(@Nullable String metricRuleTemplateName) {
$.metricRuleTemplateName = metricRuleTemplateName;
return this;
}
/**
* @param nameRegex A regex string to filter results by Metric Rule Template name.
*
* @return builder
*
*/
public Builder nameRegex(@Nullable String nameRegex) {
$.nameRegex = nameRegex;
return this;
}
/**
* @param outputFile File name where to save data source results (after running `pulumi preview`).
*
* @return builder
*
*/
public Builder outputFile(@Nullable String outputFile) {
$.outputFile = outputFile;
return this;
}
/**
* @param templateId The ID of the alert template.
*
* @return builder
*
*/
public Builder templateId(@Nullable String templateId) {
$.templateId = templateId;
return this;
}
public GetMetricRuleTemplatesPlainArgs build() {
return $;
}
}
}