text: ﻿/**
   * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
   * SPDX-License-Identifier: Apache-2.0.
   */
  
  #include <aws/pricing/model/DescribeServicesResult.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::Pricing::Model;
  using namespace Aws::Utils::Json;
  using namespace Aws::Utils;
  using namespace Aws;
  
  DescribeServicesResult::DescribeServicesResult()
  {
  }
  
  DescribeServicesResult::DescribeServicesResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
  {
    *this = result;
  }
  
  DescribeServicesResult& DescribeServicesResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
  {
    JsonView jsonValue = result.GetPayload().View();
    if(jsonValue.ValueExists("Services"))
    {
      Array<JsonView> servicesJsonList = jsonValue.GetArray("Services");
      for(unsigned servicesIndex = 0; servicesIndex < servicesJsonList.GetLength(); ++servicesIndex)
      {
        m_services.push_back(servicesJsonList[servicesIndex].AsObject());
      }
    }
  
    if(jsonValue.ValueExists("FormatVersion"))
    {
      m_formatVersion = jsonValue.GetString("FormatVersion");
  
    }
  
    if(jsonValue.ValueExists("NextToken"))
    {
      m_nextToken = jsonValue.GetString("NextToken");
  
    }
  
  
  
    return *this;
  }
  