/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include #include #include #include #include using namespace Aws::CustomerProfiles::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; using namespace Aws; GetCalculatedAttributeForProfileResult::GetCalculatedAttributeForProfileResult() { } GetCalculatedAttributeForProfileResult::GetCalculatedAttributeForProfileResult(const Aws::AmazonWebServiceResult& result) { *this = result; } GetCalculatedAttributeForProfileResult& GetCalculatedAttributeForProfileResult::operator =(const Aws::AmazonWebServiceResult& result) { JsonView jsonValue = result.GetPayload().View(); if(jsonValue.ValueExists("CalculatedAttributeName")) { m_calculatedAttributeName = jsonValue.GetString("CalculatedAttributeName"); } if(jsonValue.ValueExists("DisplayName")) { m_displayName = jsonValue.GetString("DisplayName"); } if(jsonValue.ValueExists("IsDataPartial")) { m_isDataPartial = jsonValue.GetString("IsDataPartial"); } if(jsonValue.ValueExists("Value")) { m_value = jsonValue.GetString("Value"); } const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amzn-requestid"); if(requestIdIter != headers.end()) { m_requestId = requestIdIter->second; } return *this; }