本文整理了Java中com.amazonaws.services.simpleemail.model.Body.getText()
方法的一些代码示例,展示了Body.getText()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Body.getText()
方法的具体详情如下:
包路径:com.amazonaws.services.simpleemail.model.Body
类名称:Body
方法名:getText
[英]The content of the message, in text format. Use this for text-based email clients, or clients on high-latency networks (such as mobile devices).
[中]以文本格式显示消息的内容。用于基于文本的电子邮件客户端,或高延迟网络(如移动设备)上的客户端。
代码示例来源: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 text = body.getText();
if (text != 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 text = body.getText();
if (text != null) {
内容来源于网络,如有侵权,请联系作者删除!