/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::VPCLattice::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; BatchUpdateRuleRequest::BatchUpdateRuleRequest() : m_listenerIdentifierHasBeenSet(false), m_rulesHasBeenSet(false), m_serviceIdentifierHasBeenSet(false) { } Aws::String BatchUpdateRuleRequest::SerializePayload() const { JsonValue payload; if(m_rulesHasBeenSet) { Aws::Utils::Array rulesJsonList(m_rules.size()); for(unsigned rulesIndex = 0; rulesIndex < rulesJsonList.GetLength(); ++rulesIndex) { rulesJsonList[rulesIndex].AsObject(m_rules[rulesIndex].Jsonize()); } payload.WithArray("rules", std::move(rulesJsonList)); } return payload.View().WriteReadable(); }