#include "huaweicloud/frs/v2/model/ShowAllFaceSetsRequest.h"
namespace HuaweiCloud {
namespace Sdk {
namespace Frs {
namespace V2 {
namespace Model {
ShowAllFaceSetsRequest::ShowAllFaceSetsRequest()
{
enterpriseProjectId_ = "";
enterpriseProjectIdIsSet_ = false;
}
ShowAllFaceSetsRequest::~ShowAllFaceSetsRequest() = default;
void ShowAllFaceSetsRequest::validate()
{
}
web::json::value ShowAllFaceSetsRequest::toJson() const
{
web::json::value val = web::json::value::object();
if(enterpriseProjectIdIsSet_) {
val[utility::conversions::to_string_t("Enterprise-Project-Id")] = ModelBase::toJson(enterpriseProjectId_);
}
return val;
}
bool ShowAllFaceSetsRequest::fromJson(const web::json::value& val)
{
bool ok = true;
if(val.has_field(utility::conversions::to_string_t("Enterprise-Project-Id"))) {
const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("Enterprise-Project-Id"));
if(!fieldValue.is_null())
{
std::string refVal;
ok &= ModelBase::fromJson(fieldValue, refVal);
setEnterpriseProjectId(refVal);
}
}
return ok;
}
std::string ShowAllFaceSetsRequest::getEnterpriseProjectId() const
{
return enterpriseProjectId_;
}
void ShowAllFaceSetsRequest::setEnterpriseProjectId(const std::string& value)
{
enterpriseProjectId_ = value;
enterpriseProjectIdIsSet_ = true;
}
bool ShowAllFaceSetsRequest::enterpriseProjectIdIsSet() const
{
return enterpriseProjectIdIsSet_;
}
void ShowAllFaceSetsRequest::unsetenterpriseProjectId()
{
enterpriseProjectIdIsSet_ = false;
}
}
}
}
}
}