AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RemoveTargetsResultEntry.h
1
6#pragma once
7#include <aws/events/CloudWatchEvents_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CloudWatchEvents
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_CLOUDWATCHEVENTS_API RemoveTargetsResultEntry();
36 AWS_CLOUDWATCHEVENTS_API RemoveTargetsResultEntry(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CLOUDWATCHEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetTargetId() const{ return m_targetId; }
46 inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
47 inline void SetTargetId(const Aws::String& value) { m_targetIdHasBeenSet = true; m_targetId = value; }
48 inline void SetTargetId(Aws::String&& value) { m_targetIdHasBeenSet = true; m_targetId = std::move(value); }
49 inline void SetTargetId(const char* value) { m_targetIdHasBeenSet = true; m_targetId.assign(value); }
50 inline RemoveTargetsResultEntry& WithTargetId(const Aws::String& value) { SetTargetId(value); return *this;}
51 inline RemoveTargetsResultEntry& WithTargetId(Aws::String&& value) { SetTargetId(std::move(value)); return *this;}
52 inline RemoveTargetsResultEntry& WithTargetId(const char* value) { SetTargetId(value); return *this;}
54
56
61 inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
62 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
63 inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
64 inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
65 inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
66 inline RemoveTargetsResultEntry& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
67 inline RemoveTargetsResultEntry& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
68 inline RemoveTargetsResultEntry& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
70
72
75 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
76 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
77 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
78 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
79 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
80 inline RemoveTargetsResultEntry& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
81 inline RemoveTargetsResultEntry& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
82 inline RemoveTargetsResultEntry& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
84 private:
85
86 Aws::String m_targetId;
87 bool m_targetIdHasBeenSet = false;
88
89 Aws::String m_errorCode;
90 bool m_errorCodeHasBeenSet = false;
91
92 Aws::String m_errorMessage;
93 bool m_errorMessageHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace CloudWatchEvents
98} // namespace Aws
RemoveTargetsResultEntry & WithErrorMessage(const Aws::String &value)
bool TargetIdHasBeenSet() const
void SetErrorMessage(const char *value)
AWS_CLOUDWATCHEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetErrorCode() const
void SetTargetId(Aws::String &&value)
void SetTargetId(const Aws::String &value)
RemoveTargetsResultEntry & WithErrorMessage(Aws::String &&value)
const Aws::String & GetErrorMessage() const
RemoveTargetsResultEntry & WithErrorCode(Aws::String &&value)
RemoveTargetsResultEntry & WithTargetId(const Aws::String &value)
void SetErrorCode(const char *value)
bool ErrorCodeHasBeenSet() const
void SetErrorCode(const Aws::String &value)
RemoveTargetsResultEntry & WithTargetId(Aws::String &&value)
AWS_CLOUDWATCHEVENTS_API RemoveTargetsResultEntry(Aws::Utils::Json::JsonView jsonValue)
void SetTargetId(const char *value)
AWS_CLOUDWATCHEVENTS_API RemoveTargetsResultEntry()
AWS_CLOUDWATCHEVENTS_API RemoveTargetsResultEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
RemoveTargetsResultEntry & WithErrorCode(const char *value)
RemoveTargetsResultEntry & WithErrorMessage(const char *value)
const Aws::String & GetTargetId() const
bool ErrorMessageHasBeenSet() const
void SetErrorCode(Aws::String &&value)
RemoveTargetsResultEntry & WithTargetId(const char *value)
void SetErrorMessage(const Aws::String &value)
void SetErrorMessage(Aws::String &&value)
RemoveTargetsResultEntry & WithErrorCode(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue