44 lines
777 B
C++
44 lines
777 B
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/chime/model/CreateBotRequest.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::Chime::Model;
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
|
|
CreateBotRequest::CreateBotRequest() :
|
|
m_accountIdHasBeenSet(false),
|
|
m_displayNameHasBeenSet(false),
|
|
m_domainHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
Aws::String CreateBotRequest::SerializePayload() const
|
|
{
|
|
JsonValue payload;
|
|
|
|
if(m_displayNameHasBeenSet)
|
|
{
|
|
payload.WithString("DisplayName", m_displayName);
|
|
|
|
}
|
|
|
|
if(m_domainHasBeenSet)
|
|
{
|
|
payload.WithString("Domain", m_domain);
|
|
|
|
}
|
|
|
|
return payload.View().WriteReadable();
|
|
}
|
|
|
|
|
|
|
|
|