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

Contains information about an Amazon Inspector agent. This data type is used * as a response element in the ListAssessmentRunAgents * action.

See Also:

AWS * API Reference

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

The AWS account of the EC2 instance where the agent is installed.

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

The AWS account of the EC2 instance where the agent is installed.

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

The AWS account of the EC2 instance where the agent is installed.

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

The AWS account of the EC2 instance where the agent is installed.

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

The AWS account of the EC2 instance where the agent is installed.

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

The AWS account of the EC2 instance where the agent is installed.

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

The AWS account of the EC2 instance where the agent is installed.

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

The AWS account of the EC2 instance where the agent is installed.

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

The ARN of the assessment run that is associated with the agent.

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

The ARN of the assessment run that is associated with the agent.

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

The ARN of the assessment run that is associated with the agent.

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

The ARN of the assessment run that is associated with the agent.

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

The ARN of the assessment run that is associated with the agent.

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

The ARN of the assessment run that is associated with the agent.

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

The ARN of the assessment run that is associated with the agent.

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

The ARN of the assessment run that is associated with the agent.

*/ inline AssessmentRunAgent& WithAssessmentRunArn(const char* value) { SetAssessmentRunArn(value); return *this;} /** *

The current health state of the agent.

*/ inline const AgentHealth& GetAgentHealth() const{ return m_agentHealth; } /** *

The current health state of the agent.

*/ inline bool AgentHealthHasBeenSet() const { return m_agentHealthHasBeenSet; } /** *

The current health state of the agent.

*/ inline void SetAgentHealth(const AgentHealth& value) { m_agentHealthHasBeenSet = true; m_agentHealth = value; } /** *

The current health state of the agent.

*/ inline void SetAgentHealth(AgentHealth&& value) { m_agentHealthHasBeenSet = true; m_agentHealth = std::move(value); } /** *

The current health state of the agent.

*/ inline AssessmentRunAgent& WithAgentHealth(const AgentHealth& value) { SetAgentHealth(value); return *this;} /** *

The current health state of the agent.

*/ inline AssessmentRunAgent& WithAgentHealth(AgentHealth&& value) { SetAgentHealth(std::move(value)); return *this;} /** *

The detailed health state of the agent.

*/ inline const AgentHealthCode& GetAgentHealthCode() const{ return m_agentHealthCode; } /** *

The detailed health state of the agent.

*/ inline bool AgentHealthCodeHasBeenSet() const { return m_agentHealthCodeHasBeenSet; } /** *

The detailed health state of the agent.

*/ inline void SetAgentHealthCode(const AgentHealthCode& value) { m_agentHealthCodeHasBeenSet = true; m_agentHealthCode = value; } /** *

The detailed health state of the agent.

*/ inline void SetAgentHealthCode(AgentHealthCode&& value) { m_agentHealthCodeHasBeenSet = true; m_agentHealthCode = std::move(value); } /** *

The detailed health state of the agent.

*/ inline AssessmentRunAgent& WithAgentHealthCode(const AgentHealthCode& value) { SetAgentHealthCode(value); return *this;} /** *

The detailed health state of the agent.

*/ inline AssessmentRunAgent& WithAgentHealthCode(AgentHealthCode&& value) { SetAgentHealthCode(std::move(value)); return *this;} /** *

The description for the agent health code.

*/ inline const Aws::String& GetAgentHealthDetails() const{ return m_agentHealthDetails; } /** *

The description for the agent health code.

*/ inline bool AgentHealthDetailsHasBeenSet() const { return m_agentHealthDetailsHasBeenSet; } /** *

The description for the agent health code.

*/ inline void SetAgentHealthDetails(const Aws::String& value) { m_agentHealthDetailsHasBeenSet = true; m_agentHealthDetails = value; } /** *

The description for the agent health code.

*/ inline void SetAgentHealthDetails(Aws::String&& value) { m_agentHealthDetailsHasBeenSet = true; m_agentHealthDetails = std::move(value); } /** *

The description for the agent health code.

*/ inline void SetAgentHealthDetails(const char* value) { m_agentHealthDetailsHasBeenSet = true; m_agentHealthDetails.assign(value); } /** *

The description for the agent health code.

*/ inline AssessmentRunAgent& WithAgentHealthDetails(const Aws::String& value) { SetAgentHealthDetails(value); return *this;} /** *

The description for the agent health code.

*/ inline AssessmentRunAgent& WithAgentHealthDetails(Aws::String&& value) { SetAgentHealthDetails(std::move(value)); return *this;} /** *

The description for the agent health code.

*/ inline AssessmentRunAgent& WithAgentHealthDetails(const char* value) { SetAgentHealthDetails(value); return *this;} /** *

The Auto Scaling group of the EC2 instance that is specified by the agent * ID.

*/ inline const Aws::String& GetAutoScalingGroup() const{ return m_autoScalingGroup; } /** *

The Auto Scaling group of the EC2 instance that is specified by the agent * ID.

*/ inline bool AutoScalingGroupHasBeenSet() const { return m_autoScalingGroupHasBeenSet; } /** *

The Auto Scaling group of the EC2 instance that is specified by the agent * ID.

*/ inline void SetAutoScalingGroup(const Aws::String& value) { m_autoScalingGroupHasBeenSet = true; m_autoScalingGroup = value; } /** *

The Auto Scaling group of the EC2 instance that is specified by the agent * ID.

*/ inline void SetAutoScalingGroup(Aws::String&& value) { m_autoScalingGroupHasBeenSet = true; m_autoScalingGroup = std::move(value); } /** *

The Auto Scaling group of the EC2 instance that is specified by the agent * ID.

*/ inline void SetAutoScalingGroup(const char* value) { m_autoScalingGroupHasBeenSet = true; m_autoScalingGroup.assign(value); } /** *

The Auto Scaling group of the EC2 instance that is specified by the agent * ID.

*/ inline AssessmentRunAgent& WithAutoScalingGroup(const Aws::String& value) { SetAutoScalingGroup(value); return *this;} /** *

The Auto Scaling group of the EC2 instance that is specified by the agent * ID.

*/ inline AssessmentRunAgent& WithAutoScalingGroup(Aws::String&& value) { SetAutoScalingGroup(std::move(value)); return *this;} /** *

The Auto Scaling group of the EC2 instance that is specified by the agent * ID.

*/ inline AssessmentRunAgent& WithAutoScalingGroup(const char* value) { SetAutoScalingGroup(value); return *this;} /** *

The Amazon Inspector application data metrics that are collected by the * agent.

*/ inline const Aws::Vector& GetTelemetryMetadata() const{ return m_telemetryMetadata; } /** *

The Amazon Inspector application data metrics that are collected by the * agent.

*/ inline bool TelemetryMetadataHasBeenSet() const { return m_telemetryMetadataHasBeenSet; } /** *

The Amazon Inspector application data metrics that are collected by the * agent.

*/ inline void SetTelemetryMetadata(const Aws::Vector& value) { m_telemetryMetadataHasBeenSet = true; m_telemetryMetadata = value; } /** *

The Amazon Inspector application data metrics that are collected by the * agent.

*/ inline void SetTelemetryMetadata(Aws::Vector&& value) { m_telemetryMetadataHasBeenSet = true; m_telemetryMetadata = std::move(value); } /** *

The Amazon Inspector application data metrics that are collected by the * agent.

*/ inline AssessmentRunAgent& WithTelemetryMetadata(const Aws::Vector& value) { SetTelemetryMetadata(value); return *this;} /** *

The Amazon Inspector application data metrics that are collected by the * agent.

*/ inline AssessmentRunAgent& WithTelemetryMetadata(Aws::Vector&& value) { SetTelemetryMetadata(std::move(value)); return *this;} /** *

The Amazon Inspector application data metrics that are collected by the * agent.

*/ inline AssessmentRunAgent& AddTelemetryMetadata(const TelemetryMetadata& value) { m_telemetryMetadataHasBeenSet = true; m_telemetryMetadata.push_back(value); return *this; } /** *

The Amazon Inspector application data metrics that are collected by the * agent.

*/ inline AssessmentRunAgent& AddTelemetryMetadata(TelemetryMetadata&& value) { m_telemetryMetadataHasBeenSet = true; m_telemetryMetadata.push_back(std::move(value)); return *this; } private: Aws::String m_agentId; bool m_agentIdHasBeenSet = false; Aws::String m_assessmentRunArn; bool m_assessmentRunArnHasBeenSet = false; AgentHealth m_agentHealth; bool m_agentHealthHasBeenSet = false; AgentHealthCode m_agentHealthCode; bool m_agentHealthCodeHasBeenSet = false; Aws::String m_agentHealthDetails; bool m_agentHealthDetailsHasBeenSet = false; Aws::String m_autoScalingGroup; bool m_autoScalingGroupHasBeenSet = false; Aws::Vector m_telemetryMetadata; bool m_telemetryMetadataHasBeenSet = false; }; } // namespace Model } // namespace Inspector } // namespace Aws