AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AgentsAlreadyRunningAssessmentException.h
1
6#pragma once
7#include <aws/inspector/Inspector_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/inspector/model/AgentAlreadyRunningAssessment.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Inspector
24{
25namespace Model
26{
27
35 {
36 public:
40 AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetMessage() const{ return m_message; }
48 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
49 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
50 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
51 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
52 inline AgentsAlreadyRunningAssessmentException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
53 inline AgentsAlreadyRunningAssessmentException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
54 inline AgentsAlreadyRunningAssessmentException& WithMessage(const char* value) { SetMessage(value); return *this;}
56
58
61 inline const Aws::Vector<AgentAlreadyRunningAssessment>& GetAgents() const{ return m_agents; }
62 inline bool AgentsHasBeenSet() const { return m_agentsHasBeenSet; }
63 inline void SetAgents(const Aws::Vector<AgentAlreadyRunningAssessment>& value) { m_agentsHasBeenSet = true; m_agents = value; }
64 inline void SetAgents(Aws::Vector<AgentAlreadyRunningAssessment>&& value) { m_agentsHasBeenSet = true; m_agents = std::move(value); }
67 inline AgentsAlreadyRunningAssessmentException& AddAgents(const AgentAlreadyRunningAssessment& value) { m_agentsHasBeenSet = true; m_agents.push_back(value); return *this; }
68 inline AgentsAlreadyRunningAssessmentException& AddAgents(AgentAlreadyRunningAssessment&& value) { m_agentsHasBeenSet = true; m_agents.push_back(std::move(value)); return *this; }
70
72
75 inline bool GetAgentsTruncated() const{ return m_agentsTruncated; }
76 inline bool AgentsTruncatedHasBeenSet() const { return m_agentsTruncatedHasBeenSet; }
77 inline void SetAgentsTruncated(bool value) { m_agentsTruncatedHasBeenSet = true; m_agentsTruncated = value; }
80
82
85 inline bool GetCanRetry() const{ return m_canRetry; }
86 inline bool CanRetryHasBeenSet() const { return m_canRetryHasBeenSet; }
87 inline void SetCanRetry(bool value) { m_canRetryHasBeenSet = true; m_canRetry = value; }
88 inline AgentsAlreadyRunningAssessmentException& WithCanRetry(bool value) { SetCanRetry(value); return *this;}
90 private:
91
92 Aws::String m_message;
93 bool m_messageHasBeenSet = false;
94
96 bool m_agentsHasBeenSet = false;
97
98 bool m_agentsTruncated;
99 bool m_agentsTruncatedHasBeenSet = false;
100
101 bool m_canRetry;
102 bool m_canRetryHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace Inspector
107} // namespace Aws
void SetAgents(const Aws::Vector< AgentAlreadyRunningAssessment > &value)
AgentsAlreadyRunningAssessmentException & WithMessage(const Aws::String &value)
AgentsAlreadyRunningAssessmentException & AddAgents(AgentAlreadyRunningAssessment &&value)
const Aws::Vector< AgentAlreadyRunningAssessment > & GetAgents() const
AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAgents(Aws::Vector< AgentAlreadyRunningAssessment > &&value)
AgentsAlreadyRunningAssessmentException & AddAgents(const AgentAlreadyRunningAssessment &value)
AgentsAlreadyRunningAssessmentException & WithMessage(Aws::String &&value)
AgentsAlreadyRunningAssessmentException & WithMessage(const char *value)
AWS_INSPECTOR_API AgentsAlreadyRunningAssessmentException(Aws::Utils::Json::JsonView jsonValue)
AgentsAlreadyRunningAssessmentException & WithAgents(Aws::Vector< AgentAlreadyRunningAssessment > &&value)
AgentsAlreadyRunningAssessmentException & WithAgents(const Aws::Vector< AgentAlreadyRunningAssessment > &value)
AWS_INSPECTOR_API AgentsAlreadyRunningAssessmentException & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue