/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::LookoutMetrics::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; UpdateAlertRequest::UpdateAlertRequest() : m_alertArnHasBeenSet(false), m_alertDescriptionHasBeenSet(false), m_alertSensitivityThreshold(0), m_alertSensitivityThresholdHasBeenSet(false), m_actionHasBeenSet(false), m_alertFiltersHasBeenSet(false) { } Aws::String UpdateAlertRequest::SerializePayload() const { JsonValue payload; if(m_alertArnHasBeenSet) { payload.WithString("AlertArn", m_alertArn); } if(m_alertDescriptionHasBeenSet) { payload.WithString("AlertDescription", m_alertDescription); } if(m_alertSensitivityThresholdHasBeenSet) { payload.WithInteger("AlertSensitivityThreshold", m_alertSensitivityThreshold); } if(m_actionHasBeenSet) { payload.WithObject("Action", m_action.Jsonize()); } if(m_alertFiltersHasBeenSet) { payload.WithObject("AlertFilters", m_alertFilters.Jsonize()); } return payload.View().WriteReadable(); }