44 lines
1.0 KiB
C++
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();
|
|
}
|
|
|
|
|
|
|
|
|