/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::KMS::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; UpdateCustomKeyStoreRequest::UpdateCustomKeyStoreRequest() : m_customKeyStoreIdHasBeenSet(false), m_newCustomKeyStoreNameHasBeenSet(false), m_keyStorePasswordHasBeenSet(false), m_cloudHsmClusterIdHasBeenSet(false), m_xksProxyUriEndpointHasBeenSet(false), m_xksProxyUriPathHasBeenSet(false), m_xksProxyVpcEndpointServiceNameHasBeenSet(false), m_xksProxyAuthenticationCredentialHasBeenSet(false), m_xksProxyConnectivity(XksProxyConnectivityType::NOT_SET), m_xksProxyConnectivityHasBeenSet(false) { } Aws::String UpdateCustomKeyStoreRequest::SerializePayload() const { JsonValue payload; if(m_customKeyStoreIdHasBeenSet) { payload.WithString("CustomKeyStoreId", m_customKeyStoreId); } if(m_newCustomKeyStoreNameHasBeenSet) { payload.WithString("NewCustomKeyStoreName", m_newCustomKeyStoreName); } if(m_keyStorePasswordHasBeenSet) { payload.WithString("KeyStorePassword", m_keyStorePassword); } if(m_cloudHsmClusterIdHasBeenSet) { payload.WithString("CloudHsmClusterId", m_cloudHsmClusterId); } if(m_xksProxyUriEndpointHasBeenSet) { payload.WithString("XksProxyUriEndpoint", m_xksProxyUriEndpoint); } if(m_xksProxyUriPathHasBeenSet) { payload.WithString("XksProxyUriPath", m_xksProxyUriPath); } if(m_xksProxyVpcEndpointServiceNameHasBeenSet) { payload.WithString("XksProxyVpcEndpointServiceName", m_xksProxyVpcEndpointServiceName); } if(m_xksProxyAuthenticationCredentialHasBeenSet) { payload.WithObject("XksProxyAuthenticationCredential", m_xksProxyAuthenticationCredential.Jsonize()); } if(m_xksProxyConnectivityHasBeenSet) { payload.WithString("XksProxyConnectivity", XksProxyConnectivityTypeMapper::GetNameForXksProxyConnectivityType(m_xksProxyConnectivity)); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection UpdateCustomKeyStoreRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "TrentService.UpdateCustomKeyStore")); return headers; }