/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::CustomerProfiles::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; UpdateDomainRequest::UpdateDomainRequest() : m_domainNameHasBeenSet(false), m_defaultExpirationDays(0), m_defaultExpirationDaysHasBeenSet(false), m_defaultEncryptionKeyHasBeenSet(false), m_deadLetterQueueUrlHasBeenSet(false), m_matchingHasBeenSet(false), m_ruleBasedMatchingHasBeenSet(false), m_tagsHasBeenSet(false) { } Aws::String UpdateDomainRequest::SerializePayload() const { JsonValue payload; if(m_defaultExpirationDaysHasBeenSet) { payload.WithInteger("DefaultExpirationDays", m_defaultExpirationDays); } if(m_defaultEncryptionKeyHasBeenSet) { payload.WithString("DefaultEncryptionKey", m_defaultEncryptionKey); } if(m_deadLetterQueueUrlHasBeenSet) { payload.WithString("DeadLetterQueueUrl", m_deadLetterQueueUrl); } if(m_matchingHasBeenSet) { payload.WithObject("Matching", m_matching.Jsonize()); } if(m_ruleBasedMatchingHasBeenSet) { payload.WithObject("RuleBasedMatching", m_ruleBasedMatching.Jsonize()); } if(m_tagsHasBeenSet) { JsonValue tagsJsonMap; for(auto& tagsItem : m_tags) { tagsJsonMap.WithString(tagsItem.first, tagsItem.second); } payload.WithObject("Tags", std::move(tagsJsonMap)); } return payload.View().WriteReadable(); }