# coding: utf-8

"""
    Pinterest REST API

    Pinterest's REST API

    The version of the OpenAPI document: 5.23.0
    Contact: blah+oapicf@cliffano.com
    Generated by OpenAPI Generator (https://openapi-generator.tech)

    Do not edit the class manually.
"""  # noqa: E501


from __future__ import annotations
import json
from enum import Enum
from typing_extensions import Self


class TargetingSpecAgeBucket(str, Enum):
    """
    TargetingSpecAgeBucket
    """

    """
    allowed enum values
    """
    ENUM_18_MINUS_24 = '18-24'
    ENUM_19_PLUS = '19+'
    ENUM_20_PLUS = '20+'
    ENUM_21_PLUS = '21+'
    ENUM_25_MINUS_34 = '25-34'
    ENUM_35_MINUS_44 = '35-44'
    ENUM_45_MINUS_49 = '45-49'
    ENUM_50_MINUS_54 = '50-54'
    ENUM_55_MINUS_64 = '55-64'
    ENUM_65_PLUS = '65+'

    @classmethod
    def from_json(cls, json_str: str) -> Self:
        """Create an instance of TargetingSpecAgeBucket from a JSON string"""
        return cls(json.loads(json_str))


