AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
BatchDeleteAgentError.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/discovery/ApplicationDiscoveryService_EXPORTS.h>
9#include <aws/discovery/model/DeleteAgentErrorCode.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ApplicationDiscoveryService {
21namespace Model {
22
31 public:
32 AWS_APPLICATIONDISCOVERYSERVICE_API BatchDeleteAgentError() = default;
33 AWS_APPLICATIONDISCOVERYSERVICE_API BatchDeleteAgentError(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPLICATIONDISCOVERYSERVICE_API BatchDeleteAgentError& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_APPLICATIONDISCOVERYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetAgentId() const { return m_agentId; }
42 inline bool AgentIdHasBeenSet() const { return m_agentIdHasBeenSet; }
43 template <typename AgentIdT = Aws::String>
44 void SetAgentId(AgentIdT&& value) {
45 m_agentIdHasBeenSet = true;
46 m_agentId = std::forward<AgentIdT>(value);
47 }
48 template <typename AgentIdT = Aws::String>
50 SetAgentId(std::forward<AgentIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
60 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
61 template <typename ErrorMessageT = Aws::String>
62 void SetErrorMessage(ErrorMessageT&& value) {
63 m_errorMessageHasBeenSet = true;
64 m_errorMessage = std::forward<ErrorMessageT>(value);
65 }
66 template <typename ErrorMessageT = Aws::String>
67 BatchDeleteAgentError& WithErrorMessage(ErrorMessageT&& value) {
68 SetErrorMessage(std::forward<ErrorMessageT>(value));
69 return *this;
70 }
72
74
78 inline DeleteAgentErrorCode GetErrorCode() const { return m_errorCode; }
79 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
81 m_errorCodeHasBeenSet = true;
82 m_errorCode = value;
83 }
85 SetErrorCode(value);
86 return *this;
87 }
89 private:
90 Aws::String m_agentId;
91
92 Aws::String m_errorMessage;
93
95 bool m_agentIdHasBeenSet = false;
96 bool m_errorMessageHasBeenSet = false;
97 bool m_errorCodeHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace ApplicationDiscoveryService
102} // namespace Aws
AWS_APPLICATIONDISCOVERYSERVICE_API BatchDeleteAgentError(Aws::Utils::Json::JsonView jsonValue)
AWS_APPLICATIONDISCOVERYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
BatchDeleteAgentError & WithErrorMessage(ErrorMessageT &&value)
AWS_APPLICATIONDISCOVERYSERVICE_API BatchDeleteAgentError()=default
AWS_APPLICATIONDISCOVERYSERVICE_API BatchDeleteAgentError & operator=(Aws::Utils::Json::JsonView jsonValue)
BatchDeleteAgentError & WithErrorCode(DeleteAgentErrorCode value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue