1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/events/CloudWatchEvents_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSString.h> 9 #include <utility> 10 11 namespace Aws 12 { 13 namespace Utils 14 { 15 namespace Json 16 { 17 class JsonValue; 18 class JsonView; 19 } // namespace Json 20 } // namespace Utils 21 namespace CloudWatchEvents 22 { 23 namespace Model 24 { 25 26 /** 27 * <p>Represents a target that failed to be removed from a rule.</p><p><h3>See 28 * Also:</h3> <a 29 * href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemoveTargetsResultEntry">AWS 30 * API Reference</a></p> 31 */ 32 class AWS_CLOUDWATCHEVENTS_API RemoveTargetsResultEntry 33 { 34 public: 35 RemoveTargetsResultEntry(); 36 RemoveTargetsResultEntry(Aws::Utils::Json::JsonView jsonValue); 37 RemoveTargetsResultEntry& operator=(Aws::Utils::Json::JsonView jsonValue); 38 Aws::Utils::Json::JsonValue Jsonize() const; 39 40 41 /** 42 * <p>The ID of the target.</p> 43 */ GetTargetId()44 inline const Aws::String& GetTargetId() const{ return m_targetId; } 45 46 /** 47 * <p>The ID of the target.</p> 48 */ TargetIdHasBeenSet()49 inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; } 50 51 /** 52 * <p>The ID of the target.</p> 53 */ SetTargetId(const Aws::String & value)54 inline void SetTargetId(const Aws::String& value) { m_targetIdHasBeenSet = true; m_targetId = value; } 55 56 /** 57 * <p>The ID of the target.</p> 58 */ SetTargetId(Aws::String && value)59 inline void SetTargetId(Aws::String&& value) { m_targetIdHasBeenSet = true; m_targetId = std::move(value); } 60 61 /** 62 * <p>The ID of the target.</p> 63 */ SetTargetId(const char * value)64 inline void SetTargetId(const char* value) { m_targetIdHasBeenSet = true; m_targetId.assign(value); } 65 66 /** 67 * <p>The ID of the target.</p> 68 */ WithTargetId(const Aws::String & value)69 inline RemoveTargetsResultEntry& WithTargetId(const Aws::String& value) { SetTargetId(value); return *this;} 70 71 /** 72 * <p>The ID of the target.</p> 73 */ WithTargetId(Aws::String && value)74 inline RemoveTargetsResultEntry& WithTargetId(Aws::String&& value) { SetTargetId(std::move(value)); return *this;} 75 76 /** 77 * <p>The ID of the target.</p> 78 */ WithTargetId(const char * value)79 inline RemoveTargetsResultEntry& WithTargetId(const char* value) { SetTargetId(value); return *this;} 80 81 82 /** 83 * <p>The error code that indicates why the target removal failed. If the value is 84 * <code>ConcurrentModificationException</code>, too many requests were made at the 85 * same time.</p> 86 */ GetErrorCode()87 inline const Aws::String& GetErrorCode() const{ return m_errorCode; } 88 89 /** 90 * <p>The error code that indicates why the target removal failed. If the value is 91 * <code>ConcurrentModificationException</code>, too many requests were made at the 92 * same time.</p> 93 */ ErrorCodeHasBeenSet()94 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; } 95 96 /** 97 * <p>The error code that indicates why the target removal failed. If the value is 98 * <code>ConcurrentModificationException</code>, too many requests were made at the 99 * same time.</p> 100 */ SetErrorCode(const Aws::String & value)101 inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; } 102 103 /** 104 * <p>The error code that indicates why the target removal failed. If the value is 105 * <code>ConcurrentModificationException</code>, too many requests were made at the 106 * same time.</p> 107 */ SetErrorCode(Aws::String && value)108 inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); } 109 110 /** 111 * <p>The error code that indicates why the target removal failed. If the value is 112 * <code>ConcurrentModificationException</code>, too many requests were made at the 113 * same time.</p> 114 */ SetErrorCode(const char * value)115 inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); } 116 117 /** 118 * <p>The error code that indicates why the target removal failed. If the value is 119 * <code>ConcurrentModificationException</code>, too many requests were made at the 120 * same time.</p> 121 */ WithErrorCode(const Aws::String & value)122 inline RemoveTargetsResultEntry& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;} 123 124 /** 125 * <p>The error code that indicates why the target removal failed. If the value is 126 * <code>ConcurrentModificationException</code>, too many requests were made at the 127 * same time.</p> 128 */ WithErrorCode(Aws::String && value)129 inline RemoveTargetsResultEntry& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;} 130 131 /** 132 * <p>The error code that indicates why the target removal failed. If the value is 133 * <code>ConcurrentModificationException</code>, too many requests were made at the 134 * same time.</p> 135 */ WithErrorCode(const char * value)136 inline RemoveTargetsResultEntry& WithErrorCode(const char* value) { SetErrorCode(value); return *this;} 137 138 139 /** 140 * <p>The error message that explains why the target removal failed.</p> 141 */ GetErrorMessage()142 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } 143 144 /** 145 * <p>The error message that explains why the target removal failed.</p> 146 */ ErrorMessageHasBeenSet()147 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } 148 149 /** 150 * <p>The error message that explains why the target removal failed.</p> 151 */ SetErrorMessage(const Aws::String & value)152 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } 153 154 /** 155 * <p>The error message that explains why the target removal failed.</p> 156 */ SetErrorMessage(Aws::String && value)157 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } 158 159 /** 160 * <p>The error message that explains why the target removal failed.</p> 161 */ SetErrorMessage(const char * value)162 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } 163 164 /** 165 * <p>The error message that explains why the target removal failed.</p> 166 */ WithErrorMessage(const Aws::String & value)167 inline RemoveTargetsResultEntry& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} 168 169 /** 170 * <p>The error message that explains why the target removal failed.</p> 171 */ WithErrorMessage(Aws::String && value)172 inline RemoveTargetsResultEntry& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} 173 174 /** 175 * <p>The error message that explains why the target removal failed.</p> 176 */ WithErrorMessage(const char * value)177 inline RemoveTargetsResultEntry& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} 178 179 private: 180 181 Aws::String m_targetId; 182 bool m_targetIdHasBeenSet; 183 184 Aws::String m_errorCode; 185 bool m_errorCodeHasBeenSet; 186 187 Aws::String m_errorMessage; 188 bool m_errorMessageHasBeenSet; 189 }; 190 191 } // namespace Model 192 } // namespace CloudWatchEvents 193 } // namespace Aws 194