/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include #include using namespace Aws::SecretsManager::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; UpdateSecretRequest::UpdateSecretRequest() : m_secretIdHasBeenSet(false), m_clientRequestToken(Aws::Utils::UUID::PseudoRandomUUID()), m_clientRequestTokenHasBeenSet(true), m_descriptionHasBeenSet(false), m_kmsKeyIdHasBeenSet(false), m_secretBinaryHasBeenSet(false), m_secretStringHasBeenSet(false) { } Aws::String UpdateSecretRequest::SerializePayload() const { JsonValue payload; if(m_secretIdHasBeenSet) { payload.WithString("SecretId", m_secretId); } if(m_clientRequestTokenHasBeenSet) { payload.WithString("ClientRequestToken", m_clientRequestToken); } if(m_descriptionHasBeenSet) { payload.WithString("Description", m_description); } if(m_kmsKeyIdHasBeenSet) { payload.WithString("KmsKeyId", m_kmsKeyId); } if(m_secretBinaryHasBeenSet) { payload.WithString("SecretBinary", HashingUtils::Base64Encode(m_secretBinary)); } if(m_secretStringHasBeenSet) { payload.WithString("SecretString", m_secretString); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection UpdateSecretRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "secretsmanager.UpdateSecret")); return headers; }