Class UpdateDraftActionResponseBuilder

  • UpdateDraftActionResponseBuilder helps you create responses for actions that modify email drafts.

  • It provides methods to set actions for updating various parts of a draft, such as the recipient list, subject, and body.

  • You can chain these methods together to define multiple update actions within a single response.

  • The build() method finalizes the response and ensures it's valid before it's used.

UpdateDraftActionResponseBuilder

A builder for UpdateDraftActionResponse objects.

Methods

MethodReturn typeBrief description
build() UpdateDraftActionResponse Builds the current update draft action response and validates it.
setUpdateDraftBccRecipientsAction(updateDraftBccRecipientsAction) UpdateDraftActionResponseBuilder Sets an action that updates the email Bcc recipients of a draft.
setUpdateDraftBodyAction(updateDraftBodyAction) UpdateDraftActionResponseBuilder Set an action that updates the email body of a draft.
setUpdateDraftCcRecipientsAction(updateDraftCcRecipientsAction) UpdateDraftActionResponseBuilder Sets an action that updates the Cc recipients of a draft.
setUpdateDraftSubjectAction(updateDraftSubjectAction) UpdateDraftActionResponseBuilder Sets an action that updates the subject line of a draft.
setUpdateDraftToRecipientsAction(updateDraftToRecipientsAction) UpdateDraftActionResponseBuilder Sets an action that updates the To recipients of a draft.

Detailed documentation

build()

Builds the current update draft action response and validates it.

Return

UpdateDraftActionResponse — A validated draft action response.

Throws

Error — if the constructed UpdateDraftActionResponse isn't valid.


setUpdateDraftBccRecipientsAction(updateDraftBccRecipientsAction)

Sets an action that updates the email Bcc recipients of a draft.

Parameters

NameTypeDescription
updateDraftBccRecipientsActionUpdateDraftBccRecipientsAction The action that updates the draft Bcc recipients.

Return

UpdateDraftActionResponseBuilder — This object, for chaining.


setUpdateDraftBodyAction(updateDraftBodyAction)

Set an action that updates the email body of a draft.

Parameters

NameTypeDescription
updateDraftBodyActionUpdateDraftBodyAction The action that updates the draft body.

Return

UpdateDraftActionResponseBuilder — This object, for chaining.


setUpdateDraftCcRecipientsAction(updateDraftCcRecipientsAction)

Sets an action that updates the Cc recipients of a draft.

Parameters

NameTypeDescription
updateDraftCcRecipientsActionUpdateDraftCcRecipientsAction The action that updates the draft Cc recipients.

Return

UpdateDraftActionResponseBuilder — This object, for chaining.


setUpdateDraftSubjectAction(updateDraftSubjectAction)

Sets an action that updates the subject line of a draft.

Parameters

NameTypeDescription
updateDraftSubjectActionUpdateDraftSubjectAction The action that updates the subject line.

Return

UpdateDraftActionResponseBuilder — This object, for chaining.


setUpdateDraftToRecipientsAction(updateDraftToRecipientsAction)

Sets an action that updates the To recipients of a draft.

Parameters

NameTypeDescription
updateDraftToRecipientsActionUpdateDraftToRecipientsAction The action that updates the To recipients.

Return

UpdateDraftActionResponseBuilder — This object, for chaining.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024年12月02日 UTC.