42 lines
1023 B
C++
42 lines
1023 B
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/cloudformation/model/DescribeStackEventsRequest.h>
|
|
#include <aws/core/utils/StringUtils.h>
|
|
#include <aws/core/utils/memory/stl/AWSStringStream.h>
|
|
|
|
using namespace Aws::CloudFormation::Model;
|
|
using namespace Aws::Utils;
|
|
|
|
DescribeStackEventsRequest::DescribeStackEventsRequest() :
|
|
m_stackNameHasBeenSet(false),
|
|
m_nextTokenHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
Aws::String DescribeStackEventsRequest::SerializePayload() const
|
|
{
|
|
Aws::StringStream ss;
|
|
ss << "Action=DescribeStackEvents&";
|
|
if(m_stackNameHasBeenSet)
|
|
{
|
|
ss << "StackName=" << StringUtils::URLEncode(m_stackName.c_str()) << "&";
|
|
}
|
|
|
|
if(m_nextTokenHasBeenSet)
|
|
{
|
|
ss << "NextToken=" << StringUtils::URLEncode(m_nextToken.c_str()) << "&";
|
|
}
|
|
|
|
ss << "Version=2010-05-15";
|
|
return ss.str();
|
|
}
|
|
|
|
|
|
void DescribeStackEventsRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const
|
|
{
|
|
uri.SetQueryString(SerializePayload());
|
|
}
|