/** * 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 UpdateRuleRequest : public ConnectRequest { public: AWS_CONNECT_API UpdateRuleRequest(); // 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 "UpdateRule"; } AWS_CONNECT_API Aws::String SerializePayload() const override; /** *

A unique identifier for the rule.

*/ inline const Aws::String& GetRuleId() const{ return m_ruleId; } /** *

A unique identifier for the rule.

*/ inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; } /** *

A unique identifier for the rule.

*/ inline void SetRuleId(const Aws::String& value) { m_ruleIdHasBeenSet = true; m_ruleId = value; } /** *

A unique identifier for the rule.

*/ inline void SetRuleId(Aws::String&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::move(value); } /** *

A unique identifier for the rule.

*/ inline void SetRuleId(const char* value) { m_ruleIdHasBeenSet = true; m_ruleId.assign(value); } /** *

A unique identifier for the rule.

*/ inline UpdateRuleRequest& WithRuleId(const Aws::String& value) { SetRuleId(value); return *this;} /** *

A unique identifier for the rule.

*/ inline UpdateRuleRequest& WithRuleId(Aws::String&& value) { SetRuleId(std::move(value)); return *this;} /** *

A unique identifier for the rule.

*/ inline UpdateRuleRequest& WithRuleId(const char* value) { SetRuleId(value); return *this;} /** *

The identifier of the Amazon Connect instance. You can find * the instance ID in the Amazon Resource Name (ARN) of the instance.

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

The identifier of the Amazon Connect instance. You can find * the instance ID in the Amazon Resource Name (ARN) of the instance.

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

The identifier of the Amazon Connect instance. You can find * the instance ID in the Amazon Resource Name (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 instance ID in the Amazon Resource Name (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 instance ID in the Amazon Resource Name (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 instance ID in the Amazon Resource Name (ARN) of the instance.

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

The identifier of the Amazon Connect instance. You can find * the instance ID in the Amazon Resource Name (ARN) of the instance.

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

The identifier of the Amazon Connect instance. You can find * the instance ID in the Amazon Resource Name (ARN) of the instance.

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

The name of the rule. You can change the name only if * TriggerEventSource is one of the following values: * OnZendeskTicketCreate | OnZendeskTicketStatusUpdate | * OnSalesforceCaseCreate

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the rule. You can change the name only if * TriggerEventSource is one of the following values: * OnZendeskTicketCreate | OnZendeskTicketStatusUpdate | * OnSalesforceCaseCreate

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the rule. You can change the name only if * TriggerEventSource is one of the following values: * OnZendeskTicketCreate | OnZendeskTicketStatusUpdate | * OnSalesforceCaseCreate

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the rule. You can change the name only if * TriggerEventSource is one of the following values: * OnZendeskTicketCreate | OnZendeskTicketStatusUpdate | * OnSalesforceCaseCreate

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the rule. You can change the name only if * TriggerEventSource is one of the following values: * OnZendeskTicketCreate | OnZendeskTicketStatusUpdate | * OnSalesforceCaseCreate

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the rule. You can change the name only if * TriggerEventSource is one of the following values: * OnZendeskTicketCreate | OnZendeskTicketStatusUpdate | * OnSalesforceCaseCreate

*/ inline UpdateRuleRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the rule. You can change the name only if * TriggerEventSource is one of the following values: * OnZendeskTicketCreate | OnZendeskTicketStatusUpdate | * OnSalesforceCaseCreate

*/ inline UpdateRuleRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the rule. You can change the name only if * TriggerEventSource is one of the following values: * OnZendeskTicketCreate | OnZendeskTicketStatusUpdate | * OnSalesforceCaseCreate

*/ inline UpdateRuleRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The conditions of the rule.

*/ inline const Aws::String& GetFunction() const{ return m_function; } /** *

The conditions of the rule.

*/ inline bool FunctionHasBeenSet() const { return m_functionHasBeenSet; } /** *

The conditions of the rule.

*/ inline void SetFunction(const Aws::String& value) { m_functionHasBeenSet = true; m_function = value; } /** *

The conditions of the rule.

*/ inline void SetFunction(Aws::String&& value) { m_functionHasBeenSet = true; m_function = std::move(value); } /** *

The conditions of the rule.

*/ inline void SetFunction(const char* value) { m_functionHasBeenSet = true; m_function.assign(value); } /** *

The conditions of the rule.

*/ inline UpdateRuleRequest& WithFunction(const Aws::String& value) { SetFunction(value); return *this;} /** *

The conditions of the rule.

*/ inline UpdateRuleRequest& WithFunction(Aws::String&& value) { SetFunction(std::move(value)); return *this;} /** *

The conditions of the rule.

*/ inline UpdateRuleRequest& WithFunction(const char* value) { SetFunction(value); return *this;} /** *

A list of actions to be run when the rule is triggered.

*/ inline const Aws::Vector& GetActions() const{ return m_actions; } /** *

A list of actions to be run when the rule is triggered.

*/ inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; } /** *

A list of actions to be run when the rule is triggered.

*/ inline void SetActions(const Aws::Vector& value) { m_actionsHasBeenSet = true; m_actions = value; } /** *

A list of actions to be run when the rule is triggered.

*/ inline void SetActions(Aws::Vector&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); } /** *

A list of actions to be run when the rule is triggered.

*/ inline UpdateRuleRequest& WithActions(const Aws::Vector& value) { SetActions(value); return *this;} /** *

A list of actions to be run when the rule is triggered.

*/ inline UpdateRuleRequest& WithActions(Aws::Vector&& value) { SetActions(std::move(value)); return *this;} /** *

A list of actions to be run when the rule is triggered.

*/ inline UpdateRuleRequest& AddActions(const RuleAction& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; } /** *

A list of actions to be run when the rule is triggered.

*/ inline UpdateRuleRequest& AddActions(RuleAction&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; } /** *

The publish status of the rule.

*/ inline const RulePublishStatus& GetPublishStatus() const{ return m_publishStatus; } /** *

The publish status of the rule.

*/ inline bool PublishStatusHasBeenSet() const { return m_publishStatusHasBeenSet; } /** *

The publish status of the rule.

*/ inline void SetPublishStatus(const RulePublishStatus& value) { m_publishStatusHasBeenSet = true; m_publishStatus = value; } /** *

The publish status of the rule.

*/ inline void SetPublishStatus(RulePublishStatus&& value) { m_publishStatusHasBeenSet = true; m_publishStatus = std::move(value); } /** *

The publish status of the rule.

*/ inline UpdateRuleRequest& WithPublishStatus(const RulePublishStatus& value) { SetPublishStatus(value); return *this;} /** *

The publish status of the rule.

*/ inline UpdateRuleRequest& WithPublishStatus(RulePublishStatus&& value) { SetPublishStatus(std::move(value)); return *this;} private: Aws::String m_ruleId; bool m_ruleIdHasBeenSet = false; Aws::String m_instanceId; bool m_instanceIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_function; bool m_functionHasBeenSet = false; Aws::Vector m_actions; bool m_actionsHasBeenSet = false; RulePublishStatus m_publishStatus; bool m_publishStatusHasBeenSet = false; }; } // namespace Model } // namespace Connect } // namespace Aws