This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-sesv2/source/model/PutEmailIdentityMailFromAttributesRequest.cpp

44 lines
1.0 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sesv2/model/PutEmailIdentityMailFromAttributesRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::SESV2::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
PutEmailIdentityMailFromAttributesRequest::PutEmailIdentityMailFromAttributesRequest() :
m_emailIdentityHasBeenSet(false),
m_mailFromDomainHasBeenSet(false),
m_behaviorOnMxFailure(BehaviorOnMxFailure::NOT_SET),
m_behaviorOnMxFailureHasBeenSet(false)
{
}
Aws::String PutEmailIdentityMailFromAttributesRequest::SerializePayload() const
{
JsonValue payload;
if(m_mailFromDomainHasBeenSet)
{
payload.WithString("MailFromDomain", m_mailFromDomain);
}
if(m_behaviorOnMxFailureHasBeenSet)
{
payload.WithString("BehaviorOnMxFailure", BehaviorOnMxFailureMapper::GetNameForBehaviorOnMxFailure(m_behaviorOnMxFailure));
}
return payload.View().WriteReadable();
}