AWS SDK for C++  1.9.158
AWS SDK for C++
ResourceInUseException.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 Connect
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 ResourceInUseException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
59 
60 
61  inline ResourceInUseException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
62 
63 
64  inline ResourceInUseException& WithMessage(const char* value) { SetMessage(value); return *this;}
65 
66 
70  inline const ResourceType& GetResourceType() const{ return m_resourceType; }
71 
75  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
76 
80  inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
81 
85  inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
86 
90  inline ResourceInUseException& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
91 
95  inline ResourceInUseException& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
96 
97 
101  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
102 
106  inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
107 
111  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
112 
116  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
117 
121  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
122 
126  inline ResourceInUseException& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
127 
131  inline ResourceInUseException& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
132 
136  inline ResourceInUseException& WithResourceId(const char* value) { SetResourceId(value); return *this;}
137 
138  private:
139 
140  Aws::String m_message;
141  bool m_messageHasBeenSet;
142 
143  ResourceType m_resourceType;
144  bool m_resourceTypeHasBeenSet;
145 
146  Aws::String m_resourceId;
147  bool m_resourceIdHasBeenSet;
148  };
149 
150 } // namespace Model
151 } // namespace Connect
152 } // namespace Aws
Aws::Connect::Model::ResourceInUseException::GetResourceType
const ResourceType & GetResourceType() const
Definition: ResourceInUseException.h:70
Aws::Connect::Model::ResourceInUseException::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: ResourceInUseException.h:75
Aws::Connect::Model::ResourceInUseException::WithMessage
ResourceInUseException & WithMessage(Aws::String &&value)
Definition: ResourceInUseException.h:61
Aws::Connect::Model::ResourceInUseException::SetResourceId
void SetResourceId(Aws::String &&value)
Definition: ResourceInUseException.h:116
Aws::Connect::Model::ResourceInUseException::WithResourceType
ResourceInUseException & WithResourceType(ResourceType &&value)
Definition: ResourceInUseException.h:95
Aws::Connect::Model::ResourceInUseException::SetMessage
void SetMessage(const char *value)
Definition: ResourceInUseException.h:55
Aws::Connect::Model::ResourceInUseException::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: ResourceInUseException.h:46
Aws::Connect::Model::ResourceInUseException::WithResourceId
ResourceInUseException & WithResourceId(Aws::String &&value)
Definition: ResourceInUseException.h:131
Aws::Connect::Model::ResourceInUseException::WithResourceId
ResourceInUseException & WithResourceId(const char *value)
Definition: ResourceInUseException.h:136
Aws::Connect::Model::ResourceInUseException::WithMessage
ResourceInUseException & WithMessage(const char *value)
Definition: ResourceInUseException.h:64
Aws::Connect::Model::ResourceInUseException::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Connect::Model::ResourceInUseException::SetResourceType
void SetResourceType(ResourceType &&value)
Definition: ResourceInUseException.h:85
Aws::Connect::Model::ResourceInUseException::ResourceIdHasBeenSet
bool ResourceIdHasBeenSet() const
Definition: ResourceInUseException.h:106
Aws::Connect::Model::ResourceInUseException::SetResourceId
void SetResourceId(const char *value)
Definition: ResourceInUseException.h:121
Aws::Connect::Model::ResourceInUseException::GetMessage
const Aws::String & GetMessage() const
Definition: ResourceInUseException.h:43
Aws::Connect::Model::ResourceInUseException::ResourceInUseException
ResourceInUseException()
Aws::Connect::Model::ResourceInUseException::SetResourceId
void SetResourceId(const Aws::String &value)
Definition: ResourceInUseException.h:111
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Connect::Model::ResourceInUseException::operator=
ResourceInUseException & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Connect::Model::ResourceInUseException::WithMessage
ResourceInUseException & WithMessage(const Aws::String &value)
Definition: ResourceInUseException.h:58
Aws::Connect::Model::ResourceInUseException::SetResourceType
void SetResourceType(const ResourceType &value)
Definition: ResourceInUseException.h:80
ResourceType.h
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Connect::Model::ResourceInUseException::WithResourceType
ResourceInUseException & WithResourceType(const ResourceType &value)
Definition: ResourceInUseException.h:90
Aws::Connect::Model::ResourceInUseException::WithResourceId
ResourceInUseException & WithResourceId(const Aws::String &value)
Definition: ResourceInUseException.h:126
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Connect::Model::ResourceInUseException::ResourceInUseException
ResourceInUseException(Aws::Utils::Json::JsonView jsonValue)
Aws::Connect::Model::ResourceType
ResourceType
Definition: ResourceType.h:17
Aws::Connect::Model::ResourceInUseException::GetResourceId
const Aws::String & GetResourceId() const
Definition: ResourceInUseException.h:101
AWS_CONNECT_API
#define AWS_CONNECT_API
Definition: Connect_EXPORTS.h:28
Aws::Connect::Model::ResourceInUseException
Definition: ResourceInUseException.h:34
Connect_EXPORTS.h
Aws::Connect::Model::ResourceInUseException::SetMessage
void SetMessage(Aws::String &&value)
Definition: ResourceInUseException.h:52
Aws::Connect::Model::ResourceInUseException::SetMessage
void SetMessage(const Aws::String &value)
Definition: ResourceInUseException.h:49