All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.alicloud.dts.JobMonitorRuleArgs Maven / Gradle / Ivy
Go to download
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.dts;
import com.pulumi.core.Output;
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 JobMonitorRuleArgs extends com.pulumi.resources.ResourceArgs {
public static final JobMonitorRuleArgs Empty = new JobMonitorRuleArgs();
/**
* Trigger delay alarm threshold, which is measured in seconds.
*
*/
@Import(name="delayRuleTime")
private @Nullable Output delayRuleTime;
/**
* @return Trigger delay alarm threshold, which is measured in seconds.
*
*/
public Optional> delayRuleTime() {
return Optional.ofNullable(this.delayRuleTime);
}
/**
* Migration, synchronization or subscription task ID can be by calling the [DescribeDtsJobs] get.
*
*/
@Import(name="dtsJobId", required=true)
private Output dtsJobId;
/**
* @return Migration, synchronization or subscription task ID can be by calling the [DescribeDtsJobs] get.
*
*/
public Output dtsJobId() {
return this.dtsJobId;
}
/**
* The alarm is triggered after notification of the contact phone number, A plurality of phone numbers between them with a comma (,) to separate.
*
*/
@Import(name="phone")
private @Nullable Output phone;
/**
* @return The alarm is triggered after notification of the contact phone number, A plurality of phone numbers between them with a comma (,) to separate.
*
*/
public Optional> phone() {
return Optional.ofNullable(this.phone);
}
/**
* Whether to enable monitoring rules, valid values: `Y`, `N`.
*
*/
@Import(name="state")
private @Nullable Output state;
/**
* @return Whether to enable monitoring rules, valid values: `Y`, `N`.
*
*/
public Optional> state() {
return Optional.ofNullable(this.state);
}
/**
* Monitoring rules of type, valid values: `delay`, `error`. **delay**: delay alarm. **error**: abnormal alarm.
*
*/
@Import(name="type", required=true)
private Output type;
/**
* @return Monitoring rules of type, valid values: `delay`, `error`. **delay**: delay alarm. **error**: abnormal alarm.
*
*/
public Output type() {
return this.type;
}
private JobMonitorRuleArgs() {}
private JobMonitorRuleArgs(JobMonitorRuleArgs $) {
this.delayRuleTime = $.delayRuleTime;
this.dtsJobId = $.dtsJobId;
this.phone = $.phone;
this.state = $.state;
this.type = $.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(JobMonitorRuleArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private JobMonitorRuleArgs $;
public Builder() {
$ = new JobMonitorRuleArgs();
}
public Builder(JobMonitorRuleArgs defaults) {
$ = new JobMonitorRuleArgs(Objects.requireNonNull(defaults));
}
/**
* @param delayRuleTime Trigger delay alarm threshold, which is measured in seconds.
*
* @return builder
*
*/
public Builder delayRuleTime(@Nullable Output delayRuleTime) {
$.delayRuleTime = delayRuleTime;
return this;
}
/**
* @param delayRuleTime Trigger delay alarm threshold, which is measured in seconds.
*
* @return builder
*
*/
public Builder delayRuleTime(String delayRuleTime) {
return delayRuleTime(Output.of(delayRuleTime));
}
/**
* @param dtsJobId Migration, synchronization or subscription task ID can be by calling the [DescribeDtsJobs] get.
*
* @return builder
*
*/
public Builder dtsJobId(Output dtsJobId) {
$.dtsJobId = dtsJobId;
return this;
}
/**
* @param dtsJobId Migration, synchronization or subscription task ID can be by calling the [DescribeDtsJobs] get.
*
* @return builder
*
*/
public Builder dtsJobId(String dtsJobId) {
return dtsJobId(Output.of(dtsJobId));
}
/**
* @param phone The alarm is triggered after notification of the contact phone number, A plurality of phone numbers between them with a comma (,) to separate.
*
* @return builder
*
*/
public Builder phone(@Nullable Output phone) {
$.phone = phone;
return this;
}
/**
* @param phone The alarm is triggered after notification of the contact phone number, A plurality of phone numbers between them with a comma (,) to separate.
*
* @return builder
*
*/
public Builder phone(String phone) {
return phone(Output.of(phone));
}
/**
* @param state Whether to enable monitoring rules, valid values: `Y`, `N`.
*
* @return builder
*
*/
public Builder state(@Nullable Output state) {
$.state = state;
return this;
}
/**
* @param state Whether to enable monitoring rules, valid values: `Y`, `N`.
*
* @return builder
*
*/
public Builder state(String state) {
return state(Output.of(state));
}
/**
* @param type Monitoring rules of type, valid values: `delay`, `error`. **delay**: delay alarm. **error**: abnormal alarm.
*
* @return builder
*
*/
public Builder type(Output type) {
$.type = type;
return this;
}
/**
* @param type Monitoring rules of type, valid values: `delay`, `error`. **delay**: delay alarm. **error**: abnormal alarm.
*
* @return builder
*
*/
public Builder type(String type) {
return type(Output.of(type));
}
public JobMonitorRuleArgs build() {
if ($.dtsJobId == null) {
throw new MissingRequiredPropertyException("JobMonitorRuleArgs", "dtsJobId");
}
if ($.type == null) {
throw new MissingRequiredPropertyException("JobMonitorRuleArgs", "type");
}
return $;
}
}
}