public class MailConfiguration extends AbstractModel
Constructor and Description |
---|
MailConfiguration() |
MailConfiguration(MailConfiguration source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
Long[] |
getContactGroup()
Get Recipient group ID.
|
Long[] |
getContactPerson()
Get Recipient ID.
|
String[] |
getHealthStatus()
Get Sends a report with the specified health level, such as `HEALTH`, `SUB_HEALTH`, `RISK`, and `HIGH_RISK`.
|
String[] |
getRegion()
Get Region configuration, such as "ap-guangzhou" and "ap-shanghai".
|
Long |
getSendMail()
Get Whether to enable email sending.
|
void |
setContactGroup(Long[] ContactGroup)
Set Recipient group ID.
|
void |
setContactPerson(Long[] ContactPerson)
Set Recipient ID.
|
void |
setHealthStatus(String[] HealthStatus)
Set Sends a report with the specified health level, such as `HEALTH`, `SUB_HEALTH`, `RISK`, and `HIGH_RISK`.
|
void |
setRegion(String[] Region)
Set Region configuration, such as "ap-guangzhou" and "ap-shanghai".
|
void |
setSendMail(Long SendMail)
Set Whether to enable email sending.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public MailConfiguration()
public MailConfiguration(MailConfiguration source)
public Long getSendMail()
public void setSendMail(Long SendMail)
SendMail
- Whether to enable email sending. Valid values: `0` (no), `1` (yes).public String[] getRegion()
public void setRegion(String[] Region)
Region
- Region configuration, such as "ap-guangzhou" and "ap-shanghai". For the inspection email sending template, configure the region where you need to send the inspection email. For the subscription email sending template, configure the region where the current subscribed instance resides.public String[] getHealthStatus()
public void setHealthStatus(String[] HealthStatus)
HealthStatus
- Sends a report with the specified health level, such as `HEALTH`, `SUB_HEALTH`, `RISK`, and `HIGH_RISK`.public Long[] getContactPerson()
public void setContactPerson(Long[] ContactPerson)
ContactPerson
- Recipient ID. Either `ContactPerson` or `ContactGroup` should be passed in.public Long[] getContactGroup()
public void setContactGroup(Long[] ContactGroup)
ContactGroup
- Recipient group ID. Either `ContactPerson` or `ContactGroup` should be passed in.Copyright © 2023. All rights reserved.