AWS SDK for C++  0.12.9
AWS SDK for C++
Agent.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace Inspector
31 {
32 namespace Model
33 {
34 
40  {
41  public:
42  Agent();
43  Agent(const Aws::Utils::Json::JsonValue& jsonValue);
44  Agent& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
45  Aws::Utils::Json::JsonValue Jsonize() const;
46 
50  inline const Aws::String& GetAgentId() const{ return m_agentId; }
51 
55  inline void SetAgentId(const Aws::String& value) { m_agentIdHasBeenSet = true; m_agentId = value; }
56 
60  inline void SetAgentId(Aws::String&& value) { m_agentIdHasBeenSet = true; m_agentId = value; }
61 
65  inline void SetAgentId(const char* value) { m_agentIdHasBeenSet = true; m_agentId.assign(value); }
66 
70  inline Agent& WithAgentId(const Aws::String& value) { SetAgentId(value); return *this;}
71 
75  inline Agent& WithAgentId(Aws::String&& value) { SetAgentId(value); return *this;}
76 
80  inline Agent& WithAgentId(const char* value) { SetAgentId(value); return *this;}
81 
85  inline const Aws::String& GetAssessmentArn() const{ return m_assessmentArn; }
86 
90  inline void SetAssessmentArn(const Aws::String& value) { m_assessmentArnHasBeenSet = true; m_assessmentArn = value; }
91 
95  inline void SetAssessmentArn(Aws::String&& value) { m_assessmentArnHasBeenSet = true; m_assessmentArn = value; }
96 
100  inline void SetAssessmentArn(const char* value) { m_assessmentArnHasBeenSet = true; m_assessmentArn.assign(value); }
101 
105  inline Agent& WithAssessmentArn(const Aws::String& value) { SetAssessmentArn(value); return *this;}
106 
110  inline Agent& WithAssessmentArn(Aws::String&& value) { SetAssessmentArn(value); return *this;}
111 
115  inline Agent& WithAssessmentArn(const char* value) { SetAssessmentArn(value); return *this;}
116 
121  inline const Aws::String& GetAgentHealth() const{ return m_agentHealth; }
122 
127  inline void SetAgentHealth(const Aws::String& value) { m_agentHealthHasBeenSet = true; m_agentHealth = value; }
128 
133  inline void SetAgentHealth(Aws::String&& value) { m_agentHealthHasBeenSet = true; m_agentHealth = value; }
134 
139  inline void SetAgentHealth(const char* value) { m_agentHealthHasBeenSet = true; m_agentHealth.assign(value); }
140 
145  inline Agent& WithAgentHealth(const Aws::String& value) { SetAgentHealth(value); return *this;}
146 
151  inline Agent& WithAgentHealth(Aws::String&& value) { SetAgentHealth(value); return *this;}
152 
157  inline Agent& WithAgentHealth(const char* value) { SetAgentHealth(value); return *this;}
158 
164  inline const Aws::String& GetAgentHealthCode() const{ return m_agentHealthCode; }
165 
171  inline void SetAgentHealthCode(const Aws::String& value) { m_agentHealthCodeHasBeenSet = true; m_agentHealthCode = value; }
172 
178  inline void SetAgentHealthCode(Aws::String&& value) { m_agentHealthCodeHasBeenSet = true; m_agentHealthCode = value; }
179 
185  inline void SetAgentHealthCode(const char* value) { m_agentHealthCodeHasBeenSet = true; m_agentHealthCode.assign(value); }
186 
192  inline Agent& WithAgentHealthCode(const Aws::String& value) { SetAgentHealthCode(value); return *this;}
193 
199  inline Agent& WithAgentHealthCode(Aws::String&& value) { SetAgentHealthCode(value); return *this;}
200 
206  inline Agent& WithAgentHealthCode(const char* value) { SetAgentHealthCode(value); return *this;}
207 
211  inline const Aws::String& GetAgentHealthDetails() const{ return m_agentHealthDetails; }
212 
216  inline void SetAgentHealthDetails(const Aws::String& value) { m_agentHealthDetailsHasBeenSet = true; m_agentHealthDetails = value; }
217 
221  inline void SetAgentHealthDetails(Aws::String&& value) { m_agentHealthDetailsHasBeenSet = true; m_agentHealthDetails = value; }
222 
226  inline void SetAgentHealthDetails(const char* value) { m_agentHealthDetailsHasBeenSet = true; m_agentHealthDetails.assign(value); }
227 
231  inline Agent& WithAgentHealthDetails(const Aws::String& value) { SetAgentHealthDetails(value); return *this;}
232 
236  inline Agent& WithAgentHealthDetails(Aws::String&& value) { SetAgentHealthDetails(value); return *this;}
237 
241  inline Agent& WithAgentHealthDetails(const char* value) { SetAgentHealthDetails(value); return *this;}
242 
246  inline const Aws::String& GetAutoScalingGroup() const{ return m_autoScalingGroup; }
247 
251  inline void SetAutoScalingGroup(const Aws::String& value) { m_autoScalingGroupHasBeenSet = true; m_autoScalingGroup = value; }
252 
256  inline void SetAutoScalingGroup(Aws::String&& value) { m_autoScalingGroupHasBeenSet = true; m_autoScalingGroup = value; }
257 
261  inline void SetAutoScalingGroup(const char* value) { m_autoScalingGroupHasBeenSet = true; m_autoScalingGroup.assign(value); }
262 
266  inline Agent& WithAutoScalingGroup(const Aws::String& value) { SetAutoScalingGroup(value); return *this;}
267 
271  inline Agent& WithAutoScalingGroup(Aws::String&& value) { SetAutoScalingGroup(value); return *this;}
272 
276  inline Agent& WithAutoScalingGroup(const char* value) { SetAutoScalingGroup(value); return *this;}
277 
281  inline const Aws::String& GetAccountId() const{ return m_accountId; }
282 
286  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
287 
291  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
292 
296  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
297 
301  inline Agent& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
302 
306  inline Agent& WithAccountId(Aws::String&& value) { SetAccountId(value); return *this;}
307 
311  inline Agent& WithAccountId(const char* value) { SetAccountId(value); return *this;}
312 
316  inline const Aws::Vector<Telemetry>& GetTelemetry() const{ return m_telemetry; }
317 
321  inline void SetTelemetry(const Aws::Vector<Telemetry>& value) { m_telemetryHasBeenSet = true; m_telemetry = value; }
322 
326  inline void SetTelemetry(Aws::Vector<Telemetry>&& value) { m_telemetryHasBeenSet = true; m_telemetry = value; }
327 
331  inline Agent& WithTelemetry(const Aws::Vector<Telemetry>& value) { SetTelemetry(value); return *this;}
332 
336  inline Agent& WithTelemetry(Aws::Vector<Telemetry>&& value) { SetTelemetry(value); return *this;}
337 
341  inline Agent& AddTelemetry(const Telemetry& value) { m_telemetryHasBeenSet = true; m_telemetry.push_back(value); return *this; }
342 
346  inline Agent& AddTelemetry(Telemetry&& value) { m_telemetryHasBeenSet = true; m_telemetry.push_back(value); return *this; }
347 
348  private:
349  Aws::String m_agentId;
350  bool m_agentIdHasBeenSet;
351  Aws::String m_assessmentArn;
352  bool m_assessmentArnHasBeenSet;
353  Aws::String m_agentHealth;
354  bool m_agentHealthHasBeenSet;
355  Aws::String m_agentHealthCode;
356  bool m_agentHealthCodeHasBeenSet;
357  Aws::String m_agentHealthDetails;
358  bool m_agentHealthDetailsHasBeenSet;
359  Aws::String m_autoScalingGroup;
360  bool m_autoScalingGroupHasBeenSet;
361  Aws::String m_accountId;
362  bool m_accountIdHasBeenSet;
363  Aws::Vector<Telemetry> m_telemetry;
364  bool m_telemetryHasBeenSet;
365  };
366 
367 } // namespace Model
368 } // namespace Inspector
369 } // namespace Aws
void SetAgentHealth(const Aws::String &value)
Definition: Agent.h:127
Agent & AddTelemetry(Telemetry &&value)
Definition: Agent.h:346
void SetAssessmentArn(const char *value)
Definition: Agent.h:100
void SetAgentId(const Aws::String &value)
Definition: Agent.h:55
Agent & WithTelemetry(const Aws::Vector< Telemetry > &value)
Definition: Agent.h:331
Agent & WithAgentHealth(const Aws::String &value)
Definition: Agent.h:145
Agent & WithAutoScalingGroup(const Aws::String &value)
Definition: Agent.h:266
Agent & WithAccountId(Aws::String &&value)
Definition: Agent.h:306
Agent & WithAgentHealth(Aws::String &&value)
Definition: Agent.h:151
void SetAgentHealthDetails(const char *value)
Definition: Agent.h:226
Agent & AddTelemetry(const Telemetry &value)
Definition: Agent.h:341
void SetAutoScalingGroup(Aws::String &&value)
Definition: Agent.h:256
const Aws::Vector< Telemetry > & GetTelemetry() const
Definition: Agent.h:316
const Aws::String & GetAgentHealth() const
Definition: Agent.h:121
void SetAgentHealth(const char *value)
Definition: Agent.h:139
#define AWS_INSPECTOR_API
Agent & WithAccountId(const Aws::String &value)
Definition: Agent.h:301
Agent & WithAgentHealth(const char *value)
Definition: Agent.h:157
Agent & WithAgentId(Aws::String &&value)
Definition: Agent.h:75
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
const Aws::String & GetAgentHealthCode() const
Definition: Agent.h:164
void SetTelemetry(Aws::Vector< Telemetry > &&value)
Definition: Agent.h:326
void SetAccountId(const Aws::String &value)
Definition: Agent.h:286
Agent & WithAutoScalingGroup(const char *value)
Definition: Agent.h:276
void SetAgentHealthDetails(const Aws::String &value)
Definition: Agent.h:216
const Aws::String & GetAgentHealthDetails() const
Definition: Agent.h:211
void SetTelemetry(const Aws::Vector< Telemetry > &value)
Definition: Agent.h:321
void SetAgentHealthDetails(Aws::String &&value)
Definition: Agent.h:221
Agent & WithAgentHealthDetails(Aws::String &&value)
Definition: Agent.h:236
Agent & WithAssessmentArn(const Aws::String &value)
Definition: Agent.h:105
void SetAgentHealthCode(Aws::String &&value)
Definition: Agent.h:178
Agent & WithAgentId(const Aws::String &value)
Definition: Agent.h:70
void SetAccountId(const char *value)
Definition: Agent.h:296
Agent & WithAgentHealthDetails(const char *value)
Definition: Agent.h:241
void SetAssessmentArn(Aws::String &&value)
Definition: Agent.h:95
void SetAgentHealthCode(const Aws::String &value)
Definition: Agent.h:171
void SetAutoScalingGroup(const char *value)
Definition: Agent.h:261
const Aws::String & GetAgentId() const
Definition: Agent.h:50
Agent & WithAssessmentArn(const char *value)
Definition: Agent.h:115
void SetAgentId(Aws::String &&value)
Definition: Agent.h:60
Agent & WithAutoScalingGroup(Aws::String &&value)
Definition: Agent.h:271
void SetAgentHealthCode(const char *value)
Definition: Agent.h:185
Agent & WithAgentHealthCode(Aws::String &&value)
Definition: Agent.h:199
void SetAutoScalingGroup(const Aws::String &value)
Definition: Agent.h:251
Agent & WithAgentHealthCode(const char *value)
Definition: Agent.h:206
const Aws::String & GetAssessmentArn() const
Definition: Agent.h:85
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetAgentId(const char *value)
Definition: Agent.h:65
void SetAgentHealth(Aws::String &&value)
Definition: Agent.h:133
Agent & WithAgentId(const char *value)
Definition: Agent.h:80
Agent & WithTelemetry(Aws::Vector< Telemetry > &&value)
Definition: Agent.h:336
Agent & WithAgentHealthCode(const Aws::String &value)
Definition: Agent.h:192
Agent & WithAccountId(const char *value)
Definition: Agent.h:311
Agent & WithAssessmentArn(Aws::String &&value)
Definition: Agent.h:110
Agent & WithAgentHealthDetails(const Aws::String &value)
Definition: Agent.h:231
const Aws::String & GetAccountId() const
Definition: Agent.h:281
const Aws::String & GetAutoScalingGroup() const
Definition: Agent.h:246
void SetAssessmentArn(const Aws::String &value)
Definition: Agent.h:90
void SetAccountId(Aws::String &&value)
Definition: Agent.h:291
JSON (JavaScript Object Notation).