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

You cannot perform a specified action if an assessment run is currently in * progress.

See Also:

AWS * API Reference

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

Details of the exception error.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

Details of the exception error.

*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

Details of the exception error.

*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *

Details of the exception error.

*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *

Details of the exception error.

*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *

Details of the exception error.

*/ inline AssessmentRunInProgressException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

Details of the exception error.

*/ inline AssessmentRunInProgressException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

Details of the exception error.

*/ inline AssessmentRunInProgressException& WithMessage(const char* value) { SetMessage(value); return *this;} /** *

The ARNs of the assessment runs that are currently in progress.

*/ inline const Aws::Vector& GetAssessmentRunArns() const{ return m_assessmentRunArns; } /** *

The ARNs of the assessment runs that are currently in progress.

*/ inline bool AssessmentRunArnsHasBeenSet() const { return m_assessmentRunArnsHasBeenSet; } /** *

The ARNs of the assessment runs that are currently in progress.

*/ inline void SetAssessmentRunArns(const Aws::Vector& value) { m_assessmentRunArnsHasBeenSet = true; m_assessmentRunArns = value; } /** *

The ARNs of the assessment runs that are currently in progress.

*/ inline void SetAssessmentRunArns(Aws::Vector&& value) { m_assessmentRunArnsHasBeenSet = true; m_assessmentRunArns = std::move(value); } /** *

The ARNs of the assessment runs that are currently in progress.

*/ inline AssessmentRunInProgressException& WithAssessmentRunArns(const Aws::Vector& value) { SetAssessmentRunArns(value); return *this;} /** *

The ARNs of the assessment runs that are currently in progress.

*/ inline AssessmentRunInProgressException& WithAssessmentRunArns(Aws::Vector&& value) { SetAssessmentRunArns(std::move(value)); return *this;} /** *

The ARNs of the assessment runs that are currently in progress.

*/ inline AssessmentRunInProgressException& AddAssessmentRunArns(const Aws::String& value) { m_assessmentRunArnsHasBeenSet = true; m_assessmentRunArns.push_back(value); return *this; } /** *

The ARNs of the assessment runs that are currently in progress.

*/ inline AssessmentRunInProgressException& AddAssessmentRunArns(Aws::String&& value) { m_assessmentRunArnsHasBeenSet = true; m_assessmentRunArns.push_back(std::move(value)); return *this; } /** *

The ARNs of the assessment runs that are currently in progress.

*/ inline AssessmentRunInProgressException& AddAssessmentRunArns(const char* value) { m_assessmentRunArnsHasBeenSet = true; m_assessmentRunArns.push_back(value); return *this; } /** *

Boolean value that indicates whether the ARN list of the assessment runs is * truncated.

*/ inline bool GetAssessmentRunArnsTruncated() const{ return m_assessmentRunArnsTruncated; } /** *

Boolean value that indicates whether the ARN list of the assessment runs is * truncated.

*/ inline bool AssessmentRunArnsTruncatedHasBeenSet() const { return m_assessmentRunArnsTruncatedHasBeenSet; } /** *

Boolean value that indicates whether the ARN list of the assessment runs is * truncated.

*/ inline void SetAssessmentRunArnsTruncated(bool value) { m_assessmentRunArnsTruncatedHasBeenSet = true; m_assessmentRunArnsTruncated = value; } /** *

Boolean value that indicates whether the ARN list of the assessment runs is * truncated.

*/ inline AssessmentRunInProgressException& WithAssessmentRunArnsTruncated(bool value) { SetAssessmentRunArnsTruncated(value); return *this;} /** *

You can immediately retry your request.

*/ inline bool GetCanRetry() const{ return m_canRetry; } /** *

You can immediately retry your request.

*/ inline bool CanRetryHasBeenSet() const { return m_canRetryHasBeenSet; } /** *

You can immediately retry your request.

*/ inline void SetCanRetry(bool value) { m_canRetryHasBeenSet = true; m_canRetry = value; } /** *

You can immediately retry your request.

*/ inline AssessmentRunInProgressException& WithCanRetry(bool value) { SetCanRetry(value); return *this;} private: Aws::String m_message; bool m_messageHasBeenSet = false; Aws::Vector m_assessmentRunArns; bool m_assessmentRunArnsHasBeenSet = false; bool m_assessmentRunArnsTruncated; bool m_assessmentRunArnsTruncatedHasBeenSet = false; bool m_canRetry; bool m_canRetryHasBeenSet = false; }; } // namespace Model } // namespace Inspector } // namespace Aws