Tabnine Logo
RawMessage.setData
Code IndexAdd Tabnine to your IDE (free)

How to use
setData
method
in
com.amazonaws.services.simpleemail.model.RawMessage

Best Java code snippets using com.amazonaws.services.simpleemail.model.RawMessage.setData (Showing top 10 results out of 315)

origin: aws/aws-sdk-java

setData(data);
origin: aws/aws-sdk-java

setData(data);
return this;
origin: aws/aws-sdk-java

    .toByteArray();
RawMessage message = new RawMessage();
message.setData(ByteBuffer.wrap(messageByteArray));
req.setRawMessage(message);
return req;
origin: aws/aws-sdk-java

public RawMessage unmarshall(StaxUnmarshallerContext context) throws Exception {
  RawMessage rawMessage = new RawMessage();
  int originalDepth = context.getCurrentDepth();
  int targetDepth = originalDepth + 1;
  if (context.isStartOfDocument())
    targetDepth += 1;
  while (true) {
    XMLEvent xmlEvent = context.nextEvent();
    if (xmlEvent.isEndDocument())
      return rawMessage;
    if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) {
      if (context.testExpression("Data", targetDepth)) {
        rawMessage.setData(ByteBufferStaxUnmarshaller.getInstance().unmarshall(context));
        continue;
      }
    } else if (xmlEvent.isEndElement()) {
      if (context.getCurrentDepth() < originalDepth) {
        return rawMessage;
      }
    }
  }
}
origin: aws-amplify/aws-sdk-android

setData(data);
origin: aws-amplify/aws-sdk-android

public RawMessage unmarshall(StaxUnmarshallerContext context) throws Exception {
  RawMessage rawMessage = new RawMessage();
  int originalDepth = context.getCurrentDepth();
  int targetDepth = originalDepth + 1;
  if (context.isStartOfDocument())
    targetDepth += 2;
  while (true) {
    int xmlEvent = context.nextEvent();
    if (xmlEvent == XmlPullParser.END_DOCUMENT)
      break;
    if (xmlEvent == XmlPullParser.START_TAG) {
      if (context.testExpression("Data", targetDepth)) {
        rawMessage
            .setData(ByteBufferStaxUnmarshaller.getInstance().unmarshall(context));
        continue;
      }
    } else if (xmlEvent == XmlPullParser.END_TAG) {
      if (context.getCurrentDepth() < originalDepth) {
        break;
      }
    }
  }
  return rawMessage;
}
origin: com.amazonaws/aws-java-sdk-ses

setData(data);
origin: com.amazonaws/aws-java-sdk-ses

setData(data);
return this;
origin: com.amazonaws/aws-java-sdk-ses

    .toByteArray();
RawMessage message = new RawMessage();
message.setData(ByteBuffer.wrap(messageByteArray));
req.setRawMessage(message);
return req;
origin: com.amazonaws/aws-java-sdk-ses

public RawMessage unmarshall(StaxUnmarshallerContext context) throws Exception {
  RawMessage rawMessage = new RawMessage();
  int originalDepth = context.getCurrentDepth();
  int targetDepth = originalDepth + 1;
  if (context.isStartOfDocument())
    targetDepth += 1;
  while (true) {
    XMLEvent xmlEvent = context.nextEvent();
    if (xmlEvent.isEndDocument())
      return rawMessage;
    if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) {
      if (context.testExpression("Data", targetDepth)) {
        rawMessage.setData(ByteBufferStaxUnmarshaller.getInstance().unmarshall(context));
        continue;
      }
    } else if (xmlEvent.isEndElement()) {
      if (context.getCurrentDepth() < originalDepth) {
        return rawMessage;
      }
    }
  }
}
com.amazonaws.services.simpleemail.modelRawMessagesetData

Javadoc

The raw data of the message. This data needs to base64-encoded if you are accessing Amazon SES directly through the HTTPS interface. If you are accessing Amazon SES using an AWS SDK, the SDK takes care of the base 64-encoding for you. In all cases, the client must ensure that the message format complies with Internet email standards regarding email header fields, MIME types, and MIME encoding.

The To:, CC:, and BCC: headers in the raw message can contain a group list.

If you are using SendRawEmail with sending authorization, you can include X-headers in the raw message to specify the "Source," "From," and "Return-Path" addresses. For more information, see the documentation for SendRawEmail.

Do not include these X-headers in the DKIM signature, because they are removed by Amazon SES before sending the email.

For more information, go to the Amazon SES Developer Guide.

The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.

Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.

Popular methods of RawMessage

  • <init>
    Constructs a new RawMessage object. Callers should use the setter or fluent setter (with...) methods
  • equals
  • getData
    The raw data of the message. This data needs to base64-encoded if you are accessing Amazon SES dire
  • hashCode
  • withData
    The raw data of the message. This data needs to base64-encoded if you are accessing Amazon SES dire

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSystemService (Context)
  • scheduleAtFixedRate (Timer)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • JComboBox (javax.swing)
  • JOptionPane (javax.swing)
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now