AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssessmentRunAgent.h
1
6#pragma once
7#include <aws/inspector/Inspector_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/inspector/model/AgentHealth.h>
10#include <aws/inspector/model/AgentHealthCode.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/inspector/model/TelemetryMetadata.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Inspector
26{
27namespace Model
28{
29
38 {
39 public:
40 AWS_INSPECTOR_API AssessmentRunAgent();
41 AWS_INSPECTOR_API AssessmentRunAgent(Aws::Utils::Json::JsonView jsonValue);
43 AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetAgentId() const{ return m_agentId; }
51 inline bool AgentIdHasBeenSet() const { return m_agentIdHasBeenSet; }
52 inline void SetAgentId(const Aws::String& value) { m_agentIdHasBeenSet = true; m_agentId = value; }
53 inline void SetAgentId(Aws::String&& value) { m_agentIdHasBeenSet = true; m_agentId = std::move(value); }
54 inline void SetAgentId(const char* value) { m_agentIdHasBeenSet = true; m_agentId.assign(value); }
55 inline AssessmentRunAgent& WithAgentId(const Aws::String& value) { SetAgentId(value); return *this;}
56 inline AssessmentRunAgent& WithAgentId(Aws::String&& value) { SetAgentId(std::move(value)); return *this;}
57 inline AssessmentRunAgent& WithAgentId(const char* value) { SetAgentId(value); return *this;}
59
61
64 inline const Aws::String& GetAssessmentRunArn() const{ return m_assessmentRunArn; }
65 inline bool AssessmentRunArnHasBeenSet() const { return m_assessmentRunArnHasBeenSet; }
66 inline void SetAssessmentRunArn(const Aws::String& value) { m_assessmentRunArnHasBeenSet = true; m_assessmentRunArn = value; }
67 inline void SetAssessmentRunArn(Aws::String&& value) { m_assessmentRunArnHasBeenSet = true; m_assessmentRunArn = std::move(value); }
68 inline void SetAssessmentRunArn(const char* value) { m_assessmentRunArnHasBeenSet = true; m_assessmentRunArn.assign(value); }
69 inline AssessmentRunAgent& WithAssessmentRunArn(const Aws::String& value) { SetAssessmentRunArn(value); return *this;}
70 inline AssessmentRunAgent& WithAssessmentRunArn(Aws::String&& value) { SetAssessmentRunArn(std::move(value)); return *this;}
71 inline AssessmentRunAgent& WithAssessmentRunArn(const char* value) { SetAssessmentRunArn(value); return *this;}
73
75
78 inline const AgentHealth& GetAgentHealth() const{ return m_agentHealth; }
79 inline bool AgentHealthHasBeenSet() const { return m_agentHealthHasBeenSet; }
80 inline void SetAgentHealth(const AgentHealth& value) { m_agentHealthHasBeenSet = true; m_agentHealth = value; }
81 inline void SetAgentHealth(AgentHealth&& value) { m_agentHealthHasBeenSet = true; m_agentHealth = std::move(value); }
82 inline AssessmentRunAgent& WithAgentHealth(const AgentHealth& value) { SetAgentHealth(value); return *this;}
83 inline AssessmentRunAgent& WithAgentHealth(AgentHealth&& value) { SetAgentHealth(std::move(value)); return *this;}
85
87
90 inline const AgentHealthCode& GetAgentHealthCode() const{ return m_agentHealthCode; }
91 inline bool AgentHealthCodeHasBeenSet() const { return m_agentHealthCodeHasBeenSet; }
92 inline void SetAgentHealthCode(const AgentHealthCode& value) { m_agentHealthCodeHasBeenSet = true; m_agentHealthCode = value; }
93 inline void SetAgentHealthCode(AgentHealthCode&& value) { m_agentHealthCodeHasBeenSet = true; m_agentHealthCode = std::move(value); }
94 inline AssessmentRunAgent& WithAgentHealthCode(const AgentHealthCode& value) { SetAgentHealthCode(value); return *this;}
95 inline AssessmentRunAgent& WithAgentHealthCode(AgentHealthCode&& value) { SetAgentHealthCode(std::move(value)); return *this;}
97
99
102 inline const Aws::String& GetAgentHealthDetails() const{ return m_agentHealthDetails; }
103 inline bool AgentHealthDetailsHasBeenSet() const { return m_agentHealthDetailsHasBeenSet; }
104 inline void SetAgentHealthDetails(const Aws::String& value) { m_agentHealthDetailsHasBeenSet = true; m_agentHealthDetails = value; }
105 inline void SetAgentHealthDetails(Aws::String&& value) { m_agentHealthDetailsHasBeenSet = true; m_agentHealthDetails = std::move(value); }
106 inline void SetAgentHealthDetails(const char* value) { m_agentHealthDetailsHasBeenSet = true; m_agentHealthDetails.assign(value); }
107 inline AssessmentRunAgent& WithAgentHealthDetails(const Aws::String& value) { SetAgentHealthDetails(value); return *this;}
108 inline AssessmentRunAgent& WithAgentHealthDetails(Aws::String&& value) { SetAgentHealthDetails(std::move(value)); return *this;}
109 inline AssessmentRunAgent& WithAgentHealthDetails(const char* value) { SetAgentHealthDetails(value); return *this;}
111
113
117 inline const Aws::String& GetAutoScalingGroup() const{ return m_autoScalingGroup; }
118 inline bool AutoScalingGroupHasBeenSet() const { return m_autoScalingGroupHasBeenSet; }
119 inline void SetAutoScalingGroup(const Aws::String& value) { m_autoScalingGroupHasBeenSet = true; m_autoScalingGroup = value; }
120 inline void SetAutoScalingGroup(Aws::String&& value) { m_autoScalingGroupHasBeenSet = true; m_autoScalingGroup = std::move(value); }
121 inline void SetAutoScalingGroup(const char* value) { m_autoScalingGroupHasBeenSet = true; m_autoScalingGroup.assign(value); }
122 inline AssessmentRunAgent& WithAutoScalingGroup(const Aws::String& value) { SetAutoScalingGroup(value); return *this;}
123 inline AssessmentRunAgent& WithAutoScalingGroup(Aws::String&& value) { SetAutoScalingGroup(std::move(value)); return *this;}
124 inline AssessmentRunAgent& WithAutoScalingGroup(const char* value) { SetAutoScalingGroup(value); return *this;}
126
128
132 inline const Aws::Vector<TelemetryMetadata>& GetTelemetryMetadata() const{ return m_telemetryMetadata; }
133 inline bool TelemetryMetadataHasBeenSet() const { return m_telemetryMetadataHasBeenSet; }
134 inline void SetTelemetryMetadata(const Aws::Vector<TelemetryMetadata>& value) { m_telemetryMetadataHasBeenSet = true; m_telemetryMetadata = value; }
135 inline void SetTelemetryMetadata(Aws::Vector<TelemetryMetadata>&& value) { m_telemetryMetadataHasBeenSet = true; m_telemetryMetadata = std::move(value); }
138 inline AssessmentRunAgent& AddTelemetryMetadata(const TelemetryMetadata& value) { m_telemetryMetadataHasBeenSet = true; m_telemetryMetadata.push_back(value); return *this; }
139 inline AssessmentRunAgent& AddTelemetryMetadata(TelemetryMetadata&& value) { m_telemetryMetadataHasBeenSet = true; m_telemetryMetadata.push_back(std::move(value)); return *this; }
141 private:
142
143 Aws::String m_agentId;
144 bool m_agentIdHasBeenSet = false;
145
146 Aws::String m_assessmentRunArn;
147 bool m_assessmentRunArnHasBeenSet = false;
148
149 AgentHealth m_agentHealth;
150 bool m_agentHealthHasBeenSet = false;
151
152 AgentHealthCode m_agentHealthCode;
153 bool m_agentHealthCodeHasBeenSet = false;
154
155 Aws::String m_agentHealthDetails;
156 bool m_agentHealthDetailsHasBeenSet = false;
157
158 Aws::String m_autoScalingGroup;
159 bool m_autoScalingGroupHasBeenSet = false;
160
161 Aws::Vector<TelemetryMetadata> m_telemetryMetadata;
162 bool m_telemetryMetadataHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace Inspector
167} // namespace Aws
void SetAgentHealthCode(AgentHealthCode &&value)
AssessmentRunAgent & WithAgentId(Aws::String &&value)
AssessmentRunAgent & WithAutoScalingGroup(const Aws::String &value)
void SetAgentId(const Aws::String &value)
AssessmentRunAgent & AddTelemetryMetadata(TelemetryMetadata &&value)
const Aws::String & GetAssessmentRunArn() const
void SetAgentHealthDetails(const Aws::String &value)
AssessmentRunAgent & WithTelemetryMetadata(Aws::Vector< TelemetryMetadata > &&value)
AssessmentRunAgent & WithAgentHealth(const AgentHealth &value)
const Aws::String & GetAutoScalingGroup() const
const AgentHealthCode & GetAgentHealthCode() const
AssessmentRunAgent & WithAssessmentRunArn(Aws::String &&value)
AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
AssessmentRunAgent & WithAgentHealthCode(AgentHealthCode &&value)
void SetAgentHealthCode(const AgentHealthCode &value)
AssessmentRunAgent & WithAssessmentRunArn(const Aws::String &value)
AssessmentRunAgent & WithAgentHealthDetails(const char *value)
AssessmentRunAgent & WithAgentHealthDetails(const Aws::String &value)
const Aws::String & GetAgentHealthDetails() const
AssessmentRunAgent & WithAssessmentRunArn(const char *value)
AssessmentRunAgent & WithAutoScalingGroup(Aws::String &&value)
void SetAutoScalingGroup(const Aws::String &value)
void SetTelemetryMetadata(Aws::Vector< TelemetryMetadata > &&value)
AssessmentRunAgent & WithAgentId(const char *value)
AssessmentRunAgent & WithAutoScalingGroup(const char *value)
AWS_INSPECTOR_API AssessmentRunAgent(Aws::Utils::Json::JsonView jsonValue)
void SetTelemetryMetadata(const Aws::Vector< TelemetryMetadata > &value)
AssessmentRunAgent & AddTelemetryMetadata(const TelemetryMetadata &value)
AssessmentRunAgent & WithAgentId(const Aws::String &value)
void SetAgentHealth(const AgentHealth &value)
void SetAssessmentRunArn(const Aws::String &value)
AssessmentRunAgent & WithTelemetryMetadata(const Aws::Vector< TelemetryMetadata > &value)
AssessmentRunAgent & WithAgentHealthDetails(Aws::String &&value)
AssessmentRunAgent & WithAgentHealth(AgentHealth &&value)
const Aws::Vector< TelemetryMetadata > & GetTelemetryMetadata() const
AWS_INSPECTOR_API AssessmentRunAgent & operator=(Aws::Utils::Json::JsonView jsonValue)
AssessmentRunAgent & WithAgentHealthCode(const AgentHealthCode &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue