/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include 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(); }