AWS SDK for C++

AWS SDK for C++ Version 1.11.853

Loading...
Searching...
No Matches
BatchDeleteError.h
1
6#pragma once
7#include <aws/application-signals/ApplicationSignals_EXPORTS.h>
8#include <aws/application-signals/model/BatchDeleteErrorCode.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ApplicationSignals {
21namespace Model {
22
30 public:
31 AWS_APPLICATIONSIGNALS_API BatchDeleteError() = default;
32 AWS_APPLICATIONSIGNALS_API BatchDeleteError(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPLICATIONSIGNALS_API BatchDeleteError& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
41 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
42 template <typename ResourceArnT = Aws::String>
43 void SetResourceArn(ResourceArnT&& value) {
44 m_resourceArnHasBeenSet = true;
45 m_resourceArn = std::forward<ResourceArnT>(value);
46 }
47 template <typename ResourceArnT = Aws::String>
48 BatchDeleteError& WithResourceArn(ResourceArnT&& value) {
49 SetResourceArn(std::forward<ResourceArnT>(value));
50 return *this;
51 }
53
55
58 inline BatchDeleteErrorCode GetCode() const { return m_code; }
59 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
60 inline void SetCode(BatchDeleteErrorCode value) {
61 m_codeHasBeenSet = true;
62 m_code = value;
63 }
65 SetCode(value);
66 return *this;
67 }
69
71
74 inline const Aws::String& GetMessage() const { return m_message; }
75 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
76 template <typename MessageT = Aws::String>
77 void SetMessage(MessageT&& value) {
78 m_messageHasBeenSet = true;
79 m_message = std::forward<MessageT>(value);
80 }
81 template <typename MessageT = Aws::String>
82 BatchDeleteError& WithMessage(MessageT&& value) {
83 SetMessage(std::forward<MessageT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_resourceArn;
89
91
92 Aws::String m_message;
93 bool m_resourceArnHasBeenSet = false;
94 bool m_codeHasBeenSet = false;
95 bool m_messageHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace ApplicationSignals
100} // namespace Aws
BatchDeleteError & WithCode(BatchDeleteErrorCode value)
BatchDeleteError & WithMessage(MessageT &&value)
BatchDeleteError & WithResourceArn(ResourceArnT &&value)
AWS_APPLICATIONSIGNALS_API BatchDeleteError(Aws::Utils::Json::JsonView jsonValue)
AWS_APPLICATIONSIGNALS_API BatchDeleteError()=default
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPLICATIONSIGNALS_API BatchDeleteError & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue