/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::OpenSearchService::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; UpdateScheduledActionRequest::UpdateScheduledActionRequest() : m_domainNameHasBeenSet(false), m_actionIDHasBeenSet(false), m_actionType(ActionType::NOT_SET), m_actionTypeHasBeenSet(false), m_scheduleAt(ScheduleAt::NOT_SET), m_scheduleAtHasBeenSet(false), m_desiredStartTime(0), m_desiredStartTimeHasBeenSet(false) { } Aws::String UpdateScheduledActionRequest::SerializePayload() const { JsonValue payload; if(m_actionIDHasBeenSet) { payload.WithString("ActionID", m_actionID); } if(m_actionTypeHasBeenSet) { payload.WithString("ActionType", ActionTypeMapper::GetNameForActionType(m_actionType)); } if(m_scheduleAtHasBeenSet) { payload.WithString("ScheduleAt", ScheduleAtMapper::GetNameForScheduleAt(m_scheduleAt)); } if(m_desiredStartTimeHasBeenSet) { payload.WithInt64("DesiredStartTime", m_desiredStartTime); } return payload.View().WriteReadable(); }