/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::WAF::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; UpdateSqlInjectionMatchSetRequest::UpdateSqlInjectionMatchSetRequest() : m_sqlInjectionMatchSetIdHasBeenSet(false), m_changeTokenHasBeenSet(false), m_updatesHasBeenSet(false) { } Aws::String UpdateSqlInjectionMatchSetRequest::SerializePayload() const { JsonValue payload; if(m_sqlInjectionMatchSetIdHasBeenSet) { payload.WithString("SqlInjectionMatchSetId", m_sqlInjectionMatchSetId); } if(m_changeTokenHasBeenSet) { payload.WithString("ChangeToken", m_changeToken); } if(m_updatesHasBeenSet) { Aws::Utils::Array updatesJsonList(m_updates.size()); for(unsigned updatesIndex = 0; updatesIndex < updatesJsonList.GetLength(); ++updatesIndex) { updatesJsonList[updatesIndex].AsObject(m_updates[updatesIndex].Jsonize()); } payload.WithArray("Updates", std::move(updatesJsonList)); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection UpdateSqlInjectionMatchSetRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSWAF_20150824.UpdateSqlInjectionMatchSet")); return headers; }