/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace SSMContacts { namespace Model { class GetRotationOverrideResult { public: AWS_SSMCONTACTS_API GetRotationOverrideResult(); AWS_SSMCONTACTS_API GetRotationOverrideResult(const Aws::AmazonWebServiceResult& result); AWS_SSMCONTACTS_API GetRotationOverrideResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

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 void SetRotationOverrideId(const Aws::String& value) { m_rotationOverrideId = value; } /** *

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

*/ inline void SetRotationOverrideId(Aws::String&& value) { 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_rotationOverrideId.assign(value); } /** *

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

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

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

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

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

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

The Amazon Resource Name (ARN) of the on-call rotation that was * overridden.

*/ inline const Aws::String& GetRotationArn() const{ return m_rotationArn; } /** *

The Amazon Resource Name (ARN) of the on-call rotation that was * overridden.

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

The Amazon Resource Name (ARN) of the on-call rotation that was * overridden.

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

The Amazon Resource Name (ARN) of the on-call rotation that was * overridden.

*/ inline void SetRotationArn(const char* value) { m_rotationArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the on-call rotation that was * overridden.

*/ inline GetRotationOverrideResult& WithRotationArn(const Aws::String& value) { SetRotationArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the on-call rotation that was * overridden.

*/ inline GetRotationOverrideResult& WithRotationArn(Aws::String&& value) { SetRotationArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the on-call rotation that was * overridden.

*/ inline GetRotationOverrideResult& WithRotationArn(const char* value) { SetRotationArn(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 void SetNewContactIds(const Aws::Vector& value) { 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_newContactIds = std::move(value); } /** *

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

*/ inline GetRotationOverrideResult& 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 GetRotationOverrideResult& 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 GetRotationOverrideResult& AddNewContactIds(const Aws::String& value) { 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 GetRotationOverrideResult& AddNewContactIds(Aws::String&& value) { 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 GetRotationOverrideResult& AddNewContactIds(const char* value) { m_newContactIds.push_back(value); return *this; } /** *

The date and time when the override goes into effect.

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

The date and time when the override goes into effect.

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

The date and time when the override goes into effect.

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

The date and time when the override goes into effect.

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

The date and time when the override goes into effect.

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

The date and time when the override ends.

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

The date and time when the override ends.

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

The date and time when the override ends.

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

The date and time when the override ends.

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

The date and time when the override ends.

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

The date and time when the override was created.

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

The date and time when the override was created.

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

The date and time when the override was created.

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

The date and time when the override was created.

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

The date and time when the override was created.

*/ inline GetRotationOverrideResult& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(std::move(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 GetRotationOverrideResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetRotationOverrideResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetRotationOverrideResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_rotationOverrideId; Aws::String m_rotationArn; Aws::Vector m_newContactIds; Aws::Utils::DateTime m_startTime; Aws::Utils::DateTime m_endTime; Aws::Utils::DateTime m_createTime; Aws::String m_requestId; }; } // namespace Model } // namespace SSMContacts } // namespace Aws