text: ﻿/**
   * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
   * SPDX-License-Identifier: Apache-2.0.
   */
  
  #include <aws/opsworks/model/UntagResourceRequest.h>
  #include <aws/core/utils/json/JsonSerializer.h>
  
  #include <utility>
  
  using namespace Aws::OpsWorks::Model;
  using namespace Aws::Utils::Json;
  using namespace Aws::Utils;
  
  UntagResourceRequest::UntagResourceRequest() : 
      m_resourceArnHasBeenSet(false),
      m_tagKeysHasBeenSet(false)
  {
  }
  
  Aws::String UntagResourceRequest::SerializePayload() const
  {
    JsonValue payload;
  
    if(m_resourceArnHasBeenSet)
    {
     payload.WithString("ResourceArn", m_resourceArn);
  
    }
  
    if(m_tagKeysHasBeenSet)
    {
     Array<JsonValue> tagKeysJsonList(m_tagKeys.size());
     for(unsigned tagKeysIndex = 0; tagKeysIndex < tagKeysJsonList.GetLength(); ++tagKeysIndex)
     {
       tagKeysJsonList[tagKeysIndex].AsString(m_tagKeys[tagKeysIndex]);
     }
     payload.WithArray("TagKeys", std::move(tagKeysJsonList));
  
    }
  
    return payload.View().WriteReadable();
  }
  
  Aws::Http::HeaderValueCollection UntagResourceRequest::GetRequestSpecificHeaders() const
  {
    Aws::Http::HeaderValueCollection headers;
    headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "OpsWorks_20130218.UntagResource"));
    return headers;
  
  }
  
  
  
  
  