/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::SecretsManager::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; ListSecretVersionIdsRequest::ListSecretVersionIdsRequest() : m_secretIdHasBeenSet(false), m_maxResults(0), m_maxResultsHasBeenSet(false), m_nextTokenHasBeenSet(false), m_includeDeprecated(false), m_includeDeprecatedHasBeenSet(false) { } Aws::String ListSecretVersionIdsRequest::SerializePayload() const { JsonValue payload; if(m_secretIdHasBeenSet) { payload.WithString("SecretId", m_secretId); } if(m_maxResultsHasBeenSet) { payload.WithInteger("MaxResults", m_maxResults); } if(m_nextTokenHasBeenSet) { payload.WithString("NextToken", m_nextToken); } if(m_includeDeprecatedHasBeenSet) { payload.WithBool("IncludeDeprecated", m_includeDeprecated); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection ListSecretVersionIdsRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "secretsmanager.ListSecretVersionIds")); return headers; }