59 lines
1.1 KiB
C++
59 lines
1.1 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/managedblockchain/model/CreateProposalRequest.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::ManagedBlockchain::Model;
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
|
|
CreateProposalRequest::CreateProposalRequest() :
|
|
m_clientRequestToken(Aws::Utils::UUID::RandomUUID()),
|
|
m_clientRequestTokenHasBeenSet(true),
|
|
m_networkIdHasBeenSet(false),
|
|
m_memberIdHasBeenSet(false),
|
|
m_actionsHasBeenSet(false),
|
|
m_descriptionHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
Aws::String CreateProposalRequest::SerializePayload() const
|
|
{
|
|
JsonValue payload;
|
|
|
|
if(m_clientRequestTokenHasBeenSet)
|
|
{
|
|
payload.WithString("ClientRequestToken", m_clientRequestToken);
|
|
|
|
}
|
|
|
|
if(m_memberIdHasBeenSet)
|
|
{
|
|
payload.WithString("MemberId", m_memberId);
|
|
|
|
}
|
|
|
|
if(m_actionsHasBeenSet)
|
|
{
|
|
payload.WithObject("Actions", m_actions.Jsonize());
|
|
|
|
}
|
|
|
|
if(m_descriptionHasBeenSet)
|
|
{
|
|
payload.WithString("Description", m_description);
|
|
|
|
}
|
|
|
|
return payload.View().WriteReadable();
|
|
}
|
|
|
|
|
|
|
|
|