Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/26 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Il n'y a pas l'information dont j'ai besoin","missingTheInformationINeed","thumb-down"],["Trop compliqué/Trop d'étapes","tooComplicatedTooManySteps","thumb-down"],["Obsolète","outOfDate","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Mauvais exemple/Erreur de code","samplesCodeIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/07/26 (UTC)."],[[["\u003cp\u003eThe \u003ccode\u003eUpdateDraftSubjectAction\u003c/code\u003e allows modification of an email draft's subject line.\u003c/p\u003e\n"],["\u003cp\u003eThis action is achieved using the \u003ccode\u003eaddUpdateSubject(subject)\u003c/code\u003e method, which takes the new subject as a string parameter.\u003c/p\u003e\n"],["\u003cp\u003eUpon execution, the method returns an \u003ccode\u003eUpdateDraftSubjectAction\u003c/code\u003e object, enabling chained operations.\u003c/p\u003e\n"]]],[],null,["# Class UpdateDraftSubjectAction\n\nUpdateDraftSubjectAction\n\nUpdates the subject line of an email draft. \n\n### Methods\n\n| Method | Return type | Brief description |\n|--------------------------------------------------------|-------------------------------|---------------------------------------------|\n| [addUpdateSubject(subject)](#addUpdateSubject(String)) | [UpdateDraftSubjectAction](#) | Updates the subject line of an email draft. |\n\nDetailed documentation\n----------------------\n\n### `add``Update``Subject(subject)`\n\nUpdates the subject line of an email draft.\n\n#### Parameters\n\n| Name | Type | Description |\n|-----------|----------|------------------------------------------------|\n| `subject` | `String` | The subject line to insert to the email draft. |\n\n#### Return\n\n\n[UpdateDraftSubjectAction](#) --- This object, for chaining."]]