All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.workmailmessageflow.model.RawMessageContent Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon WorkMail Message Flow module holds the client classes that are used for communicating with Amazon WorkMail Message Flow Service

The newest version!
/*
 * Copyright 2019-2024 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file 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.amazonaws.services.workmailmessageflow.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Provides the MIME content of the updated email message as an S3 object. All MIME content must meet the following * criteria: *

*
    *
  • *

    * Each part of a multipart MIME message must be formatted properly. *

    *
  • *
  • *

    * Attachments must be of a content type that Amazon SES supports. For more information, see Unsupported Attachment * Types. *

    *
  • *
  • *

    * If any of the MIME parts in a message contain content that is outside of the 7-bit ASCII character range, we * recommend encoding that content. *

    *
  • *
  • *

    * Per RFC 5321, the maximum length of each line of * text, including the <CRLF>, must not exceed 1,000 characters. *

    *
  • *
  • *

    * The message must contain all the required header fields. Check the returned error message for more information. *

    *
  • *
  • *

    * The value of immutable headers must remain unchanged. Check the returned error message for more information. *

    *
  • *
  • *

    * Certain unique headers can only appear once. Check the returned error message for more information. *

    *
  • *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class RawMessageContent implements Serializable, Cloneable, StructuredPojo { /** *

* The S3 reference of an email message. *

*/ private S3Reference s3Reference; /** *

* The S3 reference of an email message. *

* * @param s3Reference * The S3 reference of an email message. */ public void setS3Reference(S3Reference s3Reference) { this.s3Reference = s3Reference; } /** *

* The S3 reference of an email message. *

* * @return The S3 reference of an email message. */ public S3Reference getS3Reference() { return this.s3Reference; } /** *

* The S3 reference of an email message. *

* * @param s3Reference * The S3 reference of an email message. * @return Returns a reference to this object so that method calls can be chained together. */ public RawMessageContent withS3Reference(S3Reference s3Reference) { setS3Reference(s3Reference); return this; } /** * 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 (getS3Reference() != null) sb.append("S3Reference: ").append(getS3Reference()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof RawMessageContent == false) return false; RawMessageContent other = (RawMessageContent) obj; if (other.getS3Reference() == null ^ this.getS3Reference() == null) return false; if (other.getS3Reference() != null && other.getS3Reference().equals(this.getS3Reference()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getS3Reference() == null) ? 0 : getS3Reference().hashCode()); return hashCode; } @Override public RawMessageContent clone() { try { return (RawMessageContent) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.workmailmessageflow.model.transform.RawMessageContentMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy