AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
ResourceInUseException.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/ResourceType.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 Connect {
21namespace Model {
22
33 public:
34 AWS_CONNECT_API ResourceInUseException() = default;
37 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
41 inline const Aws::String& GetMessage() const { return m_message; }
42 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
43 template <typename MessageT = Aws::String>
44 void SetMessage(MessageT&& value) {
45 m_messageHasBeenSet = true;
46 m_message = std::forward<MessageT>(value);
47 }
48 template <typename MessageT = Aws::String>
50 SetMessage(std::forward<MessageT>(value));
51 return *this;
52 }
54
56
59 inline ResourceType GetResourceType() const { return m_resourceType; }
60 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
61 inline void SetResourceType(ResourceType value) {
62 m_resourceTypeHasBeenSet = true;
63 m_resourceType = value;
64 }
66 SetResourceType(value);
67 return *this;
68 }
70
72
75 inline const Aws::String& GetResourceId() const { return m_resourceId; }
76 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
77 template <typename ResourceIdT = Aws::String>
78 void SetResourceId(ResourceIdT&& value) {
79 m_resourceIdHasBeenSet = true;
80 m_resourceId = std::forward<ResourceIdT>(value);
81 }
82 template <typename ResourceIdT = Aws::String>
83 ResourceInUseException& WithResourceId(ResourceIdT&& value) {
84 SetResourceId(std::forward<ResourceIdT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_message;
90
91 ResourceType m_resourceType{ResourceType::NOT_SET};
92
93 Aws::String m_resourceId;
94 bool m_messageHasBeenSet = false;
95 bool m_resourceTypeHasBeenSet = false;
96 bool m_resourceIdHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace Connect
101} // namespace Aws
ResourceInUseException & WithResourceId(ResourceIdT &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceInUseException & WithResourceType(ResourceType value)
AWS_CONNECT_API ResourceInUseException(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API ResourceInUseException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API ResourceInUseException()=default
ResourceInUseException & WithMessage(MessageT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue