public class UpdateAlertContactRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
Long |
contactId
The ID of the alert contact to be updated.
|
String |
contactName
The new name of the alert contact.
|
String |
dingRobotWebhookUrl
The new webhook URL of the DingTalk chatbot.
|
String |
email
The new email address of the alert contact.
|
String |
phoneNum
The new mobile phone number of the alert contact.
|
String |
regionId
The ID of the region.
|
Boolean |
systemNoc
Specifies whether the alert contact receives system notifications.
|
| 构造器和说明 |
|---|
UpdateAlertContactRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static UpdateAlertContactRequest |
build(Map<String,?> map) |
Long |
getContactId() |
String |
getContactName() |
String |
getDingRobotWebhookUrl() |
String |
getEmail() |
String |
getPhoneNum() |
String |
getRegionId() |
Boolean |
getSystemNoc() |
UpdateAlertContactRequest |
setContactId(Long contactId) |
UpdateAlertContactRequest |
setContactName(String contactName) |
UpdateAlertContactRequest |
setDingRobotWebhookUrl(String dingRobotWebhookUrl) |
UpdateAlertContactRequest |
setEmail(String email) |
UpdateAlertContactRequest |
setPhoneNum(String phoneNum) |
UpdateAlertContactRequest |
setRegionId(String regionId) |
UpdateAlertContactRequest |
setSystemNoc(Boolean systemNoc) |
@NameInMap(value="ContactId") public Long contactId
The ID of the alert contact to be updated. You can call the SearchAlertContact operation to query the contact ID. For more information, see SearchAlertContact.
This parameter is required.
example:123
@NameInMap(value="ContactName") public String contactName
The new name of the alert contact.
example:John Doe
@NameInMap(value="DingRobotWebhookUrl") public String dingRobotWebhookUrl
The new webhook URL of the DingTalk chatbot. For more information, see Configure a DingTalk chatbot to send alert notifications. You must specify at least one of the following parameters: PhoneNum, Email, and DingRobotWebhookUrl.
example:If you do not specify this parameter, the original parameter value is deleted. If you specify this parameter, the original parameter value is updated.
https://oapi.dingtalk.com/robot/send?access_token=91f2f6****
@NameInMap(value="Email") public String email
The new email address of the alert contact. You must specify at least one of the following parameters: PhoneNum, Email, and DingRobotWebhookUrl.
example:If you do not specify this parameter, the original parameter value is deleted. If you specify this parameter, the original parameter value is updated.
@NameInMap(value="PhoneNum") public String phoneNum
The new mobile phone number of the alert contact. You must specify at least one of the following parameters: PhoneNum, Email, and DingRobotWebhookUrl.
example:If you do not specify this parameter, the original parameter value is deleted. If you specify this parameter, the original parameter value is updated.
1381111****
@NameInMap(value="RegionId") public String regionId
The ID of the region. Set the value to cn-hangzhou.
This parameter is required.
example:cn-hangzhou
@NameInMap(value="SystemNoc") public Boolean systemNoc
Specifies whether the alert contact receives system notifications. Valid values:
true: The alert contact receives system notifications.false: The alert contact does not receive system notifications.true
public static UpdateAlertContactRequest build(Map<String,?> map) throws Exception
Exceptionpublic UpdateAlertContactRequest setContactId(Long contactId)
public Long getContactId()
public UpdateAlertContactRequest setContactName(String contactName)
public String getContactName()
public UpdateAlertContactRequest setDingRobotWebhookUrl(String dingRobotWebhookUrl)
public String getDingRobotWebhookUrl()
public UpdateAlertContactRequest setEmail(String email)
public String getEmail()
public UpdateAlertContactRequest setPhoneNum(String phoneNum)
public String getPhoneNum()
public UpdateAlertContactRequest setRegionId(String regionId)
public String getRegionId()
public UpdateAlertContactRequest setSystemNoc(Boolean systemNoc)
public Boolean getSystemNoc()
Copyright © 2024. All rights reserved.