/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::SSM::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; UpdateMaintenanceWindowRequest::UpdateMaintenanceWindowRequest() : m_windowIdHasBeenSet(false), m_nameHasBeenSet(false), m_descriptionHasBeenSet(false), m_startDateHasBeenSet(false), m_endDateHasBeenSet(false), m_scheduleHasBeenSet(false), m_scheduleTimezoneHasBeenSet(false), m_scheduleOffset(0), m_scheduleOffsetHasBeenSet(false), m_duration(0), m_durationHasBeenSet(false), m_cutoff(0), m_cutoffHasBeenSet(false), m_allowUnassociatedTargets(false), m_allowUnassociatedTargetsHasBeenSet(false), m_enabled(false), m_enabledHasBeenSet(false), m_replace(false), m_replaceHasBeenSet(false) { } Aws::String UpdateMaintenanceWindowRequest::SerializePayload() const { JsonValue payload; if(m_windowIdHasBeenSet) { payload.WithString("WindowId", m_windowId); } if(m_nameHasBeenSet) { payload.WithString("Name", m_name); } if(m_descriptionHasBeenSet) { payload.WithString("Description", m_description); } if(m_startDateHasBeenSet) { payload.WithString("StartDate", m_startDate); } if(m_endDateHasBeenSet) { payload.WithString("EndDate", m_endDate); } if(m_scheduleHasBeenSet) { payload.WithString("Schedule", m_schedule); } if(m_scheduleTimezoneHasBeenSet) { payload.WithString("ScheduleTimezone", m_scheduleTimezone); } if(m_scheduleOffsetHasBeenSet) { payload.WithInteger("ScheduleOffset", m_scheduleOffset); } if(m_durationHasBeenSet) { payload.WithInteger("Duration", m_duration); } if(m_cutoffHasBeenSet) { payload.WithInteger("Cutoff", m_cutoff); } if(m_allowUnassociatedTargetsHasBeenSet) { payload.WithBool("AllowUnassociatedTargets", m_allowUnassociatedTargets); } if(m_enabledHasBeenSet) { payload.WithBool("Enabled", m_enabled); } if(m_replaceHasBeenSet) { payload.WithBool("Replace", m_replace); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection UpdateMaintenanceWindowRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AmazonSSM.UpdateMaintenanceWindow")); return headers; }