/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace SSMContacts { namespace Model { /** */ class CreateRotationOverrideRequest : public SSMContactsRequest { public: AWS_SSMCONTACTS_API CreateRotationOverrideRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateRotationOverride"; } AWS_SSMCONTACTS_API Aws::String SerializePayload() const override; AWS_SSMCONTACTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Amazon Resource Name (ARN) of the rotation to create an override for.

*/ inline const Aws::String& GetRotationId() const{ return m_rotationId; } /** *

The Amazon Resource Name (ARN) of the rotation to create an override for.

*/ inline bool RotationIdHasBeenSet() const { return m_rotationIdHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the rotation to create an override for.

*/ inline void SetRotationId(const Aws::String& value) { m_rotationIdHasBeenSet = true; m_rotationId = value; } /** *

The Amazon Resource Name (ARN) of the rotation to create an override for.

*/ inline void SetRotationId(Aws::String&& value) { m_rotationIdHasBeenSet = true; m_rotationId = std::move(value); } /** *

The Amazon Resource Name (ARN) of the rotation to create an override for.

*/ inline void SetRotationId(const char* value) { m_rotationIdHasBeenSet = true; m_rotationId.assign(value); } /** *

The Amazon Resource Name (ARN) of the rotation to create an override for.

*/ inline CreateRotationOverrideRequest& WithRotationId(const Aws::String& value) { SetRotationId(value); return *this;} /** *

The Amazon Resource Name (ARN) of the rotation to create an override for.

*/ inline CreateRotationOverrideRequest& WithRotationId(Aws::String&& value) { SetRotationId(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the rotation to create an override for.

*/ inline CreateRotationOverrideRequest& WithRotationId(const char* value) { SetRotationId(value); return *this;} /** *

The Amazon Resource Names (ARNs) of the contacts to replace those in the * current on-call rotation with.

If you want to include any current team * members in the override shift, you must include their ARNs in the new contact ID * list.

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

The Amazon Resource Names (ARNs) of the contacts to replace those in the * current on-call rotation with.

If you want to include any current team * members in the override shift, you must include their ARNs in the new contact ID * list.

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

The Amazon Resource Names (ARNs) of the contacts to replace those in the * current on-call rotation with.

If you want to include any current team * members in the override shift, you must include their ARNs in the new contact ID * list.

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

The Amazon Resource Names (ARNs) of the contacts to replace those in the * current on-call rotation with.

If you want to include any current team * members in the override shift, you must include their ARNs in the new contact ID * list.

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

The Amazon Resource Names (ARNs) of the contacts to replace those in the * current on-call rotation with.

If you want to include any current team * members in the override shift, you must include their ARNs in the new contact ID * list.

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

The Amazon Resource Names (ARNs) of the contacts to replace those in the * current on-call rotation with.

If you want to include any current team * members in the override shift, you must include their ARNs in the new contact ID * list.

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

The Amazon Resource Names (ARNs) of the contacts to replace those in the * current on-call rotation with.

If you want to include any current team * members in the override shift, you must include their ARNs in the new contact ID * list.

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

The Amazon Resource Names (ARNs) of the contacts to replace those in the * current on-call rotation with.

If you want to include any current team * members in the override shift, you must include their ARNs in the new contact ID * list.

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

The Amazon Resource Names (ARNs) of the contacts to replace those in the * current on-call rotation with.

If you want to include any current team * members in the override shift, you must include their ARNs in the new contact ID * list.

*/ inline CreateRotationOverrideRequest& AddNewContactIds(const char* value) { m_newContactIdsHasBeenSet = true; 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 bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *

The date and time when the override goes into effect.

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

The date and time when the override goes into effect.

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

The date and time when the override goes into effect.

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

The date and time when the override goes into effect.

*/ inline CreateRotationOverrideRequest& 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 bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *

The date and time when the override ends.

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

The date and time when the override ends.

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

The date and time when the override ends.

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

The date and time when the override ends.

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

A token that ensures that the operation is called only once with the * specified details.

*/ inline const Aws::String& GetIdempotencyToken() const{ return m_idempotencyToken; } /** *

A token that ensures that the operation is called only once with the * specified details.

*/ inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; } /** *

A token that ensures that the operation is called only once with the * specified details.

*/ inline void SetIdempotencyToken(const Aws::String& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = value; } /** *

A token that ensures that the operation is called only once with the * specified details.

*/ inline void SetIdempotencyToken(Aws::String&& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = std::move(value); } /** *

A token that ensures that the operation is called only once with the * specified details.

*/ inline void SetIdempotencyToken(const char* value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken.assign(value); } /** *

A token that ensures that the operation is called only once with the * specified details.

*/ inline CreateRotationOverrideRequest& WithIdempotencyToken(const Aws::String& value) { SetIdempotencyToken(value); return *this;} /** *

A token that ensures that the operation is called only once with the * specified details.

*/ inline CreateRotationOverrideRequest& WithIdempotencyToken(Aws::String&& value) { SetIdempotencyToken(std::move(value)); return *this;} /** *

A token that ensures that the operation is called only once with the * specified details.

*/ inline CreateRotationOverrideRequest& WithIdempotencyToken(const char* value) { SetIdempotencyToken(value); return *this;} private: Aws::String m_rotationId; bool m_rotationIdHasBeenSet = 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::String m_idempotencyToken; bool m_idempotencyTokenHasBeenSet = false; }; } // namespace Model } // namespace SSMContacts } // namespace Aws