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

Information about an override specified for an on-call * rotation.

See Also:

AWS * API Reference

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

The Amazon Resource Name (ARN) of the override to an on-call rotation.

*/ inline const Aws::String& GetRotationOverrideId() const{ return m_rotationOverrideId; } /** *

The Amazon Resource Name (ARN) of the override to an on-call rotation.

*/ inline bool RotationOverrideIdHasBeenSet() const { return m_rotationOverrideIdHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the override to an on-call rotation.

*/ inline void SetRotationOverrideId(const Aws::String& value) { m_rotationOverrideIdHasBeenSet = true; m_rotationOverrideId = value; } /** *

The Amazon Resource Name (ARN) of the override to an on-call rotation.

*/ inline void SetRotationOverrideId(Aws::String&& value) { m_rotationOverrideIdHasBeenSet = true; m_rotationOverrideId = std::move(value); } /** *

The Amazon Resource Name (ARN) of the override to an on-call rotation.

*/ inline void SetRotationOverrideId(const char* value) { m_rotationOverrideIdHasBeenSet = true; m_rotationOverrideId.assign(value); } /** *

The Amazon Resource Name (ARN) of the override to an on-call rotation.

*/ inline RotationOverride& WithRotationOverrideId(const Aws::String& value) { SetRotationOverrideId(value); return *this;} /** *

The Amazon Resource Name (ARN) of the override to an on-call rotation.

*/ inline RotationOverride& WithRotationOverrideId(Aws::String&& value) { SetRotationOverrideId(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the override to an on-call rotation.

*/ inline RotationOverride& WithRotationOverrideId(const char* value) { SetRotationOverrideId(value); return *this;} /** *

The Amazon Resource Names (ARNs) of the contacts assigned to the override of * the on-call rotation.

*/ inline const Aws::Vector& GetNewContactIds() const{ return m_newContactIds; } /** *

The Amazon Resource Names (ARNs) of the contacts assigned to the override of * the on-call rotation.

*/ inline bool NewContactIdsHasBeenSet() const { return m_newContactIdsHasBeenSet; } /** *

The Amazon Resource Names (ARNs) of the contacts assigned to the override of * the on-call rotation.

*/ inline void SetNewContactIds(const Aws::Vector& value) { m_newContactIdsHasBeenSet = true; m_newContactIds = value; } /** *

The Amazon Resource Names (ARNs) of the contacts assigned to the override of * the on-call rotation.

*/ inline void SetNewContactIds(Aws::Vector&& value) { m_newContactIdsHasBeenSet = true; m_newContactIds = std::move(value); } /** *

The Amazon Resource Names (ARNs) of the contacts assigned to the override of * the on-call rotation.

*/ inline RotationOverride& WithNewContactIds(const Aws::Vector& value) { SetNewContactIds(value); return *this;} /** *

The Amazon Resource Names (ARNs) of the contacts assigned to the override of * the on-call rotation.

*/ inline RotationOverride& WithNewContactIds(Aws::Vector&& value) { SetNewContactIds(std::move(value)); return *this;} /** *

The Amazon Resource Names (ARNs) of the contacts assigned to the override of * the on-call rotation.

*/ inline RotationOverride& AddNewContactIds(const Aws::String& value) { m_newContactIdsHasBeenSet = true; m_newContactIds.push_back(value); return *this; } /** *

The Amazon Resource Names (ARNs) of the contacts assigned to the override of * the on-call rotation.

*/ inline RotationOverride& AddNewContactIds(Aws::String&& value) { m_newContactIdsHasBeenSet = true; m_newContactIds.push_back(std::move(value)); return *this; } /** *

The Amazon Resource Names (ARNs) of the contacts assigned to the override of * the on-call rotation.

*/ inline RotationOverride& AddNewContactIds(const char* value) { m_newContactIdsHasBeenSet = true; m_newContactIds.push_back(value); return *this; } /** *

The time a rotation override begins.

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

The time a rotation override begins.

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

The time a rotation override begins.

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

The time a rotation override begins.

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

The time a rotation override begins.

*/ inline RotationOverride& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *

The time a rotation override begins.

*/ inline RotationOverride& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *

The time a rotation override ends.

*/ inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } /** *

The time a rotation override ends.

*/ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *

The time a rotation override ends.

*/ inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** *

The time a rotation override ends.

*/ inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } /** *

The time a rotation override ends.

*/ inline RotationOverride& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} /** *

The time a rotation override ends.

*/ inline RotationOverride& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} /** *

The time a rotation override was created.

*/ inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; } /** *

The time a rotation override was created.

*/ inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; } /** *

The time a rotation override was created.

*/ inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTimeHasBeenSet = true; m_createTime = value; } /** *

The time a rotation override was created.

*/ inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTimeHasBeenSet = true; m_createTime = std::move(value); } /** *

The time a rotation override was created.

*/ inline RotationOverride& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;} /** *

The time a rotation override was created.

*/ inline RotationOverride& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(std::move(value)); return *this;} private: Aws::String m_rotationOverrideId; bool m_rotationOverrideIdHasBeenSet = false; Aws::Vector m_newContactIds; bool m_newContactIdsHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet = false; Aws::Utils::DateTime m_createTime; bool m_createTimeHasBeenSet = false; }; } // namespace Model } // namespace SSMContacts } // namespace Aws