com.tencentcloudapi.dbbrain.v20191016.models.MailConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Tencent Cloud API SDK for Java
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.dbbrain.v20191016.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class MailConfiguration extends AbstractModel{
/**
* Whether to enable email sending. Valid values: 0 (No), 1 (Yes).
*/
@SerializedName("SendMail")
@Expose
private Long SendMail;
/**
* Region configuration, such as "ap-guangzhou", "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 to which the current subscribed instance belongs.
*/
@SerializedName("Region")
@Expose
private String [] Region;
/**
* Sending a report with the specified health level, such as "HEALTH", "SUB_HEALTH", "RISK", "HIGH_RISK".
*/
@SerializedName("HealthStatus")
@Expose
private String [] HealthStatus;
/**
* Contact ID. Either `ContactGroup` or `ContactID` should be passed in.
*/
@SerializedName("ContactPerson")
@Expose
private Long [] ContactPerson;
/**
* Contact group ID. Either `ContactGroup` or `ContactID` should be passed in.
*/
@SerializedName("ContactGroup")
@Expose
private Long [] ContactGroup;
/**
* Get Whether to enable email sending. Valid values: 0 (No), 1 (Yes).
* @return SendMail Whether to enable email sending. Valid values: 0 (No), 1 (Yes).
*/
public Long getSendMail() {
return this.SendMail;
}
/**
* Set Whether to enable email sending. Valid values: 0 (No), 1 (Yes).
* @param SendMail Whether to enable email sending. Valid values: 0 (No), 1 (Yes).
*/
public void setSendMail(Long SendMail) {
this.SendMail = SendMail;
}
/**
* Get Region configuration, such as "ap-guangzhou", "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 to which the current subscribed instance belongs.
* @return Region Region configuration, such as "ap-guangzhou", "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 to which the current subscribed instance belongs.
*/
public String [] getRegion() {
return this.Region;
}
/**
* Set Region configuration, such as "ap-guangzhou", "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 to which the current subscribed instance belongs.
* @param Region Region configuration, such as "ap-guangzhou", "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 to which the current subscribed instance belongs.
*/
public void setRegion(String [] Region) {
this.Region = Region;
}
/**
* Get Sending a report with the specified health level, such as "HEALTH", "SUB_HEALTH", "RISK", "HIGH_RISK".
* @return HealthStatus Sending a report with the specified health level, such as "HEALTH", "SUB_HEALTH", "RISK", "HIGH_RISK".
*/
public String [] getHealthStatus() {
return this.HealthStatus;
}
/**
* Set Sending a report with the specified health level, such as "HEALTH", "SUB_HEALTH", "RISK", "HIGH_RISK".
* @param HealthStatus Sending a report with the specified health level, such as "HEALTH", "SUB_HEALTH", "RISK", "HIGH_RISK".
*/
public void setHealthStatus(String [] HealthStatus) {
this.HealthStatus = HealthStatus;
}
/**
* Get Contact ID. Either `ContactGroup` or `ContactID` should be passed in.
* @return ContactPerson Contact ID. Either `ContactGroup` or `ContactID` should be passed in.
*/
public Long [] getContactPerson() {
return this.ContactPerson;
}
/**
* Set Contact ID. Either `ContactGroup` or `ContactID` should be passed in.
* @param ContactPerson Contact ID. Either `ContactGroup` or `ContactID` should be passed in.
*/
public void setContactPerson(Long [] ContactPerson) {
this.ContactPerson = ContactPerson;
}
/**
* Get Contact group ID. Either `ContactGroup` or `ContactID` should be passed in.
* @return ContactGroup Contact group ID. Either `ContactGroup` or `ContactID` should be passed in.
*/
public Long [] getContactGroup() {
return this.ContactGroup;
}
/**
* Set Contact group ID. Either `ContactGroup` or `ContactID` should be passed in.
* @param ContactGroup Contact group ID. Either `ContactGroup` or `ContactID` should be passed in.
*/
public void setContactGroup(Long [] ContactGroup) {
this.ContactGroup = ContactGroup;
}
public MailConfiguration() {
}
/**
* 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.
*/
public MailConfiguration(MailConfiguration source) {
if (source.SendMail != null) {
this.SendMail = new Long(source.SendMail);
}
if (source.Region != null) {
this.Region = new String[source.Region.length];
for (int i = 0; i < source.Region.length; i++) {
this.Region[i] = new String(source.Region[i]);
}
}
if (source.HealthStatus != null) {
this.HealthStatus = new String[source.HealthStatus.length];
for (int i = 0; i < source.HealthStatus.length; i++) {
this.HealthStatus[i] = new String(source.HealthStatus[i]);
}
}
if (source.ContactPerson != null) {
this.ContactPerson = new Long[source.ContactPerson.length];
for (int i = 0; i < source.ContactPerson.length; i++) {
this.ContactPerson[i] = new Long(source.ContactPerson[i]);
}
}
if (source.ContactGroup != null) {
this.ContactGroup = new Long[source.ContactGroup.length];
for (int i = 0; i < source.ContactGroup.length; i++) {
this.ContactGroup[i] = new Long(source.ContactGroup[i]);
}
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "SendMail", this.SendMail);
this.setParamArraySimple(map, prefix + "Region.", this.Region);
this.setParamArraySimple(map, prefix + "HealthStatus.", this.HealthStatus);
this.setParamArraySimple(map, prefix + "ContactPerson.", this.ContactPerson);
this.setParamArraySimple(map, prefix + "ContactGroup.", this.ContactGroup);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy