/**
 * Nsmf_PDUSession
 * SMF PDU Session Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. 
 *
 * The version of the OpenAPI document: 1.1.0.alpha-1
 *
 * NOTE: This class is auto generated by OpenAPI-Generator 4.1.1-SNAPSHOT.
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/*
 * HsmfUpdateError.h
 *
 * 
 */

#ifndef OAI_SMF_MODEL_HsmfUpdateError_H_
#define OAI_SMF_MODEL_HsmfUpdateError_H_


#include "../ModelBase.h"

#include "ProblemDetails_2.h"
#include "RefToBinaryData.h"
#include <cpprest/details/basic_types.h>

namespace oai {
namespace smf {
namespace model {


/// <summary>
/// 
/// </summary>
class  HsmfUpdateError
    : public ModelBase
{
public:
    HsmfUpdateError();
    virtual ~HsmfUpdateError();

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

    void validate() override;

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

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

    /////////////////////////////////////////////
    /// HsmfUpdateError members

    /// <summary>
    /// 
    /// </summary>
    std::shared_ptr<ProblemDetails_2> getError() const;
    
    void setError(const std::shared_ptr<ProblemDetails_2>& value);

    /// <summary>
    /// 
    /// </summary>
    int32_t getPti() const;
    bool ptiIsSet() const;
    void unsetPti();

    void setPti(int32_t value);

    /// <summary>
    /// 
    /// </summary>
    utility::string_t getN1smCause() const;
    bool n1smCauseIsSet() const;
    void unsetN1smCause();

    void setN1smCause(const utility::string_t& value);

    /// <summary>
    /// 
    /// </summary>
    std::shared_ptr<RefToBinaryData> getN1SmInfoToUe() const;
    bool n1SmInfoToUeIsSet() const;
    void unsetN1SmInfoToUe();

    void setN1SmInfoToUe(const std::shared_ptr<RefToBinaryData>& value);

    /// <summary>
    /// 
    /// </summary>
    int32_t getBackOffTimer() const;
    bool backOffTimerIsSet() const;
    void unsetBackOffTimer();

    void setBackOffTimer(int32_t value);

    /// <summary>
    /// 
    /// </summary>
    utility::datetime getRecoveryTime() const;
    bool recoveryTimeIsSet() const;
    void unsetRecoveryTime();

    void setRecoveryTime(const utility::datetime& value);


protected:
    std::shared_ptr<ProblemDetails_2> m_Error;
        int32_t m_Pti;
    bool m_PtiIsSet;
    utility::string_t m_N1smCause;
    bool m_N1smCauseIsSet;
    std::shared_ptr<RefToBinaryData> m_N1SmInfoToUe;
    bool m_N1SmInfoToUeIsSet;
    int32_t m_BackOffTimer;
    bool m_BackOffTimerIsSet;
    utility::datetime m_RecoveryTime;
    bool m_RecoveryTimeIsSet;
};


}
}
}

#endif /* OAI_SMF_MODEL_HsmfUpdateError_H_ */
