/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace AuditManager { namespace Model { /** *

An error entity for the BatchDeleteDelegationByAssessment API. * This is used to provide more meaningful errors than a simple string message. *

See Also:

AWS * API Reference

*/ class BatchDeleteDelegationByAssessmentError { public: AWS_AUDITMANAGER_API BatchDeleteDelegationByAssessmentError(); AWS_AUDITMANAGER_API BatchDeleteDelegationByAssessmentError(Aws::Utils::Json::JsonView jsonValue); AWS_AUDITMANAGER_API BatchDeleteDelegationByAssessmentError& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The identifier for the delegation.

*/ inline const Aws::String& GetDelegationId() const{ return m_delegationId; } /** *

The identifier for the delegation.

*/ inline bool DelegationIdHasBeenSet() const { return m_delegationIdHasBeenSet; } /** *

The identifier for the delegation.

*/ inline void SetDelegationId(const Aws::String& value) { m_delegationIdHasBeenSet = true; m_delegationId = value; } /** *

The identifier for the delegation.

*/ inline void SetDelegationId(Aws::String&& value) { m_delegationIdHasBeenSet = true; m_delegationId = std::move(value); } /** *

The identifier for the delegation.

*/ inline void SetDelegationId(const char* value) { m_delegationIdHasBeenSet = true; m_delegationId.assign(value); } /** *

The identifier for the delegation.

*/ inline BatchDeleteDelegationByAssessmentError& WithDelegationId(const Aws::String& value) { SetDelegationId(value); return *this;} /** *

The identifier for the delegation.

*/ inline BatchDeleteDelegationByAssessmentError& WithDelegationId(Aws::String&& value) { SetDelegationId(std::move(value)); return *this;} /** *

The identifier for the delegation.

*/ inline BatchDeleteDelegationByAssessmentError& WithDelegationId(const char* value) { SetDelegationId(value); return *this;} /** *

The error code that the BatchDeleteDelegationByAssessment API * returned.

*/ inline const Aws::String& GetErrorCode() const{ return m_errorCode; } /** *

The error code that the BatchDeleteDelegationByAssessment API * returned.

*/ inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; } /** *

The error code that the BatchDeleteDelegationByAssessment API * returned.

*/ inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; } /** *

The error code that the BatchDeleteDelegationByAssessment API * returned.

*/ inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); } /** *

The error code that the BatchDeleteDelegationByAssessment API * returned.

*/ inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); } /** *

The error code that the BatchDeleteDelegationByAssessment API * returned.

*/ inline BatchDeleteDelegationByAssessmentError& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;} /** *

The error code that the BatchDeleteDelegationByAssessment API * returned.

*/ inline BatchDeleteDelegationByAssessmentError& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;} /** *

The error code that the BatchDeleteDelegationByAssessment API * returned.

*/ inline BatchDeleteDelegationByAssessmentError& WithErrorCode(const char* value) { SetErrorCode(value); return *this;} /** *

The error message that the BatchDeleteDelegationByAssessment * API returned.

*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *

The error message that the BatchDeleteDelegationByAssessment * API returned.

*/ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** *

The error message that the BatchDeleteDelegationByAssessment * API returned.

*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } /** *

The error message that the BatchDeleteDelegationByAssessment * API returned.

*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } /** *

The error message that the BatchDeleteDelegationByAssessment * API returned.

*/ inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } /** *

The error message that the BatchDeleteDelegationByAssessment * API returned.

*/ inline BatchDeleteDelegationByAssessmentError& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *

The error message that the BatchDeleteDelegationByAssessment * API returned.

*/ inline BatchDeleteDelegationByAssessmentError& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *

The error message that the BatchDeleteDelegationByAssessment * API returned.

*/ inline BatchDeleteDelegationByAssessmentError& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} private: Aws::String m_delegationId; bool m_delegationIdHasBeenSet = false; Aws::String m_errorCode; bool m_errorCodeHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; }; } // namespace Model } // namespace AuditManager } // namespace Aws