
com.vmware.avi.sdk.model.HealthMonitorSmtp Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of avisdk Show documentation
Show all versions of avisdk Show documentation
Avi SDK is a java API which creates a session with controller and perform CRUD operations.
/*
* Copyright 2021 VMware, Inc.
* SPDX-License-Identifier: Apache License 2.0
*/
package com.vmware.avi.sdk.model;
import java.util.*;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
/**
* The HealthMonitorSmtp is a POJO class extends AviRestResource that used for creating
* HealthMonitorSmtp.
*
* @version 1.0
* @since
*
*/
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class HealthMonitorSmtp {
@JsonProperty("domainname")
private String domainname;
@JsonProperty("mail_data")
private String mailData;
@JsonProperty("recipients_ids")
private List recipientsIds;
@JsonProperty("sender_id")
private String senderId;
@JsonProperty("ssl_attributes")
private HealthMonitorSSLAttributes sslAttributes;
/**
* This is the getter method this will return the attribute value.
* Sender domain name.
* Field introduced in 21.1.1.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return domainname
*/
public String getDomainname() {
return domainname;
}
/**
* This is the setter method to the attribute.
* Sender domain name.
* Field introduced in 21.1.1.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @param domainname set the domainname.
*/
public void setDomainname(String domainname) {
this.domainname = domainname;
}
/**
* This is the getter method this will return the attribute value.
* Mail data.
* Field introduced in 21.1.1.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return mailData
*/
public String getMailData() {
return mailData;
}
/**
* This is the setter method to the attribute.
* Mail data.
* Field introduced in 21.1.1.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @param mailData set the mailData.
*/
public void setMailData(String mailData) {
this.mailData = mailData;
}
/**
* This is the getter method this will return the attribute value.
* Mail recipients.
* Field introduced in 21.1.1.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return recipientsIds
*/
public List getRecipientsIds() {
return recipientsIds;
}
/**
* This is the setter method. this will set the recipientsIds
* Mail recipients.
* Field introduced in 21.1.1.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return recipientsIds
*/
public void setRecipientsIds(List recipientsIds) {
this.recipientsIds = recipientsIds;
}
/**
* This is the setter method this will set the recipientsIds
* Mail recipients.
* Field introduced in 21.1.1.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return recipientsIds
*/
public HealthMonitorSmtp addRecipientsIdsItem(String recipientsIdsItem) {
if (this.recipientsIds == null) {
this.recipientsIds = new ArrayList();
}
this.recipientsIds.add(recipientsIdsItem);
return this;
}
/**
* This is the getter method this will return the attribute value.
* Mail sender.
* Field introduced in 21.1.1.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return senderId
*/
public String getSenderId() {
return senderId;
}
/**
* This is the setter method to the attribute.
* Mail sender.
* Field introduced in 21.1.1.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @param senderId set the senderId.
*/
public void setSenderId(String senderId) {
this.senderId = senderId;
}
/**
* This is the getter method this will return the attribute value.
* Ssl attributes for smtps monitor.
* Field introduced in 21.1.1.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return sslAttributes
*/
public HealthMonitorSSLAttributes getSslAttributes() {
return sslAttributes;
}
/**
* This is the setter method to the attribute.
* Ssl attributes for smtps monitor.
* Field introduced in 21.1.1.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @param sslAttributes set the sslAttributes.
*/
public void setSslAttributes(HealthMonitorSSLAttributes sslAttributes) {
this.sslAttributes = sslAttributes;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
HealthMonitorSmtp objHealthMonitorSmtp = (HealthMonitorSmtp) o;
return Objects.equals(this.senderId, objHealthMonitorSmtp.senderId)&&
Objects.equals(this.recipientsIds, objHealthMonitorSmtp.recipientsIds)&&
Objects.equals(this.mailData, objHealthMonitorSmtp.mailData)&&
Objects.equals(this.domainname, objHealthMonitorSmtp.domainname)&&
Objects.equals(this.sslAttributes, objHealthMonitorSmtp.sslAttributes);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class HealthMonitorSmtp {\n");
sb.append(" domainname: ").append(toIndentedString(domainname)).append("\n");
sb.append(" mailData: ").append(toIndentedString(mailData)).append("\n");
sb.append(" recipientsIds: ").append(toIndentedString(recipientsIds)).append("\n");
sb.append(" senderId: ").append(toIndentedString(senderId)).append("\n");
sb.append(" sslAttributes: ").append(toIndentedString(sslAttributes)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy