/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::OpenSearchServerless::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; UpdateSecurityConfigRequest::UpdateSecurityConfigRequest() : m_clientToken(Aws::Utils::UUID::PseudoRandomUUID()), m_clientTokenHasBeenSet(true), m_configVersionHasBeenSet(false), m_descriptionHasBeenSet(false), m_idHasBeenSet(false), m_samlOptionsHasBeenSet(false) { } Aws::String UpdateSecurityConfigRequest::SerializePayload() const { JsonValue payload; if(m_clientTokenHasBeenSet) { payload.WithString("clientToken", m_clientToken); } if(m_configVersionHasBeenSet) { payload.WithString("configVersion", m_configVersion); } if(m_descriptionHasBeenSet) { payload.WithString("description", m_description); } if(m_idHasBeenSet) { payload.WithString("id", m_id); } if(m_samlOptionsHasBeenSet) { payload.WithObject("samlOptions", m_samlOptions.Jsonize()); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection UpdateSecurityConfigRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "OpenSearchServerless.UpdateSecurityConfig")); return headers; }