AWS SDK for C++  1.9.123
AWS SDK for C++
ConflictException.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 GreengrassV2
22 {
23 namespace Model
24 {
25 
34  {
35  public:
40 
41 
42 
43  inline const Aws::String& GetMessage() const{ return m_message; }
44 
45 
46  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
47 
48 
49  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
50 
51 
52  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
53 
54 
55  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
56 
57 
58  inline ConflictException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
59 
60 
61  inline ConflictException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
62 
63 
64  inline ConflictException& WithMessage(const char* value) { SetMessage(value); return *this;}
65 
66 
70  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
71 
75  inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
76 
80  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
81 
85  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
86 
90  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
91 
95  inline ConflictException& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
96 
100  inline ConflictException& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
101 
105  inline ConflictException& WithResourceId(const char* value) { SetResourceId(value); return *this;}
106 
107 
111  inline const Aws::String& GetResourceType() const{ return m_resourceType; }
112 
116  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
117 
121  inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
122 
126  inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
127 
131  inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
132 
136  inline ConflictException& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
137 
141  inline ConflictException& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
142 
146  inline ConflictException& WithResourceType(const char* value) { SetResourceType(value); return *this;}
147 
148  private:
149 
150  Aws::String m_message;
151  bool m_messageHasBeenSet;
152 
153  Aws::String m_resourceId;
154  bool m_resourceIdHasBeenSet;
155 
156  Aws::String m_resourceType;
157  bool m_resourceTypeHasBeenSet;
158  };
159 
160 } // namespace Model
161 } // namespace GreengrassV2
162 } // namespace Aws
Aws::GreengrassV2::Model::ConflictException::GetResourceType
const Aws::String & GetResourceType() const
Definition: ConflictException.h:111
Aws::GreengrassV2::Model::ConflictException
Definition: ConflictException.h:34
Aws::GreengrassV2::Model::ConflictException::GetMessage
const Aws::String & GetMessage() const
Definition: ConflictException.h:43
Aws::GreengrassV2::Model::ConflictException::GetResourceId
const Aws::String & GetResourceId() const
Definition: ConflictException.h:70
Aws::GreengrassV2::Model::ConflictException::WithResourceType
ConflictException & WithResourceType(const char *value)
Definition: ConflictException.h:146
Aws::GreengrassV2::Model::ConflictException::WithResourceType
ConflictException & WithResourceType(Aws::String &&value)
Definition: ConflictException.h:141
Aws::GreengrassV2::Model::ConflictException::ConflictException
ConflictException()
Aws::GreengrassV2::Model::ConflictException::SetMessage
void SetMessage(Aws::String &&value)
Definition: ConflictException.h:52
Aws::GreengrassV2::Model::ConflictException::WithResourceId
ConflictException & WithResourceId(const Aws::String &value)
Definition: ConflictException.h:95
GreengrassV2_EXPORTS.h
Aws::GreengrassV2::Model::ConflictException::WithResourceId
ConflictException & WithResourceId(const char *value)
Definition: ConflictException.h:105
Aws::GreengrassV2::Model::ConflictException::SetResourceType
void SetResourceType(const Aws::String &value)
Definition: ConflictException.h:121
Aws::GreengrassV2::Model::ConflictException::SetResourceType
void SetResourceType(Aws::String &&value)
Definition: ConflictException.h:126
AWS_GREENGRASSV2_API
#define AWS_GREENGRASSV2_API
Definition: GreengrassV2_EXPORTS.h:28
Aws::GreengrassV2::Model::ConflictException::WithMessage
ConflictException & WithMessage(const char *value)
Definition: ConflictException.h:64
Aws::GreengrassV2::Model::ConflictException::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GreengrassV2::Model::ConflictException::SetMessage
void SetMessage(const Aws::String &value)
Definition: ConflictException.h:49
Aws::GreengrassV2::Model::ConflictException::SetResourceType
void SetResourceType(const char *value)
Definition: ConflictException.h:131
Aws::GreengrassV2::Model::ConflictException::WithResourceId
ConflictException & WithResourceId(Aws::String &&value)
Definition: ConflictException.h:100
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::GreengrassV2::Model::ConflictException::WithResourceType
ConflictException & WithResourceType(const Aws::String &value)
Definition: ConflictException.h:136
AWSString.h
Aws::GreengrassV2::Model::ConflictException::ResourceIdHasBeenSet
bool ResourceIdHasBeenSet() const
Definition: ConflictException.h:75
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GreengrassV2::Model::ConflictException::WithMessage
ConflictException & WithMessage(Aws::String &&value)
Definition: ConflictException.h:61
Aws::GreengrassV2::Model::ConflictException::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: ConflictException.h:46
Aws::GreengrassV2::Model::ConflictException::WithMessage
ConflictException & WithMessage(const Aws::String &value)
Definition: ConflictException.h:58
Aws::GreengrassV2::Model::ConflictException::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: ConflictException.h:116
Aws::GreengrassV2::Model::ConflictException::SetResourceId
void SetResourceId(const char *value)
Definition: ConflictException.h:90
Aws::GreengrassV2::Model::ConflictException::operator=
ConflictException & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::GreengrassV2::Model::ConflictException::SetResourceId
void SetResourceId(Aws::String &&value)
Definition: ConflictException.h:85
Aws::GreengrassV2::Model::ConflictException::SetMessage
void SetMessage(const char *value)
Definition: ConflictException.h:55
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GreengrassV2::Model::ConflictException::SetResourceId
void SetResourceId(const Aws::String &value)
Definition: ConflictException.h:80
Aws::GreengrassV2::Model::ConflictException::ConflictException
ConflictException(Aws::Utils::Json::JsonView jsonValue)