/** * 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 Inspector { namespace Model { /** *

Used in the exception error that is thrown if you start an assessment run for * an assessment target that includes an EC2 instance that is already participating * in another started assessment run.

See Also:

AWS * API Reference

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

ID of the agent that is running on an EC2 instance that is already * participating in another started assessment run.

*/ inline const Aws::String& GetAgentId() const{ return m_agentId; } /** *

ID of the agent that is running on an EC2 instance that is already * participating in another started assessment run.

*/ inline bool AgentIdHasBeenSet() const { return m_agentIdHasBeenSet; } /** *

ID of the agent that is running on an EC2 instance that is already * participating in another started assessment run.

*/ inline void SetAgentId(const Aws::String& value) { m_agentIdHasBeenSet = true; m_agentId = value; } /** *

ID of the agent that is running on an EC2 instance that is already * participating in another started assessment run.

*/ inline void SetAgentId(Aws::String&& value) { m_agentIdHasBeenSet = true; m_agentId = std::move(value); } /** *

ID of the agent that is running on an EC2 instance that is already * participating in another started assessment run.

*/ inline void SetAgentId(const char* value) { m_agentIdHasBeenSet = true; m_agentId.assign(value); } /** *

ID of the agent that is running on an EC2 instance that is already * participating in another started assessment run.

*/ inline AgentAlreadyRunningAssessment& WithAgentId(const Aws::String& value) { SetAgentId(value); return *this;} /** *

ID of the agent that is running on an EC2 instance that is already * participating in another started assessment run.

*/ inline AgentAlreadyRunningAssessment& WithAgentId(Aws::String&& value) { SetAgentId(std::move(value)); return *this;} /** *

ID of the agent that is running on an EC2 instance that is already * participating in another started assessment run.

*/ inline AgentAlreadyRunningAssessment& WithAgentId(const char* value) { SetAgentId(value); return *this;} /** *

The ARN of the assessment run that has already been started.

*/ inline const Aws::String& GetAssessmentRunArn() const{ return m_assessmentRunArn; } /** *

The ARN of the assessment run that has already been started.

*/ inline bool AssessmentRunArnHasBeenSet() const { return m_assessmentRunArnHasBeenSet; } /** *

The ARN of the assessment run that has already been started.

*/ inline void SetAssessmentRunArn(const Aws::String& value) { m_assessmentRunArnHasBeenSet = true; m_assessmentRunArn = value; } /** *

The ARN of the assessment run that has already been started.

*/ inline void SetAssessmentRunArn(Aws::String&& value) { m_assessmentRunArnHasBeenSet = true; m_assessmentRunArn = std::move(value); } /** *

The ARN of the assessment run that has already been started.

*/ inline void SetAssessmentRunArn(const char* value) { m_assessmentRunArnHasBeenSet = true; m_assessmentRunArn.assign(value); } /** *

The ARN of the assessment run that has already been started.

*/ inline AgentAlreadyRunningAssessment& WithAssessmentRunArn(const Aws::String& value) { SetAssessmentRunArn(value); return *this;} /** *

The ARN of the assessment run that has already been started.

*/ inline AgentAlreadyRunningAssessment& WithAssessmentRunArn(Aws::String&& value) { SetAssessmentRunArn(std::move(value)); return *this;} /** *

The ARN of the assessment run that has already been started.

*/ inline AgentAlreadyRunningAssessment& WithAssessmentRunArn(const char* value) { SetAssessmentRunArn(value); return *this;} private: Aws::String m_agentId; bool m_agentIdHasBeenSet = false; Aws::String m_assessmentRunArn; bool m_assessmentRunArnHasBeenSet = false; }; } // namespace Model } // namespace Inspector } // namespace Aws