/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::AccessAnalyzer::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; UpdateArchiveRuleRequest::UpdateArchiveRuleRequest() : m_analyzerNameHasBeenSet(false), m_ruleNameHasBeenSet(false), m_filterHasBeenSet(false), m_clientToken(Aws::Utils::UUID::PseudoRandomUUID()), m_clientTokenHasBeenSet(true) { } Aws::String UpdateArchiveRuleRequest::SerializePayload() const { JsonValue payload; if(m_filterHasBeenSet) { JsonValue filterJsonMap; for(auto& filterItem : m_filter) { filterJsonMap.WithObject(filterItem.first, filterItem.second.Jsonize()); } payload.WithObject("filter", std::move(filterJsonMap)); } if(m_clientTokenHasBeenSet) { payload.WithString("clientToken", m_clientToken); } return payload.View().WriteReadable(); }