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