/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::ServiceCatalog::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; CreateConstraintRequest::CreateConstraintRequest() : m_acceptLanguageHasBeenSet(false), m_portfolioIdHasBeenSet(false), m_productIdHasBeenSet(false), m_parametersHasBeenSet(false), m_typeHasBeenSet(false), m_descriptionHasBeenSet(false), m_idempotencyToken(Aws::Utils::UUID::PseudoRandomUUID()), m_idempotencyTokenHasBeenSet(true) { } Aws::String CreateConstraintRequest::SerializePayload() const { JsonValue payload; if(m_acceptLanguageHasBeenSet) { payload.WithString("AcceptLanguage", m_acceptLanguage); } if(m_portfolioIdHasBeenSet) { payload.WithString("PortfolioId", m_portfolioId); } if(m_productIdHasBeenSet) { payload.WithString("ProductId", m_productId); } if(m_parametersHasBeenSet) { payload.WithString("Parameters", m_parameters); } if(m_typeHasBeenSet) { payload.WithString("Type", m_type); } if(m_descriptionHasBeenSet) { payload.WithString("Description", m_description); } if(m_idempotencyTokenHasBeenSet) { payload.WithString("IdempotencyToken", m_idempotencyToken); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection CreateConstraintRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWS242ServiceCatalogService.CreateConstraint")); return headers; }