AWS SDK for C++  1.9.108
AWS SDK for C++
ResourceConflictException.h
Go to the documentation of this file.
1 
6 #pragma once
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 SecurityHub
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
41 
42  inline const Aws::String& GetMessage() const{ return m_message; }
43 
44 
45  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
46 
47 
48  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
49 
50 
51  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
52 
53 
54  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
55 
56 
57  inline ResourceConflictException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
58 
59 
60  inline ResourceConflictException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
61 
62 
63  inline ResourceConflictException& WithMessage(const char* value) { SetMessage(value); return *this;}
64 
65 
66 
67  inline const Aws::String& GetCode() const{ return m_code; }
68 
69 
70  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
71 
72 
73  inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
74 
75 
76  inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
77 
78 
79  inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
80 
81 
82  inline ResourceConflictException& WithCode(const Aws::String& value) { SetCode(value); return *this;}
83 
84 
85  inline ResourceConflictException& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
86 
87 
88  inline ResourceConflictException& WithCode(const char* value) { SetCode(value); return *this;}
89 
90  private:
91 
92  Aws::String m_message;
93  bool m_messageHasBeenSet;
94 
95  Aws::String m_code;
96  bool m_codeHasBeenSet;
97  };
98 
99 } // namespace Model
100 } // namespace SecurityHub
101 } // namespace Aws
Aws::SecurityHub::Model::ResourceConflictException::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SecurityHub::Model::ResourceConflictException::SetMessage
void SetMessage(Aws::String &&value)
Definition: ResourceConflictException.h:51
Aws::SecurityHub::Model::ResourceConflictException::SetCode
void SetCode(const char *value)
Definition: ResourceConflictException.h:79
Aws::SecurityHub::Model::ResourceConflictException::SetMessage
void SetMessage(const Aws::String &value)
Definition: ResourceConflictException.h:48
Aws::SecurityHub::Model::ResourceConflictException::operator=
ResourceConflictException & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SecurityHub::Model::ResourceConflictException::WithMessage
ResourceConflictException & WithMessage(const char *value)
Definition: ResourceConflictException.h:63
Aws::SecurityHub::Model::ResourceConflictException::ResourceConflictException
ResourceConflictException()
Aws::SecurityHub::Model::ResourceConflictException::WithMessage
ResourceConflictException & WithMessage(Aws::String &&value)
Definition: ResourceConflictException.h:60
Aws::SecurityHub::Model::ResourceConflictException::ResourceConflictException
ResourceConflictException(Aws::Utils::Json::JsonView jsonValue)
Aws::SecurityHub::Model::ResourceConflictException::GetMessage
const Aws::String & GetMessage() const
Definition: ResourceConflictException.h:42
AWS_SECURITYHUB_API
#define AWS_SECURITYHUB_API
Definition: SecurityHub_EXPORTS.h:28
Aws::SecurityHub::Model::ResourceConflictException::SetMessage
void SetMessage(const char *value)
Definition: ResourceConflictException.h:54
Aws::SecurityHub::Model::ResourceConflictException::WithCode
ResourceConflictException & WithCode(const char *value)
Definition: ResourceConflictException.h:88
Aws::SecurityHub::Model::ResourceConflictException::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: ResourceConflictException.h:45
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SecurityHub::Model::ResourceConflictException::WithCode
ResourceConflictException & WithCode(const Aws::String &value)
Definition: ResourceConflictException.h:82
Aws::SecurityHub::Model::ResourceConflictException::WithMessage
ResourceConflictException & WithMessage(const Aws::String &value)
Definition: ResourceConflictException.h:57
Aws::SecurityHub::Model::ResourceConflictException::WithCode
ResourceConflictException & WithCode(Aws::String &&value)
Definition: ResourceConflictException.h:85
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SecurityHub::Model::ResourceConflictException::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: ResourceConflictException.h:70
Aws::SecurityHub::Model::ResourceConflictException
Definition: ResourceConflictException.h:33
Aws::SecurityHub::Model::ResourceConflictException::GetCode
const Aws::String & GetCode() const
Definition: ResourceConflictException.h:67
SecurityHub_EXPORTS.h
Aws::SecurityHub::Model::ResourceConflictException::SetCode
void SetCode(const Aws::String &value)
Definition: ResourceConflictException.h:73
Aws::SecurityHub::Model::ResourceConflictException::SetCode
void SetCode(Aws::String &&value)
Definition: ResourceConflictException.h:76