/** * 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 CreateRelatedItemRequest : public ConnectCasesRequest { public: AWS_CONNECTCASES_API CreateRelatedItemRequest(); // 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 "CreateRelatedItem"; } 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 CreateRelatedItemRequest& WithCaseId(const Aws::String& value) { SetCaseId(value); return *this;} /** *

A unique identifier of the case.

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

A unique identifier of the case.

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

The content of a related item to be created.

*/ inline const RelatedItemInputContent& GetContent() const{ return m_content; } /** *

The content of a related item to be created.

*/ inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; } /** *

The content of a related item to be created.

*/ inline void SetContent(const RelatedItemInputContent& value) { m_contentHasBeenSet = true; m_content = value; } /** *

The content of a related item to be created.

*/ inline void SetContent(RelatedItemInputContent&& value) { m_contentHasBeenSet = true; m_content = std::move(value); } /** *

The content of a related item to be created.

*/ inline CreateRelatedItemRequest& WithContent(const RelatedItemInputContent& value) { SetContent(value); return *this;} /** *

The content of a related item to be created.

*/ inline CreateRelatedItemRequest& WithContent(RelatedItemInputContent&& value) { SetContent(std::move(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 CreateRelatedItemRequest& WithDomainId(const Aws::String& value) { SetDomainId(value); return *this;} /** *

The unique identifier of the Cases domain.

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

The unique identifier of the Cases domain.

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

The type of a related item.

*/ inline const RelatedItemType& GetType() const{ return m_type; } /** *

The type of a related item.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of a related item.

*/ inline void SetType(const RelatedItemType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of a related item.

*/ inline void SetType(RelatedItemType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of a related item.

*/ inline CreateRelatedItemRequest& WithType(const RelatedItemType& value) { SetType(value); return *this;} /** *

The type of a related item.

*/ inline CreateRelatedItemRequest& WithType(RelatedItemType&& value) { SetType(std::move(value)); return *this;} private: Aws::String m_caseId; bool m_caseIdHasBeenSet = false; RelatedItemInputContent m_content; bool m_contentHasBeenSet = false; Aws::String m_domainId; bool m_domainIdHasBeenSet = false; RelatedItemType m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace ConnectCases } // namespace Aws