All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.sdk.service.dts20200101.models.ConfigureSynchronizationJobAlertRequest Maven / Gradle / Ivy

There is a newer version: 1.0.18
Show newest version
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.dts20200101.models;

import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;

/**
 * {@link ConfigureSynchronizationJobAlertRequest} extends {@link RequestModel}
 *
 * 

ConfigureSynchronizationJobAlertRequest

*/ public class ConfigureSynchronizationJobAlertRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AccountId") private String accountId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DelayAlertPhone") private String delayAlertPhone; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DelayAlertStatus") private String delayAlertStatus; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DelayOverSeconds") private String delayOverSeconds; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ErrorAlertPhone") private String errorAlertPhone; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ErrorAlertStatus") private String errorAlertStatus; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private String ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SynchronizationDirection") private String synchronizationDirection; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SynchronizationJobId") @com.aliyun.core.annotation.Validation(required = true) private String synchronizationJobId; private ConfigureSynchronizationJobAlertRequest(Builder builder) { super(builder); this.accountId = builder.accountId; this.delayAlertPhone = builder.delayAlertPhone; this.delayAlertStatus = builder.delayAlertStatus; this.delayOverSeconds = builder.delayOverSeconds; this.errorAlertPhone = builder.errorAlertPhone; this.errorAlertStatus = builder.errorAlertStatus; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.synchronizationDirection = builder.synchronizationDirection; this.synchronizationJobId = builder.synchronizationJobId; } public static Builder builder() { return new Builder(); } public static ConfigureSynchronizationJobAlertRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return accountId */ public String getAccountId() { return this.accountId; } /** * @return delayAlertPhone */ public String getDelayAlertPhone() { return this.delayAlertPhone; } /** * @return delayAlertStatus */ public String getDelayAlertStatus() { return this.delayAlertStatus; } /** * @return delayOverSeconds */ public String getDelayOverSeconds() { return this.delayOverSeconds; } /** * @return errorAlertPhone */ public String getErrorAlertPhone() { return this.errorAlertPhone; } /** * @return errorAlertStatus */ public String getErrorAlertStatus() { return this.errorAlertStatus; } /** * @return ownerId */ public String getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return synchronizationDirection */ public String getSynchronizationDirection() { return this.synchronizationDirection; } /** * @return synchronizationJobId */ public String getSynchronizationJobId() { return this.synchronizationJobId; } public static final class Builder extends Request.Builder { private String accountId; private String delayAlertPhone; private String delayAlertStatus; private String delayOverSeconds; private String errorAlertPhone; private String errorAlertStatus; private String ownerId; private String regionId; private String resourceGroupId; private String synchronizationDirection; private String synchronizationJobId; private Builder() { super(); } private Builder(ConfigureSynchronizationJobAlertRequest request) { super(request); this.accountId = request.accountId; this.delayAlertPhone = request.delayAlertPhone; this.delayAlertStatus = request.delayAlertStatus; this.delayOverSeconds = request.delayOverSeconds; this.errorAlertPhone = request.errorAlertPhone; this.errorAlertStatus = request.errorAlertStatus; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceGroupId = request.resourceGroupId; this.synchronizationDirection = request.synchronizationDirection; this.synchronizationJobId = request.synchronizationJobId; } /** * The ID of the Alibaba Cloud account. You do not need to specify this parameter because this parameter will be removed in the future. */ public Builder accountId(String accountId) { this.putQueryParameter("AccountId", accountId); this.accountId = accountId; return this; } /** * The mobile phone numbers that receive latency-related alerts. Separate mobile phone numbers with commas (,). *

* * > * * This parameter is available only for China site (aliyun.com) users. Only mobile phone numbers in the Chinese mainland are supported. Up to 10 mobile phone numbers can be specified. * * International site (alibabacloud.com) users cannot receive alerts by using mobile phones, but can [set alert rules for DTS tasks in the Cloud Monitor console](~~175876~~). */ public Builder delayAlertPhone(String delayAlertPhone) { this.putQueryParameter("DelayAlertPhone", delayAlertPhone); this.delayAlertPhone = delayAlertPhone; return this; } /** * Specifies whether to monitor task latency. Valid values: *

* * * **enable**: yes * * **disable**: no * * > * * The default value is **enable**. * * You must specify at least one of the DelayAlertStatus and **ErrorAlertStatus** parameters. */ public Builder delayAlertStatus(String delayAlertStatus) { this.putQueryParameter("DelayAlertStatus", delayAlertStatus); this.delayAlertStatus = delayAlertStatus; return this; } /** * The threshold for triggering latency alerts. The unit is seconds and the value must be an integer. You can set the threshold based on your business needs. To avoid delay fluctuations caused by network and database loads, we recommend that you set the threshold to more than 10 seconds. *

* * > If the **DelayAlertStatus** parameter is set to **enable**, this parameter must be specified. */ public Builder delayOverSeconds(String delayOverSeconds) { this.putQueryParameter("DelayOverSeconds", delayOverSeconds); this.delayOverSeconds = delayOverSeconds; return this; } /** * The mobile phone numbers that receive status-related alerts. Separate mobile phone numbers with commas (,). *

* * > * * This parameter is available only for China site (aliyun.com) users. Only mobile phone numbers in the Chinese mainland are supported. Up to 10 mobile phone numbers can be specified. * * International site (alibabacloud.com) users cannot receive alerts by using mobile phones, but can [set alert rules for DTS tasks in the Cloud Monitor console](~~175876~~). */ public Builder errorAlertPhone(String errorAlertPhone) { this.putQueryParameter("ErrorAlertPhone", errorAlertPhone); this.errorAlertPhone = errorAlertPhone; return this; } /** * Specifies whether to monitor task status. Valid values: *

* * * **enable**: yes * * **disable**: no * * > * * The default value is **enable**. * * You must specify at least one of the **DelayAlertStatus** and ErrorAlertStatus parameters. * * If the task that you monitor enters an abnormal state, an alert is triggered. */ public Builder errorAlertStatus(String errorAlertStatus) { this.putQueryParameter("ErrorAlertStatus", errorAlertStatus); this.errorAlertStatus = errorAlertStatus; return this; } /** * OwnerId. */ public Builder ownerId(String ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * RegionId. */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceGroupId. */ public Builder resourceGroupId(String resourceGroupId) { this.putQueryParameter("ResourceGroupId", resourceGroupId); this.resourceGroupId = resourceGroupId; return this; } /** * The synchronization direction. Valid values: *

* * * **Forward** * * **Reverse** * * > Default value: **Forward**. */ public Builder synchronizationDirection(String synchronizationDirection) { this.putQueryParameter("SynchronizationDirection", synchronizationDirection); this.synchronizationDirection = synchronizationDirection; return this; } /** * The ID of the data synchronization instance. You can call the DescribeSynchronizationJobs operation to query the instance ID. */ public Builder synchronizationJobId(String synchronizationJobId) { this.putQueryParameter("SynchronizationJobId", synchronizationJobId); this.synchronizationJobId = synchronizationJobId; return this; } @Override public ConfigureSynchronizationJobAlertRequest build() { return new ConfigureSynchronizationJobAlertRequest(this); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy