51 lines
1.1 KiB
C++
51 lines
1.1 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/organizations/model/InviteAccountToOrganizationRequest.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::Organizations::Model;
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
|
|
InviteAccountToOrganizationRequest::InviteAccountToOrganizationRequest() :
|
|
m_targetHasBeenSet(false),
|
|
m_notesHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
Aws::String InviteAccountToOrganizationRequest::SerializePayload() const
|
|
{
|
|
JsonValue payload;
|
|
|
|
if(m_targetHasBeenSet)
|
|
{
|
|
payload.WithObject("Target", m_target.Jsonize());
|
|
|
|
}
|
|
|
|
if(m_notesHasBeenSet)
|
|
{
|
|
payload.WithString("Notes", m_notes);
|
|
|
|
}
|
|
|
|
return payload.View().WriteReadable();
|
|
}
|
|
|
|
Aws::Http::HeaderValueCollection InviteAccountToOrganizationRequest::GetRequestSpecificHeaders() const
|
|
{
|
|
Aws::Http::HeaderValueCollection headers;
|
|
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSOrganizationsV20161128.InviteAccountToOrganization"));
|
|
return headers;
|
|
|
|
}
|
|
|
|
|
|
|
|
|