/**
 * Tribufu API
 * REST API to access Tribufu services.
 *
 * The version of the OpenAPI document: 1.1.0
 * Contact: contact@tribufu.com
 *
 * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT.
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/*
 * RevokeRequest.h
 *
 *
 */

#ifndef TRIBUFU_MODELS_RevokeRequest_H_
#define TRIBUFU_MODELS_RevokeRequest_H_

#include <stdexcept>

#include "tribufu++/ModelBase.h"

#include "tribufu++/model/TokenHintType.h"
#include <cpprest/details/basic_types.h>

namespace tribufu
{
    namespace models
    {

        class RevokeRequest : public ModelBase
        {
        public:
            RevokeRequest();
            virtual ~RevokeRequest();

            /////////////////////////////////////////////
            /// ModelBase overrides

            void validate() override;

            web::json::value toJson() const override;
            bool fromJson(const web::json::value &json) override;

            void toMultipart(std::shared_ptr<MultipartFormData> multipart,
                             const utility::string_t &namePrefix) const override;
            bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart,
                               const utility::string_t &namePrefix) override;

            /////////////////////////////////////////////
            /// RevokeRequest members

            utility::string_t getToken() const;
            bool tokenIsSet() const;
            void unsetToken();
            void setToken(const utility::string_t &value);

            std::shared_ptr<TokenHintType> getTokenTypeHint() const;
            bool tokenTypeHintIsSet() const;
            void unsetToken_type_hint();
            void setTokenTypeHint(const std::shared_ptr<TokenHintType> &value);

        protected:
            utility::string_t m_Token;
            bool m_TokenIsSet;

            std::shared_ptr<TokenHintType> m_Token_type_hint;
            bool m_Token_type_hintIsSet;
        };

    }
}

#endif /* TRIBUFU_MODELS_RevokeRequest_H_ */