aboutsummaryrefslogtreecommitdiff
path: root/.venv/lib/python3.12/site-packages/sendgrid/helpers/mail/group_id.py
blob: 667785310a7968737e3c9a743979877d5fec08c5 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
class GroupId(object):
    """The unsubscribe group ID to associate with this email."""

    def __init__(self, group_id=None):
        """Create a GroupId object

        :param group_id: The unsubscribe group to associate with this email.
        :type group_id: integer, optional
        """
        self._group_id = None

        if group_id is not None:
            self.group_id = group_id

    @property
    def group_id(self):
        """The unsubscribe group to associate with this email.

        :rtype: integer
        """
        return self._group_id

    @group_id.setter
    def group_id(self, value):
        """The unsubscribe group to associate with this email.

        :param value: The unsubscribe group to associate with this email.
        :type value: integer
        """
        self._group_id = value

    def get(self):
        """
        Get a JSON-ready representation of this GroupId.

        :returns: This GroupId, ready for use in a request body.
        :rtype: integer
        """
        return self.group_id