text: ﻿/**
   * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
   * SPDX-License-Identifier: Apache-2.0.
   */
  
  #include <aws/ssm-incidents/model/PutResourcePolicyRequest.h>
  #include <aws/core/utils/json/JsonSerializer.h>
  
  #include <utility>
  
  using namespace Aws::SSMIncidents::Model;
  using namespace Aws::Utils::Json;
  using namespace Aws::Utils;
  
  PutResourcePolicyRequest::PutResourcePolicyRequest() : 
      m_policyHasBeenSet(false),
      m_resourceArnHasBeenSet(false)
  {
  }
  
  Aws::String PutResourcePolicyRequest::SerializePayload() const
  {
    JsonValue payload;
  
    if(m_policyHasBeenSet)
    {
     payload.WithString("policy", m_policy);
  
    }
  
    if(m_resourceArnHasBeenSet)
    {
     payload.WithString("resourceArn", m_resourceArn);
  
    }
  
    return payload.View().WriteReadable();
  }
  
  
  
  
  