/** * 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 contacts and times that an on-call override * replaces.

See Also:

AWS * API Reference

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

Information about contacts to add to an on-call rotation override.

*/ inline const Aws::Vector& GetNewMembers() const{ return m_newMembers; } /** *

Information about contacts to add to an on-call rotation override.

*/ inline bool NewMembersHasBeenSet() const { return m_newMembersHasBeenSet; } /** *

Information about contacts to add to an on-call rotation override.

*/ inline void SetNewMembers(const Aws::Vector& value) { m_newMembersHasBeenSet = true; m_newMembers = value; } /** *

Information about contacts to add to an on-call rotation override.

*/ inline void SetNewMembers(Aws::Vector&& value) { m_newMembersHasBeenSet = true; m_newMembers = std::move(value); } /** *

Information about contacts to add to an on-call rotation override.

*/ inline PreviewOverride& WithNewMembers(const Aws::Vector& value) { SetNewMembers(value); return *this;} /** *

Information about contacts to add to an on-call rotation override.

*/ inline PreviewOverride& WithNewMembers(Aws::Vector&& value) { SetNewMembers(std::move(value)); return *this;} /** *

Information about contacts to add to an on-call rotation override.

*/ inline PreviewOverride& AddNewMembers(const Aws::String& value) { m_newMembersHasBeenSet = true; m_newMembers.push_back(value); return *this; } /** *

Information about contacts to add to an on-call rotation override.

*/ inline PreviewOverride& AddNewMembers(Aws::String&& value) { m_newMembersHasBeenSet = true; m_newMembers.push_back(std::move(value)); return *this; } /** *

Information about contacts to add to an on-call rotation override.

*/ inline PreviewOverride& AddNewMembers(const char* value) { m_newMembersHasBeenSet = true; m_newMembers.push_back(value); return *this; } /** *

Information about the time a rotation override would begin.

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

Information about the time a rotation override would begin.

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

Information about the time a rotation override would begin.

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

Information about the time a rotation override would begin.

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

Information about the time a rotation override would begin.

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

Information about the time a rotation override would begin.

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

Information about the time a rotation override would end.

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

Information about the time a rotation override would end.

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

Information about the time a rotation override would end.

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

Information about the time a rotation override would end.

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

Information about the time a rotation override would end.

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

Information about the time a rotation override would end.

*/ inline PreviewOverride& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} private: Aws::Vector m_newMembers; bool m_newMembersHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet = false; }; } // namespace Model } // namespace SSMContacts } // namespace Aws