Class UpdateDraftActionResponseBuilder

UpdateDraftActionResponseBuilder

A builder for UpdateDraftActionResponse objects.

Methods

MethodReturn typeBrief description
build()UpdateDraftActionResponseBuilds the current update draft action response and validates it.
setUpdateDraftBccRecipientsAction(updateDraftBccRecipientsAction)UpdateDraftActionResponseBuilderSets an action that updates the email Bcc recipients of a draft.
setUpdateDraftBodyAction(updateDraftBodyAction)UpdateDraftActionResponseBuilderSet an action that updates the email body of a draft.
setUpdateDraftCcRecipientsAction(updateDraftCcRecipientsAction)UpdateDraftActionResponseBuilderSets an action that updates the Cc recipients of a draft.
setUpdateDraftSubjectAction(updateDraftSubjectAction)UpdateDraftActionResponseBuilderSets an action that updates the subject line of a draft.
setUpdateDraftToRecipientsAction(updateDraftToRecipientsAction)UpdateDraftActionResponseBuilderSets 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
updateDraftBccRecipientsActionUpdateDraftBccRecipientsActionThe 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
updateDraftBodyActionUpdateDraftBodyActionThe 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
updateDraftCcRecipientsActionUpdateDraftCcRecipientsActionThe 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
updateDraftSubjectActionUpdateDraftSubjectActionThe 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
updateDraftToRecipientsActionUpdateDraftToRecipientsActionThe action that updates the To recipients.

Return

UpdateDraftActionResponseBuilder — This object, for chaining.