/** * 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; CreateEmailIdentityRequest::CreateEmailIdentityRequest() : m_emailIdentityHasBeenSet(false), m_tagsHasBeenSet(false), m_dkimSigningAttributesHasBeenSet(false), m_configurationSetNameHasBeenSet(false) { } Aws::String CreateEmailIdentityRequest::SerializePayload() const { JsonValue payload; if(m_emailIdentityHasBeenSet) { payload.WithString("EmailIdentity", m_emailIdentity); } if(m_tagsHasBeenSet) { Aws::Utils::Array tagsJsonList(m_tags.size()); for(unsigned tagsIndex = 0; tagsIndex < tagsJsonList.GetLength(); ++tagsIndex) { tagsJsonList[tagsIndex].AsObject(m_tags[tagsIndex].Jsonize()); } payload.WithArray("Tags", std::move(tagsJsonList)); } if(m_dkimSigningAttributesHasBeenSet) { payload.WithObject("DkimSigningAttributes", m_dkimSigningAttributes.Jsonize()); } if(m_configurationSetNameHasBeenSet) { payload.WithString("ConfigurationSetName", m_configurationSetName); } return payload.View().WriteReadable(); }