本文整理了Java中com.amazonaws.services.simpleemail.model.Body.getHtml()
方法的一些代码示例,展示了Body.getHtml()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Body.getHtml()
方法的具体详情如下:
包路径:com.amazonaws.services.simpleemail.model.Body
类名称:Body
方法名:getHtml
[英]The content of the message, in HTML format. Use this for email clients that can process HTML. You can include clickable links, formatted text, and much more in an HTML message.
[中]以HTML格式显示消息的内容。用于可以处理HTML的电子邮件客户端。您可以在HTML消息中包含可单击链接、格式化文本以及更多内容。
代码示例来源:origin: aws/aws-sdk-java
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getText() != null)
sb.append("Text: ").append(getText()).append(",");
if (getHtml() != null)
sb.append("Html: ").append(getHtml());
sb.append("}");
return sb.toString();
}
代码示例来源:origin: aws/aws-sdk-java
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getText() == null) ? 0 : getText().hashCode());
hashCode = prime * hashCode + ((getHtml() == null) ? 0 : getHtml().hashCode());
return hashCode;
}
代码示例来源:origin: aws/aws-sdk-java
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof Body == false)
return false;
Body other = (Body) obj;
if (other.getText() == null ^ this.getText() == null)
return false;
if (other.getText() != null && other.getText().equals(this.getText()) == false)
return false;
if (other.getHtml() == null ^ this.getHtml() == null)
return false;
if (other.getHtml() != null && other.getHtml().equals(this.getHtml()) == false)
return false;
return true;
}
代码示例来源:origin: aws-amplify/aws-sdk-android
/**
* Returns a string representation of this object; useful for testing and
* debugging.
*
* @return A string representation of this object.
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getText() != null)
sb.append("Text: " + getText() + ",");
if (getHtml() != null)
sb.append("Html: " + getHtml());
sb.append("}");
return sb.toString();
}
代码示例来源:origin: aws-amplify/aws-sdk-android
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getText() == null) ? 0 : getText().hashCode());
hashCode = prime * hashCode + ((getHtml() == null) ? 0 : getHtml().hashCode());
return hashCode;
}
代码示例来源:origin: aws-amplify/aws-sdk-android
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof Body == false)
return false;
Body other = (Body) obj;
if (other.getText() == null ^ this.getText() == null)
return false;
if (other.getText() != null && other.getText().equals(this.getText()) == false)
return false;
if (other.getHtml() == null ^ this.getHtml() == null)
return false;
if (other.getHtml() != null && other.getHtml().equals(this.getHtml()) == false)
return false;
return true;
}
}
代码示例来源:origin: aws/aws-sdk-java
Content html = body.getHtml();
if (html != null) {
代码示例来源:origin: aws-amplify/aws-sdk-android
public void marshall(Body _body, Request<?> request, String _prefix) {
String prefix;
if (_body.getText() != null) {
prefix = _prefix + "Text";
Content text = _body.getText();
ContentStaxMarshaller.getInstance().marshall(text, request, prefix + ".");
}
if (_body.getHtml() != null) {
prefix = _prefix + "Html";
Content html = _body.getHtml();
ContentStaxMarshaller.getInstance().marshall(html, request, prefix + ".");
}
}
代码示例来源:origin: com.amazonaws/aws-java-sdk-ses
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getText() != null)
sb.append("Text: ").append(getText()).append(",");
if (getHtml() != null)
sb.append("Html: ").append(getHtml());
sb.append("}");
return sb.toString();
}
代码示例来源:origin: com.amazonaws/aws-java-sdk-ses
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof Body == false)
return false;
Body other = (Body) obj;
if (other.getText() == null ^ this.getText() == null)
return false;
if (other.getText() != null && other.getText().equals(this.getText()) == false)
return false;
if (other.getHtml() == null ^ this.getHtml() == null)
return false;
if (other.getHtml() != null && other.getHtml().equals(this.getHtml()) == false)
return false;
return true;
}
代码示例来源:origin: com.amazonaws/aws-java-sdk-ses
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getText() == null) ? 0 : getText().hashCode());
hashCode = prime * hashCode + ((getHtml() == null) ? 0 : getHtml().hashCode());
return hashCode;
}
代码示例来源:origin: com.amazonaws/aws-java-sdk-ses
Content html = body.getHtml();
if (html != null) {
内容来源于网络,如有侵权,请联系作者删除!