/** * 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 ConnectCases { namespace Model { /** */ class UpdateCaseRequest : public ConnectCasesRequest { public: AWS_CONNECTCASES_API UpdateCaseRequest(); // 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 "UpdateCase"; } AWS_CONNECTCASES_API Aws::String SerializePayload() const override; /** *

A unique identifier of the case.

*/ inline const Aws::String& GetCaseId() const{ return m_caseId; } /** *

A unique identifier of the case.

*/ inline bool CaseIdHasBeenSet() const { return m_caseIdHasBeenSet; } /** *

A unique identifier of the case.

*/ inline void SetCaseId(const Aws::String& value) { m_caseIdHasBeenSet = true; m_caseId = value; } /** *

A unique identifier of the case.

*/ inline void SetCaseId(Aws::String&& value) { m_caseIdHasBeenSet = true; m_caseId = std::move(value); } /** *

A unique identifier of the case.

*/ inline void SetCaseId(const char* value) { m_caseIdHasBeenSet = true; m_caseId.assign(value); } /** *

A unique identifier of the case.

*/ inline UpdateCaseRequest& WithCaseId(const Aws::String& value) { SetCaseId(value); return *this;} /** *

A unique identifier of the case.

*/ inline UpdateCaseRequest& WithCaseId(Aws::String&& value) { SetCaseId(std::move(value)); return *this;} /** *

A unique identifier of the case.

*/ inline UpdateCaseRequest& WithCaseId(const char* value) { SetCaseId(value); return *this;} /** *

The unique identifier of the Cases domain.

*/ inline const Aws::String& GetDomainId() const{ return m_domainId; } /** *

The unique identifier of the Cases domain.

*/ inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; } /** *

The unique identifier of the Cases domain.

*/ inline void SetDomainId(const Aws::String& value) { m_domainIdHasBeenSet = true; m_domainId = value; } /** *

The unique identifier of the Cases domain.

*/ inline void SetDomainId(Aws::String&& value) { m_domainIdHasBeenSet = true; m_domainId = std::move(value); } /** *

The unique identifier of the Cases domain.

*/ inline void SetDomainId(const char* value) { m_domainIdHasBeenSet = true; m_domainId.assign(value); } /** *

The unique identifier of the Cases domain.

*/ inline UpdateCaseRequest& WithDomainId(const Aws::String& value) { SetDomainId(value); return *this;} /** *

The unique identifier of the Cases domain.

*/ inline UpdateCaseRequest& WithDomainId(Aws::String&& value) { SetDomainId(std::move(value)); return *this;} /** *

The unique identifier of the Cases domain.

*/ inline UpdateCaseRequest& WithDomainId(const char* value) { SetDomainId(value); return *this;} /** *

An array of objects with fieldId (matching * ListFields/DescribeField) and value union data, structured identical to * CreateCase.

*/ inline const Aws::Vector& GetFields() const{ return m_fields; } /** *

An array of objects with fieldId (matching * ListFields/DescribeField) and value union data, structured identical to * CreateCase.

*/ inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; } /** *

An array of objects with fieldId (matching * ListFields/DescribeField) and value union data, structured identical to * CreateCase.

*/ inline void SetFields(const Aws::Vector& value) { m_fieldsHasBeenSet = true; m_fields = value; } /** *

An array of objects with fieldId (matching * ListFields/DescribeField) and value union data, structured identical to * CreateCase.

*/ inline void SetFields(Aws::Vector&& value) { m_fieldsHasBeenSet = true; m_fields = std::move(value); } /** *

An array of objects with fieldId (matching * ListFields/DescribeField) and value union data, structured identical to * CreateCase.

*/ inline UpdateCaseRequest& WithFields(const Aws::Vector& value) { SetFields(value); return *this;} /** *

An array of objects with fieldId (matching * ListFields/DescribeField) and value union data, structured identical to * CreateCase.

*/ inline UpdateCaseRequest& WithFields(Aws::Vector&& value) { SetFields(std::move(value)); return *this;} /** *

An array of objects with fieldId (matching * ListFields/DescribeField) and value union data, structured identical to * CreateCase.

*/ inline UpdateCaseRequest& AddFields(const FieldValue& value) { m_fieldsHasBeenSet = true; m_fields.push_back(value); return *this; } /** *

An array of objects with fieldId (matching * ListFields/DescribeField) and value union data, structured identical to * CreateCase.

*/ inline UpdateCaseRequest& AddFields(FieldValue&& value) { m_fieldsHasBeenSet = true; m_fields.push_back(std::move(value)); return *this; } private: Aws::String m_caseId; bool m_caseIdHasBeenSet = false; Aws::String m_domainId; bool m_domainIdHasBeenSet = false; Aws::Vector m_fields; bool m_fieldsHasBeenSet = false; }; } // namespace Model } // namespace ConnectCases } // namespace Aws