/** * 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 AcceptPageRequest : public SSMContactsRequest { public: AWS_SSMCONTACTS_API AcceptPageRequest(); // 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 "AcceptPage"; } AWS_SSMCONTACTS_API Aws::String SerializePayload() const override; AWS_SSMCONTACTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Amazon Resource Name (ARN) of the engagement to a contact channel.

*/ inline const Aws::String& GetPageId() const{ return m_pageId; } /** *

The Amazon Resource Name (ARN) of the engagement to a contact channel.

*/ inline bool PageIdHasBeenSet() const { return m_pageIdHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the engagement to a contact channel.

*/ inline void SetPageId(const Aws::String& value) { m_pageIdHasBeenSet = true; m_pageId = value; } /** *

The Amazon Resource Name (ARN) of the engagement to a contact channel.

*/ inline void SetPageId(Aws::String&& value) { m_pageIdHasBeenSet = true; m_pageId = std::move(value); } /** *

The Amazon Resource Name (ARN) of the engagement to a contact channel.

*/ inline void SetPageId(const char* value) { m_pageIdHasBeenSet = true; m_pageId.assign(value); } /** *

The Amazon Resource Name (ARN) of the engagement to a contact channel.

*/ inline AcceptPageRequest& WithPageId(const Aws::String& value) { SetPageId(value); return *this;} /** *

The Amazon Resource Name (ARN) of the engagement to a contact channel.

*/ inline AcceptPageRequest& WithPageId(Aws::String&& value) { SetPageId(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the engagement to a contact channel.

*/ inline AcceptPageRequest& WithPageId(const char* value) { SetPageId(value); return *this;} /** *

The ARN of the contact channel.

*/ inline const Aws::String& GetContactChannelId() const{ return m_contactChannelId; } /** *

The ARN of the contact channel.

*/ inline bool ContactChannelIdHasBeenSet() const { return m_contactChannelIdHasBeenSet; } /** *

The ARN of the contact channel.

*/ inline void SetContactChannelId(const Aws::String& value) { m_contactChannelIdHasBeenSet = true; m_contactChannelId = value; } /** *

The ARN of the contact channel.

*/ inline void SetContactChannelId(Aws::String&& value) { m_contactChannelIdHasBeenSet = true; m_contactChannelId = std::move(value); } /** *

The ARN of the contact channel.

*/ inline void SetContactChannelId(const char* value) { m_contactChannelIdHasBeenSet = true; m_contactChannelId.assign(value); } /** *

The ARN of the contact channel.

*/ inline AcceptPageRequest& WithContactChannelId(const Aws::String& value) { SetContactChannelId(value); return *this;} /** *

The ARN of the contact channel.

*/ inline AcceptPageRequest& WithContactChannelId(Aws::String&& value) { SetContactChannelId(std::move(value)); return *this;} /** *

The ARN of the contact channel.

*/ inline AcceptPageRequest& WithContactChannelId(const char* value) { SetContactChannelId(value); return *this;} /** *

The type indicates if the page was DELIVERED or * READ.

*/ inline const AcceptType& GetAcceptType() const{ return m_acceptType; } /** *

The type indicates if the page was DELIVERED or * READ.

*/ inline bool AcceptTypeHasBeenSet() const { return m_acceptTypeHasBeenSet; } /** *

The type indicates if the page was DELIVERED or * READ.

*/ inline void SetAcceptType(const AcceptType& value) { m_acceptTypeHasBeenSet = true; m_acceptType = value; } /** *

The type indicates if the page was DELIVERED or * READ.

*/ inline void SetAcceptType(AcceptType&& value) { m_acceptTypeHasBeenSet = true; m_acceptType = std::move(value); } /** *

The type indicates if the page was DELIVERED or * READ.

*/ inline AcceptPageRequest& WithAcceptType(const AcceptType& value) { SetAcceptType(value); return *this;} /** *

The type indicates if the page was DELIVERED or * READ.

*/ inline AcceptPageRequest& WithAcceptType(AcceptType&& value) { SetAcceptType(std::move(value)); return *this;} /** *

Information provided by the user when the user acknowledges the page.

*/ inline const Aws::String& GetNote() const{ return m_note; } /** *

Information provided by the user when the user acknowledges the page.

*/ inline bool NoteHasBeenSet() const { return m_noteHasBeenSet; } /** *

Information provided by the user when the user acknowledges the page.

*/ inline void SetNote(const Aws::String& value) { m_noteHasBeenSet = true; m_note = value; } /** *

Information provided by the user when the user acknowledges the page.

*/ inline void SetNote(Aws::String&& value) { m_noteHasBeenSet = true; m_note = std::move(value); } /** *

Information provided by the user when the user acknowledges the page.

*/ inline void SetNote(const char* value) { m_noteHasBeenSet = true; m_note.assign(value); } /** *

Information provided by the user when the user acknowledges the page.

*/ inline AcceptPageRequest& WithNote(const Aws::String& value) { SetNote(value); return *this;} /** *

Information provided by the user when the user acknowledges the page.

*/ inline AcceptPageRequest& WithNote(Aws::String&& value) { SetNote(std::move(value)); return *this;} /** *

Information provided by the user when the user acknowledges the page.

*/ inline AcceptPageRequest& WithNote(const char* value) { SetNote(value); return *this;} /** *

A 6-digit code used to acknowledge the page.

*/ inline const Aws::String& GetAcceptCode() const{ return m_acceptCode; } /** *

A 6-digit code used to acknowledge the page.

*/ inline bool AcceptCodeHasBeenSet() const { return m_acceptCodeHasBeenSet; } /** *

A 6-digit code used to acknowledge the page.

*/ inline void SetAcceptCode(const Aws::String& value) { m_acceptCodeHasBeenSet = true; m_acceptCode = value; } /** *

A 6-digit code used to acknowledge the page.

*/ inline void SetAcceptCode(Aws::String&& value) { m_acceptCodeHasBeenSet = true; m_acceptCode = std::move(value); } /** *

A 6-digit code used to acknowledge the page.

*/ inline void SetAcceptCode(const char* value) { m_acceptCodeHasBeenSet = true; m_acceptCode.assign(value); } /** *

A 6-digit code used to acknowledge the page.

*/ inline AcceptPageRequest& WithAcceptCode(const Aws::String& value) { SetAcceptCode(value); return *this;} /** *

A 6-digit code used to acknowledge the page.

*/ inline AcceptPageRequest& WithAcceptCode(Aws::String&& value) { SetAcceptCode(std::move(value)); return *this;} /** *

A 6-digit code used to acknowledge the page.

*/ inline AcceptPageRequest& WithAcceptCode(const char* value) { SetAcceptCode(value); return *this;} /** *

An optional field that Incident Manager uses to ENFORCE * AcceptCode validation when acknowledging an page. Acknowledgement * can occur by replying to a page, or when entering the AcceptCode in the console. * Enforcing AcceptCode validation causes Incident Manager to verify that the code * entered by the user matches the code sent by Incident Manager with the page.

*

Incident Manager can also IGNORE AcceptCode * validation. Ignoring AcceptCode validation causes Incident Manager * to accept any value entered for the AcceptCode.

*/ inline const AcceptCodeValidation& GetAcceptCodeValidation() const{ return m_acceptCodeValidation; } /** *

An optional field that Incident Manager uses to ENFORCE * AcceptCode validation when acknowledging an page. Acknowledgement * can occur by replying to a page, or when entering the AcceptCode in the console. * Enforcing AcceptCode validation causes Incident Manager to verify that the code * entered by the user matches the code sent by Incident Manager with the page.

*

Incident Manager can also IGNORE AcceptCode * validation. Ignoring AcceptCode validation causes Incident Manager * to accept any value entered for the AcceptCode.

*/ inline bool AcceptCodeValidationHasBeenSet() const { return m_acceptCodeValidationHasBeenSet; } /** *

An optional field that Incident Manager uses to ENFORCE * AcceptCode validation when acknowledging an page. Acknowledgement * can occur by replying to a page, or when entering the AcceptCode in the console. * Enforcing AcceptCode validation causes Incident Manager to verify that the code * entered by the user matches the code sent by Incident Manager with the page.

*

Incident Manager can also IGNORE AcceptCode * validation. Ignoring AcceptCode validation causes Incident Manager * to accept any value entered for the AcceptCode.

*/ inline void SetAcceptCodeValidation(const AcceptCodeValidation& value) { m_acceptCodeValidationHasBeenSet = true; m_acceptCodeValidation = value; } /** *

An optional field that Incident Manager uses to ENFORCE * AcceptCode validation when acknowledging an page. Acknowledgement * can occur by replying to a page, or when entering the AcceptCode in the console. * Enforcing AcceptCode validation causes Incident Manager to verify that the code * entered by the user matches the code sent by Incident Manager with the page.

*

Incident Manager can also IGNORE AcceptCode * validation. Ignoring AcceptCode validation causes Incident Manager * to accept any value entered for the AcceptCode.

*/ inline void SetAcceptCodeValidation(AcceptCodeValidation&& value) { m_acceptCodeValidationHasBeenSet = true; m_acceptCodeValidation = std::move(value); } /** *

An optional field that Incident Manager uses to ENFORCE * AcceptCode validation when acknowledging an page. Acknowledgement * can occur by replying to a page, or when entering the AcceptCode in the console. * Enforcing AcceptCode validation causes Incident Manager to verify that the code * entered by the user matches the code sent by Incident Manager with the page.

*

Incident Manager can also IGNORE AcceptCode * validation. Ignoring AcceptCode validation causes Incident Manager * to accept any value entered for the AcceptCode.

*/ inline AcceptPageRequest& WithAcceptCodeValidation(const AcceptCodeValidation& value) { SetAcceptCodeValidation(value); return *this;} /** *

An optional field that Incident Manager uses to ENFORCE * AcceptCode validation when acknowledging an page. Acknowledgement * can occur by replying to a page, or when entering the AcceptCode in the console. * Enforcing AcceptCode validation causes Incident Manager to verify that the code * entered by the user matches the code sent by Incident Manager with the page.

*

Incident Manager can also IGNORE AcceptCode * validation. Ignoring AcceptCode validation causes Incident Manager * to accept any value entered for the AcceptCode.

*/ inline AcceptPageRequest& WithAcceptCodeValidation(AcceptCodeValidation&& value) { SetAcceptCodeValidation(std::move(value)); return *this;} private: Aws::String m_pageId; bool m_pageIdHasBeenSet = false; Aws::String m_contactChannelId; bool m_contactChannelIdHasBeenSet = false; AcceptType m_acceptType; bool m_acceptTypeHasBeenSet = false; Aws::String m_note; bool m_noteHasBeenSet = false; Aws::String m_acceptCode; bool m_acceptCodeHasBeenSet = false; AcceptCodeValidation m_acceptCodeValidation; bool m_acceptCodeValidationHasBeenSet = false; }; } // namespace Model } // namespace SSMContacts } // namespace Aws