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

A unique identifier of the case.

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

A unique identifier of the case.

*/ inline GetCaseRequest& 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 GetCaseRequest& WithDomainId(const Aws::String& value) { SetDomainId(value); return *this;} /** *

The unique identifier of the Cases domain.

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

The unique identifier of the Cases domain.

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

A list of unique field identifiers.

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

A list of unique field identifiers.

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

A list of unique field identifiers.

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

A list of unique field identifiers.

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

A list of unique field identifiers.

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

A list of unique field identifiers.

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

A list of unique field identifiers.

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

A list of unique field identifiers.

*/ inline GetCaseRequest& AddFields(FieldIdentifier&& value) { m_fieldsHasBeenSet = true; m_fields.push_back(std::move(value)); return *this; } /** *

The token for the next set of results. Use the value returned in the previous * response in the next request to retrieve the next set of results.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

The token for the next set of results. Use the value returned in the previous * response in the next request to retrieve the next set of results.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

The token for the next set of results. Use the value returned in the previous * response in the next request to retrieve the next set of results.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

The token for the next set of results. Use the value returned in the previous * response in the next request to retrieve the next set of results.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

The token for the next set of results. Use the value returned in the previous * response in the next request to retrieve the next set of results.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

The token for the next set of results. Use the value returned in the previous * response in the next request to retrieve the next set of results.

*/ inline GetCaseRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

The token for the next set of results. Use the value returned in the previous * response in the next request to retrieve the next set of results.

*/ inline GetCaseRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

The token for the next set of results. Use the value returned in the previous * response in the next request to retrieve the next set of results.

*/ inline GetCaseRequest& WithNextToken(const char* value) { SetNextToken(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; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace ConnectCases } // namespace Aws