/** * 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 #include namespace Aws { namespace Connect { namespace Model { /** */ class CreateEvaluationFormRequest : public ConnectRequest { public: AWS_CONNECT_API CreateEvaluationFormRequest(); // 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 "CreateEvaluationForm"; } AWS_CONNECT_API Aws::String SerializePayload() const override; /** *

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 CreateEvaluationFormRequest& 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 CreateEvaluationFormRequest& 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 CreateEvaluationFormRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;} /** *

A title of the evaluation form.

*/ inline const Aws::String& GetTitle() const{ return m_title; } /** *

A title of the evaluation form.

*/ inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; } /** *

A title of the evaluation form.

*/ inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; } /** *

A title of the evaluation form.

*/ inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); } /** *

A title of the evaluation form.

*/ inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); } /** *

A title of the evaluation form.

*/ inline CreateEvaluationFormRequest& WithTitle(const Aws::String& value) { SetTitle(value); return *this;} /** *

A title of the evaluation form.

*/ inline CreateEvaluationFormRequest& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;} /** *

A title of the evaluation form.

*/ inline CreateEvaluationFormRequest& WithTitle(const char* value) { SetTitle(value); return *this;} /** *

The description of the evaluation form.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the evaluation form.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the evaluation form.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description of the evaluation form.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description of the evaluation form.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description of the evaluation form.

*/ inline CreateEvaluationFormRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the evaluation form.

*/ inline CreateEvaluationFormRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the evaluation form.

*/ inline CreateEvaluationFormRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

Items that are part of the evaluation form. The total number of sections and * questions must not exceed 100 each. Questions must be contained in a * section.

*/ inline const Aws::Vector& GetItems() const{ return m_items; } /** *

Items that are part of the evaluation form. The total number of sections and * questions must not exceed 100 each. Questions must be contained in a * section.

*/ inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; } /** *

Items that are part of the evaluation form. The total number of sections and * questions must not exceed 100 each. Questions must be contained in a * section.

*/ inline void SetItems(const Aws::Vector& value) { m_itemsHasBeenSet = true; m_items = value; } /** *

Items that are part of the evaluation form. The total number of sections and * questions must not exceed 100 each. Questions must be contained in a * section.

*/ inline void SetItems(Aws::Vector&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); } /** *

Items that are part of the evaluation form. The total number of sections and * questions must not exceed 100 each. Questions must be contained in a * section.

*/ inline CreateEvaluationFormRequest& WithItems(const Aws::Vector& value) { SetItems(value); return *this;} /** *

Items that are part of the evaluation form. The total number of sections and * questions must not exceed 100 each. Questions must be contained in a * section.

*/ inline CreateEvaluationFormRequest& WithItems(Aws::Vector&& value) { SetItems(std::move(value)); return *this;} /** *

Items that are part of the evaluation form. The total number of sections and * questions must not exceed 100 each. Questions must be contained in a * section.

*/ inline CreateEvaluationFormRequest& AddItems(const EvaluationFormItem& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; } /** *

Items that are part of the evaluation form. The total number of sections and * questions must not exceed 100 each. Questions must be contained in a * section.

*/ inline CreateEvaluationFormRequest& AddItems(EvaluationFormItem&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; } /** *

A scoring strategy of the evaluation form.

*/ inline const EvaluationFormScoringStrategy& GetScoringStrategy() const{ return m_scoringStrategy; } /** *

A scoring strategy of the evaluation form.

*/ inline bool ScoringStrategyHasBeenSet() const { return m_scoringStrategyHasBeenSet; } /** *

A scoring strategy of the evaluation form.

*/ inline void SetScoringStrategy(const EvaluationFormScoringStrategy& value) { m_scoringStrategyHasBeenSet = true; m_scoringStrategy = value; } /** *

A scoring strategy of the evaluation form.

*/ inline void SetScoringStrategy(EvaluationFormScoringStrategy&& value) { m_scoringStrategyHasBeenSet = true; m_scoringStrategy = std::move(value); } /** *

A scoring strategy of the evaluation form.

*/ inline CreateEvaluationFormRequest& WithScoringStrategy(const EvaluationFormScoringStrategy& value) { SetScoringStrategy(value); return *this;} /** *

A scoring strategy of the evaluation form.

*/ inline CreateEvaluationFormRequest& WithScoringStrategy(EvaluationFormScoringStrategy&& value) { SetScoringStrategy(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 CreateEvaluationFormRequest& 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 CreateEvaluationFormRequest& 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 CreateEvaluationFormRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} private: Aws::String m_instanceId; bool m_instanceIdHasBeenSet = false; Aws::String m_title; bool m_titleHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector m_items; bool m_itemsHasBeenSet = false; EvaluationFormScoringStrategy m_scoringStrategy; bool m_scoringStrategyHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; }; } // namespace Model } // namespace Connect } // namespace Aws