42 lines
1009 B
C++
42 lines
1009 B
C++
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#include <aws/email/model/DeleteIdentityPolicyRequest.h>
|
|||
|
|
#include <aws/core/utils/StringUtils.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSStringStream.h>
|
|||
|
|
|
|||
|
|
using namespace Aws::SES::Model;
|
|||
|
|
using namespace Aws::Utils;
|
|||
|
|
|
|||
|
|
DeleteIdentityPolicyRequest::DeleteIdentityPolicyRequest() :
|
|||
|
|
m_identityHasBeenSet(false),
|
|||
|
|
m_policyNameHasBeenSet(false)
|
|||
|
|
{
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
Aws::String DeleteIdentityPolicyRequest::SerializePayload() const
|
|||
|
|
{
|
|||
|
|
Aws::StringStream ss;
|
|||
|
|
ss << "Action=DeleteIdentityPolicy&";
|
|||
|
|
if(m_identityHasBeenSet)
|
|||
|
|
{
|
|||
|
|
ss << "Identity=" << StringUtils::URLEncode(m_identity.c_str()) << "&";
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(m_policyNameHasBeenSet)
|
|||
|
|
{
|
|||
|
|
ss << "PolicyName=" << StringUtils::URLEncode(m_policyName.c_str()) << "&";
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
ss << "Version=2010-12-01";
|
|||
|
|
return ss.str();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
void DeleteIdentityPolicyRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const
|
|||
|
|
{
|
|||
|
|
uri.SetQueryString(SerializePayload());
|
|||
|
|
}
|