Class UpdateDraftSubjectAction
Stay organized with collections
Save and categorize content based on your preferences.
UpdateDraftSubjectAction
Updates the subject line of an email draft.
Detailed documentation
addUpdateSubject(subject)
Updates the subject line of an email draft.
Parameters
Name | Type | Description |
subject | String | The subject line to insert to the email draft. |
Return
UpdateDraftSubjectAction
— 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.
[null,null,["Last updated 2024-12-02 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."]]