/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::EKS::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; UpdateNodegroupConfigRequest::UpdateNodegroupConfigRequest() : m_clusterNameHasBeenSet(false), m_nodegroupNameHasBeenSet(false), m_labelsHasBeenSet(false), m_taintsHasBeenSet(false), m_scalingConfigHasBeenSet(false), m_updateConfigHasBeenSet(false), m_clientRequestToken(Aws::Utils::UUID::PseudoRandomUUID()), m_clientRequestTokenHasBeenSet(true) { } Aws::String UpdateNodegroupConfigRequest::SerializePayload() const { JsonValue payload; if(m_labelsHasBeenSet) { payload.WithObject("labels", m_labels.Jsonize()); } if(m_taintsHasBeenSet) { payload.WithObject("taints", m_taints.Jsonize()); } if(m_scalingConfigHasBeenSet) { payload.WithObject("scalingConfig", m_scalingConfig.Jsonize()); } if(m_updateConfigHasBeenSet) { payload.WithObject("updateConfig", m_updateConfig.Jsonize()); } if(m_clientRequestTokenHasBeenSet) { payload.WithString("clientRequestToken", m_clientRequestToken); } return payload.View().WriteReadable(); }