55 lines
1.3 KiB
C++
55 lines
1.3 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/servicecatalog/model/UpdateConstraintResult.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
#include <aws/core/AmazonWebServiceResult.h>
|
|
#include <aws/core/utils/StringUtils.h>
|
|
#include <aws/core/utils/UnreferencedParam.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::ServiceCatalog::Model;
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
using namespace Aws;
|
|
|
|
UpdateConstraintResult::UpdateConstraintResult() :
|
|
m_status(Status::NOT_SET)
|
|
{
|
|
}
|
|
|
|
UpdateConstraintResult::UpdateConstraintResult(const Aws::AmazonWebServiceResult<JsonValue>& result) :
|
|
m_status(Status::NOT_SET)
|
|
{
|
|
*this = result;
|
|
}
|
|
|
|
UpdateConstraintResult& UpdateConstraintResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
|
|
{
|
|
JsonView jsonValue = result.GetPayload().View();
|
|
if(jsonValue.ValueExists("ConstraintDetail"))
|
|
{
|
|
m_constraintDetail = jsonValue.GetObject("ConstraintDetail");
|
|
|
|
}
|
|
|
|
if(jsonValue.ValueExists("ConstraintParameters"))
|
|
{
|
|
m_constraintParameters = jsonValue.GetString("ConstraintParameters");
|
|
|
|
}
|
|
|
|
if(jsonValue.ValueExists("Status"))
|
|
{
|
|
m_status = StatusMapper::GetStatusForName(jsonValue.GetString("Status"));
|
|
|
|
}
|
|
|
|
|
|
|
|
return *this;
|
|
}
|