/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Connect { namespace Model { /** */ class MonitorContactRequest : public ConnectRequest { public: AWS_CONNECT_API MonitorContactRequest(); // 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 "MonitorContact"; } AWS_CONNECT_API Aws::String SerializePayload() const override; /** *

The identifier of the Amazon Connect instance. You can find the instanceId in * the ARN of the instance.

*/ inline const Aws::String& GetInstanceId() const{ return m_instanceId; } /** *

The identifier of the Amazon Connect instance. You can find the instanceId in * the ARN of the instance.

*/ inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; } /** *

The identifier of the Amazon Connect instance. You can find the instanceId in * the ARN of the instance.

*/ inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; } /** *

The identifier of the Amazon Connect instance. You can find the instanceId in * the ARN of the instance.

*/ inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); } /** *

The identifier of the Amazon Connect instance. You can find the instanceId in * the ARN of the instance.

*/ inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); } /** *

The identifier of the Amazon Connect instance. You can find the instanceId in * the ARN of the instance.

*/ inline MonitorContactRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;} /** *

The identifier of the Amazon Connect instance. You can find the instanceId in * the ARN of the instance.

*/ inline MonitorContactRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;} /** *

The identifier of the Amazon Connect instance. You can find the instanceId in * the ARN of the instance.

*/ inline MonitorContactRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;} /** *

The identifier of the contact.

*/ inline const Aws::String& GetContactId() const{ return m_contactId; } /** *

The identifier of the contact.

*/ inline bool ContactIdHasBeenSet() const { return m_contactIdHasBeenSet; } /** *

The identifier of the contact.

*/ inline void SetContactId(const Aws::String& value) { m_contactIdHasBeenSet = true; m_contactId = value; } /** *

The identifier of the contact.

*/ inline void SetContactId(Aws::String&& value) { m_contactIdHasBeenSet = true; m_contactId = std::move(value); } /** *

The identifier of the contact.

*/ inline void SetContactId(const char* value) { m_contactIdHasBeenSet = true; m_contactId.assign(value); } /** *

The identifier of the contact.

*/ inline MonitorContactRequest& WithContactId(const Aws::String& value) { SetContactId(value); return *this;} /** *

The identifier of the contact.

*/ inline MonitorContactRequest& WithContactId(Aws::String&& value) { SetContactId(std::move(value)); return *this;} /** *

The identifier of the contact.

*/ inline MonitorContactRequest& WithContactId(const char* value) { SetContactId(value); return *this;} /** *

The identifier of the user account.

*/ inline const Aws::String& GetUserId() const{ return m_userId; } /** *

The identifier of the user account.

*/ inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; } /** *

The identifier of the user account.

*/ inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; } /** *

The identifier of the user account.

*/ inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); } /** *

The identifier of the user account.

*/ inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); } /** *

The identifier of the user account.

*/ inline MonitorContactRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;} /** *

The identifier of the user account.

*/ inline MonitorContactRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;} /** *

The identifier of the user account.

*/ inline MonitorContactRequest& WithUserId(const char* value) { SetUserId(value); return *this;} /** *

Specify which monitoring actions the user is allowed to take. For example, * whether the user is allowed to escalate from silent monitoring to barge.

*/ inline const Aws::Vector& GetAllowedMonitorCapabilities() const{ return m_allowedMonitorCapabilities; } /** *

Specify which monitoring actions the user is allowed to take. For example, * whether the user is allowed to escalate from silent monitoring to barge.

*/ inline bool AllowedMonitorCapabilitiesHasBeenSet() const { return m_allowedMonitorCapabilitiesHasBeenSet; } /** *

Specify which monitoring actions the user is allowed to take. For example, * whether the user is allowed to escalate from silent monitoring to barge.

*/ inline void SetAllowedMonitorCapabilities(const Aws::Vector& value) { m_allowedMonitorCapabilitiesHasBeenSet = true; m_allowedMonitorCapabilities = value; } /** *

Specify which monitoring actions the user is allowed to take. For example, * whether the user is allowed to escalate from silent monitoring to barge.

*/ inline void SetAllowedMonitorCapabilities(Aws::Vector&& value) { m_allowedMonitorCapabilitiesHasBeenSet = true; m_allowedMonitorCapabilities = std::move(value); } /** *

Specify which monitoring actions the user is allowed to take. For example, * whether the user is allowed to escalate from silent monitoring to barge.

*/ inline MonitorContactRequest& WithAllowedMonitorCapabilities(const Aws::Vector& value) { SetAllowedMonitorCapabilities(value); return *this;} /** *

Specify which monitoring actions the user is allowed to take. For example, * whether the user is allowed to escalate from silent monitoring to barge.

*/ inline MonitorContactRequest& WithAllowedMonitorCapabilities(Aws::Vector&& value) { SetAllowedMonitorCapabilities(std::move(value)); return *this;} /** *

Specify which monitoring actions the user is allowed to take. For example, * whether the user is allowed to escalate from silent monitoring to barge.

*/ inline MonitorContactRequest& AddAllowedMonitorCapabilities(const MonitorCapability& value) { m_allowedMonitorCapabilitiesHasBeenSet = true; m_allowedMonitorCapabilities.push_back(value); return *this; } /** *

Specify which monitoring actions the user is allowed to take. For example, * whether the user is allowed to escalate from silent monitoring to barge.

*/ inline MonitorContactRequest& AddAllowedMonitorCapabilities(MonitorCapability&& value) { m_allowedMonitorCapabilitiesHasBeenSet = true; m_allowedMonitorCapabilities.push_back(std::move(value)); return *this; } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If not provided, the Amazon Web Services SDK * populates this field. For more information about idempotency, see Making * retries safe with idempotent APIs.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If not provided, the Amazon Web Services SDK * populates this field. For more information about idempotency, see Making * retries safe with idempotent APIs.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If not provided, the Amazon Web Services SDK * populates this field. For more information about idempotency, see Making * retries safe with idempotent APIs.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If not provided, the Amazon Web Services SDK * populates this field. For more information about idempotency, see Making * retries safe with idempotent APIs.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If not provided, the Amazon Web Services SDK * populates this field. For more information about idempotency, see Making * retries safe with idempotent APIs.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If not provided, the Amazon Web Services SDK * populates this field. For more information about idempotency, see Making * retries safe with idempotent APIs.

*/ inline MonitorContactRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If not provided, the Amazon Web Services SDK * populates this field. For more information about idempotency, see Making * retries safe with idempotent APIs.

*/ inline MonitorContactRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If not provided, the Amazon Web Services SDK * populates this field. For more information about idempotency, see Making * retries safe with idempotent APIs.

*/ inline MonitorContactRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} private: Aws::String m_instanceId; bool m_instanceIdHasBeenSet = false; Aws::String m_contactId; bool m_contactIdHasBeenSet = false; Aws::String m_userId; bool m_userIdHasBeenSet = false; Aws::Vector m_allowedMonitorCapabilities; bool m_allowedMonitorCapabilitiesHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; }; } // namespace Model } // namespace Connect } // namespace Aws