/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace IoT { namespace Model { /** *

An optional configuration within the SchedulingConfig to setup a * recurring maintenance window with a predetermined start time and duration for * the rollout of a job document to all devices in a target group for a * job.

See Also:

AWS * API Reference

*/ class MaintenanceWindow { public: AWS_IOT_API MaintenanceWindow(); AWS_IOT_API MaintenanceWindow(Aws::Utils::Json::JsonView jsonValue); AWS_IOT_API MaintenanceWindow& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Displays the start time of the next maintenance window.

*/ inline const Aws::String& GetStartTime() const{ return m_startTime; } /** *

Displays the start time of the next maintenance window.

*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *

Displays the start time of the next maintenance window.

*/ inline void SetStartTime(const Aws::String& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *

Displays the start time of the next maintenance window.

*/ inline void SetStartTime(Aws::String&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *

Displays the start time of the next maintenance window.

*/ inline void SetStartTime(const char* value) { m_startTimeHasBeenSet = true; m_startTime.assign(value); } /** *

Displays the start time of the next maintenance window.

*/ inline MaintenanceWindow& WithStartTime(const Aws::String& value) { SetStartTime(value); return *this;} /** *

Displays the start time of the next maintenance window.

*/ inline MaintenanceWindow& WithStartTime(Aws::String&& value) { SetStartTime(std::move(value)); return *this;} /** *

Displays the start time of the next maintenance window.

*/ inline MaintenanceWindow& WithStartTime(const char* value) { SetStartTime(value); return *this;} /** *

Displays the duration of the next maintenance window.

*/ inline int GetDurationInMinutes() const{ return m_durationInMinutes; } /** *

Displays the duration of the next maintenance window.

*/ inline bool DurationInMinutesHasBeenSet() const { return m_durationInMinutesHasBeenSet; } /** *

Displays the duration of the next maintenance window.

*/ inline void SetDurationInMinutes(int value) { m_durationInMinutesHasBeenSet = true; m_durationInMinutes = value; } /** *

Displays the duration of the next maintenance window.

*/ inline MaintenanceWindow& WithDurationInMinutes(int value) { SetDurationInMinutes(value); return *this;} private: Aws::String m_startTime; bool m_startTimeHasBeenSet = false; int m_durationInMinutes; bool m_durationInMinutesHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws