AWS SDK for C++  1.9.109
AWS SDK for C++
InvalidResourceException.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 Snowball
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 InvalidResourceException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
58 
59 
60  inline InvalidResourceException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
61 
62 
63  inline InvalidResourceException& WithMessage(const char* value) { SetMessage(value); return *this;}
64 
65 
69  inline const Aws::String& GetResourceType() const{ return m_resourceType; }
70 
74  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
75 
79  inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
80 
84  inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
85 
89  inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
90 
94  inline InvalidResourceException& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
95 
99  inline InvalidResourceException& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
100 
104  inline InvalidResourceException& WithResourceType(const char* value) { SetResourceType(value); return *this;}
105 
106  private:
107 
108  Aws::String m_message;
109  bool m_messageHasBeenSet;
110 
111  Aws::String m_resourceType;
112  bool m_resourceTypeHasBeenSet;
113  };
114 
115 } // namespace Model
116 } // namespace Snowball
117 } // namespace Aws
Aws::Snowball::Model::InvalidResourceException::SetMessage
void SetMessage(const Aws::String &value)
Definition: InvalidResourceException.h:48
Aws::Snowball::Model::InvalidResourceException::SetResourceType
void SetResourceType(const char *value)
Definition: InvalidResourceException.h:89
Aws::Snowball::Model::InvalidResourceException::SetMessage
void SetMessage(Aws::String &&value)
Definition: InvalidResourceException.h:51
Aws::Snowball::Model::InvalidResourceException::SetResourceType
void SetResourceType(Aws::String &&value)
Definition: InvalidResourceException.h:84
Aws::Snowball::Model::InvalidResourceException::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: InvalidResourceException.h:45
Aws::Snowball::Model::InvalidResourceException::WithMessage
InvalidResourceException & WithMessage(Aws::String &&value)
Definition: InvalidResourceException.h:60
AWS_SNOWBALL_API
#define AWS_SNOWBALL_API
Definition: Snowball_EXPORTS.h:28
Aws::Snowball::Model::InvalidResourceException::WithMessage
InvalidResourceException & WithMessage(const Aws::String &value)
Definition: InvalidResourceException.h:57
Aws::Snowball::Model::InvalidResourceException::GetMessage
const Aws::String & GetMessage() const
Definition: InvalidResourceException.h:42
Aws::Snowball::Model::InvalidResourceException::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Snowball::Model::InvalidResourceException::operator=
InvalidResourceException & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Snowball::Model::InvalidResourceException::SetMessage
void SetMessage(const char *value)
Definition: InvalidResourceException.h:54
Aws::Snowball::Model::InvalidResourceException
Definition: InvalidResourceException.h:33
Aws::Snowball::Model::InvalidResourceException::WithResourceType
InvalidResourceException & WithResourceType(Aws::String &&value)
Definition: InvalidResourceException.h:99
Aws::Snowball::Model::InvalidResourceException::WithMessage
InvalidResourceException & WithMessage(const char *value)
Definition: InvalidResourceException.h:63
Aws
Definition: AccessManagementClient.h:15
Aws::Snowball::Model::InvalidResourceException::WithResourceType
InvalidResourceException & WithResourceType(const Aws::String &value)
Definition: InvalidResourceException.h:94
Aws::Snowball::Model::InvalidResourceException::InvalidResourceException
InvalidResourceException()
Aws::Snowball::Model::InvalidResourceException::InvalidResourceException
InvalidResourceException(Aws::Utils::Json::JsonView jsonValue)
Aws::Snowball::Model::InvalidResourceException::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: InvalidResourceException.h:74
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Snowball::Model::InvalidResourceException::SetResourceType
void SetResourceType(const Aws::String &value)
Definition: InvalidResourceException.h:79
Aws::Snowball::Model::InvalidResourceException::GetResourceType
const Aws::String & GetResourceType() const
Definition: InvalidResourceException.h:69
Aws::Snowball::Model::InvalidResourceException::WithResourceType
InvalidResourceException & WithResourceType(const char *value)
Definition: InvalidResourceException.h:104
Snowball_EXPORTS.h