/** * 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::Glue::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; using namespace Aws; GetDataQualityRulesetResult::GetDataQualityRulesetResult() { } GetDataQualityRulesetResult::GetDataQualityRulesetResult(const Aws::AmazonWebServiceResult& result) { *this = result; } GetDataQualityRulesetResult& GetDataQualityRulesetResult::operator =(const Aws::AmazonWebServiceResult& result) { JsonView jsonValue = result.GetPayload().View(); if(jsonValue.ValueExists("Name")) { m_name = jsonValue.GetString("Name"); } if(jsonValue.ValueExists("Description")) { m_description = jsonValue.GetString("Description"); } if(jsonValue.ValueExists("Ruleset")) { m_ruleset = jsonValue.GetString("Ruleset"); } if(jsonValue.ValueExists("TargetTable")) { m_targetTable = jsonValue.GetObject("TargetTable"); } if(jsonValue.ValueExists("CreatedOn")) { m_createdOn = jsonValue.GetDouble("CreatedOn"); } if(jsonValue.ValueExists("LastModifiedOn")) { m_lastModifiedOn = jsonValue.GetDouble("LastModifiedOn"); } if(jsonValue.ValueExists("RecommendationRunId")) { m_recommendationRunId = jsonValue.GetString("RecommendationRunId"); } const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amzn-requestid"); if(requestIdIter != headers.end()) { m_requestId = requestIdIter->second; } return *this; }