AWS SDK for C++  1.9.106
AWS SDK for C++
ConflictException.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace LookoutforVision
23 {
24 namespace Model
25 {
26 
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 ResourceType& GetResourceType() const{ return m_resourceType; }
112 
116  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
117 
121  inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
122 
126  inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
127 
131  inline ConflictException& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
132 
136  inline ConflictException& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
137 
138  private:
139 
140  Aws::String m_message;
141  bool m_messageHasBeenSet;
142 
143  Aws::String m_resourceId;
144  bool m_resourceIdHasBeenSet;
145 
146  ResourceType m_resourceType;
147  bool m_resourceTypeHasBeenSet;
148  };
149 
150 } // namespace Model
151 } // namespace LookoutforVision
152 } // namespace Aws
Aws::LookoutforVision::Model::ConflictException::SetResourceId
void SetResourceId(Aws::String &&value)
Definition: ConflictException.h:85
Aws::LookoutforVision::Model::ConflictException::SetResourceId
void SetResourceId(const char *value)
Definition: ConflictException.h:90
Aws::LookoutforVision::Model::ConflictException::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::LookoutforVision::Model::ConflictException::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: ConflictException.h:46
Aws::LookoutforVision::Model::ConflictException::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: ConflictException.h:116
Aws::LookoutforVision::Model::ConflictException::WithMessage
ConflictException & WithMessage(const Aws::String &value)
Definition: ConflictException.h:58
Aws::LookoutforVision::Model::ConflictException::WithResourceType
ConflictException & WithResourceType(ResourceType &&value)
Definition: ConflictException.h:136
Aws::LookoutforVision::Model::ConflictException::SetMessage
void SetMessage(const char *value)
Definition: ConflictException.h:55
Aws::LookoutforVision::Model::ConflictException::WithResourceId
ConflictException & WithResourceId(const Aws::String &value)
Definition: ConflictException.h:95
Aws::LookoutforVision::Model::ConflictException::WithMessage
ConflictException & WithMessage(Aws::String &&value)
Definition: ConflictException.h:61
Aws::LookoutforVision::Model::ConflictException
Definition: ConflictException.h:34
ResourceType.h
Aws::LookoutforVision::Model::ConflictException::WithResourceId
ConflictException & WithResourceId(Aws::String &&value)
Definition: ConflictException.h:100
Aws::LookoutforVision::Model::ConflictException::operator=
ConflictException & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::LookoutforVision::Model::ConflictException::ConflictException
ConflictException()
Aws::LookoutforVision::Model::ConflictException::ConflictException
ConflictException(Aws::Utils::Json::JsonView jsonValue)
Aws::LookoutforVision::Model::ConflictException::GetMessage
const Aws::String & GetMessage() const
Definition: ConflictException.h:43
LookoutforVision_EXPORTS.h
Aws::LookoutforVision::Model::ResourceType
ResourceType
Definition: ResourceType.h:17
Aws::LookoutforVision::Model::ConflictException::SetMessage
void SetMessage(const Aws::String &value)
Definition: ConflictException.h:49
Aws::LookoutforVision::Model::ConflictException::WithMessage
ConflictException & WithMessage(const char *value)
Definition: ConflictException.h:64
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::LookoutforVision::Model::ConflictException::WithResourceId
ConflictException & WithResourceId(const char *value)
Definition: ConflictException.h:105
Aws::LookoutforVision::Model::ConflictException::SetResourceType
void SetResourceType(const ResourceType &value)
Definition: ConflictException.h:121
Aws::LookoutforVision::Model::ConflictException::ResourceIdHasBeenSet
bool ResourceIdHasBeenSet() const
Definition: ConflictException.h:75
Aws::LookoutforVision::Model::ConflictException::SetResourceId
void SetResourceId(const Aws::String &value)
Definition: ConflictException.h:80
Aws::LookoutforVision::Model::ConflictException::WithResourceType
ConflictException & WithResourceType(const ResourceType &value)
Definition: ConflictException.h:131
Aws::LookoutforVision::Model::ConflictException::SetMessage
void SetMessage(Aws::String &&value)
Definition: ConflictException.h:52
Aws::LookoutforVision::Model::ConflictException::GetResourceId
const Aws::String & GetResourceId() const
Definition: ConflictException.h:70
Aws::LookoutforVision::Model::ConflictException::SetResourceType
void SetResourceType(ResourceType &&value)
Definition: ConflictException.h:126
Aws
Definition: AccessManagementClient.h:15
Aws::LookoutforVision::Model::ConflictException::GetResourceType
const ResourceType & GetResourceType() const
Definition: ConflictException.h:111
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_LOOKOUTFORVISION_API
#define AWS_LOOKOUTFORVISION_API
Definition: LookoutforVision_EXPORTS.h:28