/** * 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::SESV2::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; using namespace Aws; GetConfigurationSetResult::GetConfigurationSetResult() { } GetConfigurationSetResult::GetConfigurationSetResult(const Aws::AmazonWebServiceResult& result) { *this = result; } GetConfigurationSetResult& GetConfigurationSetResult::operator =(const Aws::AmazonWebServiceResult& result) { JsonView jsonValue = result.GetPayload().View(); if(jsonValue.ValueExists("ConfigurationSetName")) { m_configurationSetName = jsonValue.GetString("ConfigurationSetName"); } if(jsonValue.ValueExists("TrackingOptions")) { m_trackingOptions = jsonValue.GetObject("TrackingOptions"); } if(jsonValue.ValueExists("DeliveryOptions")) { m_deliveryOptions = jsonValue.GetObject("DeliveryOptions"); } if(jsonValue.ValueExists("ReputationOptions")) { m_reputationOptions = jsonValue.GetObject("ReputationOptions"); } if(jsonValue.ValueExists("SendingOptions")) { m_sendingOptions = jsonValue.GetObject("SendingOptions"); } if(jsonValue.ValueExists("Tags")) { Aws::Utils::Array tagsJsonList = jsonValue.GetArray("Tags"); for(unsigned tagsIndex = 0; tagsIndex < tagsJsonList.GetLength(); ++tagsIndex) { m_tags.push_back(tagsJsonList[tagsIndex].AsObject()); } } if(jsonValue.ValueExists("SuppressionOptions")) { m_suppressionOptions = jsonValue.GetObject("SuppressionOptions"); } if(jsonValue.ValueExists("VdmOptions")) { m_vdmOptions = jsonValue.GetObject("VdmOptions"); } const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amzn-requestid"); if(requestIdIter != headers.end()) { m_requestId = requestIdIter->second; } return *this; }