/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace SSM { namespace Model { class GetCalendarStateResult { public: AWS_SSM_API GetCalendarStateResult(); AWS_SSM_API GetCalendarStateResult(const Aws::AmazonWebServiceResult& result); AWS_SSM_API GetCalendarStateResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The state of the calendar. An OPEN calendar indicates that * actions are allowed to proceed, and a CLOSED calendar indicates * that actions aren't allowed to proceed.

*/ inline const CalendarState& GetState() const{ return m_state; } /** *

The state of the calendar. An OPEN calendar indicates that * actions are allowed to proceed, and a CLOSED calendar indicates * that actions aren't allowed to proceed.

*/ inline void SetState(const CalendarState& value) { m_state = value; } /** *

The state of the calendar. An OPEN calendar indicates that * actions are allowed to proceed, and a CLOSED calendar indicates * that actions aren't allowed to proceed.

*/ inline void SetState(CalendarState&& value) { m_state = std::move(value); } /** *

The state of the calendar. An OPEN calendar indicates that * actions are allowed to proceed, and a CLOSED calendar indicates * that actions aren't allowed to proceed.

*/ inline GetCalendarStateResult& WithState(const CalendarState& value) { SetState(value); return *this;} /** *

The state of the calendar. An OPEN calendar indicates that * actions are allowed to proceed, and a CLOSED calendar indicates * that actions aren't allowed to proceed.

*/ inline GetCalendarStateResult& WithState(CalendarState&& value) { SetState(std::move(value)); return *this;} /** *

The time, as an ISO 8601 * string, that you specified in your command. If you don't specify a time, * GetCalendarState uses the current time.

*/ inline const Aws::String& GetAtTime() const{ return m_atTime; } /** *

The time, as an ISO 8601 * string, that you specified in your command. If you don't specify a time, * GetCalendarState uses the current time.

*/ inline void SetAtTime(const Aws::String& value) { m_atTime = value; } /** *

The time, as an ISO 8601 * string, that you specified in your command. If you don't specify a time, * GetCalendarState uses the current time.

*/ inline void SetAtTime(Aws::String&& value) { m_atTime = std::move(value); } /** *

The time, as an ISO 8601 * string, that you specified in your command. If you don't specify a time, * GetCalendarState uses the current time.

*/ inline void SetAtTime(const char* value) { m_atTime.assign(value); } /** *

The time, as an ISO 8601 * string, that you specified in your command. If you don't specify a time, * GetCalendarState uses the current time.

*/ inline GetCalendarStateResult& WithAtTime(const Aws::String& value) { SetAtTime(value); return *this;} /** *

The time, as an ISO 8601 * string, that you specified in your command. If you don't specify a time, * GetCalendarState uses the current time.

*/ inline GetCalendarStateResult& WithAtTime(Aws::String&& value) { SetAtTime(std::move(value)); return *this;} /** *

The time, as an ISO 8601 * string, that you specified in your command. If you don't specify a time, * GetCalendarState uses the current time.

*/ inline GetCalendarStateResult& WithAtTime(const char* value) { SetAtTime(value); return *this;} /** *

The time, as an ISO 8601 * string, that the calendar state will change. If the current calendar state is * OPEN, NextTransitionTime indicates when the calendar * state changes to CLOSED, and vice-versa.

*/ inline const Aws::String& GetNextTransitionTime() const{ return m_nextTransitionTime; } /** *

The time, as an ISO 8601 * string, that the calendar state will change. If the current calendar state is * OPEN, NextTransitionTime indicates when the calendar * state changes to CLOSED, and vice-versa.

*/ inline void SetNextTransitionTime(const Aws::String& value) { m_nextTransitionTime = value; } /** *

The time, as an ISO 8601 * string, that the calendar state will change. If the current calendar state is * OPEN, NextTransitionTime indicates when the calendar * state changes to CLOSED, and vice-versa.

*/ inline void SetNextTransitionTime(Aws::String&& value) { m_nextTransitionTime = std::move(value); } /** *

The time, as an ISO 8601 * string, that the calendar state will change. If the current calendar state is * OPEN, NextTransitionTime indicates when the calendar * state changes to CLOSED, and vice-versa.

*/ inline void SetNextTransitionTime(const char* value) { m_nextTransitionTime.assign(value); } /** *

The time, as an ISO 8601 * string, that the calendar state will change. If the current calendar state is * OPEN, NextTransitionTime indicates when the calendar * state changes to CLOSED, and vice-versa.

*/ inline GetCalendarStateResult& WithNextTransitionTime(const Aws::String& value) { SetNextTransitionTime(value); return *this;} /** *

The time, as an ISO 8601 * string, that the calendar state will change. If the current calendar state is * OPEN, NextTransitionTime indicates when the calendar * state changes to CLOSED, and vice-versa.

*/ inline GetCalendarStateResult& WithNextTransitionTime(Aws::String&& value) { SetNextTransitionTime(std::move(value)); return *this;} /** *

The time, as an ISO 8601 * string, that the calendar state will change. If the current calendar state is * OPEN, NextTransitionTime indicates when the calendar * state changes to CLOSED, and vice-versa.

*/ inline GetCalendarStateResult& WithNextTransitionTime(const char* value) { SetNextTransitionTime(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetCalendarStateResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetCalendarStateResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetCalendarStateResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: CalendarState m_state; Aws::String m_atTime; Aws::String m_nextTransitionTime; Aws::String m_requestId; }; } // namespace Model } // namespace SSM } // namespace Aws