AWS SDK for C++  1.9.109
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 Snowball
22 {
23 namespace Model
24 {
25 
34  {
35  public:
40 
41 
42 
43  inline const Aws::String& GetConflictResource() const{ return m_conflictResource; }
44 
45 
46  inline bool ConflictResourceHasBeenSet() const { return m_conflictResourceHasBeenSet; }
47 
48 
49  inline void SetConflictResource(const Aws::String& value) { m_conflictResourceHasBeenSet = true; m_conflictResource = value; }
50 
51 
52  inline void SetConflictResource(Aws::String&& value) { m_conflictResourceHasBeenSet = true; m_conflictResource = std::move(value); }
53 
54 
55  inline void SetConflictResource(const char* value) { m_conflictResourceHasBeenSet = true; m_conflictResource.assign(value); }
56 
57 
58  inline ConflictException& WithConflictResource(const Aws::String& value) { SetConflictResource(value); return *this;}
59 
60 
61  inline ConflictException& WithConflictResource(Aws::String&& value) { SetConflictResource(std::move(value)); return *this;}
62 
63 
64  inline ConflictException& WithConflictResource(const char* value) { SetConflictResource(value); return *this;}
65 
66 
67 
68  inline const Aws::String& GetMessage() const{ return m_message; }
69 
70 
71  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
72 
73 
74  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
75 
76 
77  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
78 
79 
80  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
81 
82 
83  inline ConflictException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
84 
85 
86  inline ConflictException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
87 
88 
89  inline ConflictException& WithMessage(const char* value) { SetMessage(value); return *this;}
90 
91  private:
92 
93  Aws::String m_conflictResource;
94  bool m_conflictResourceHasBeenSet;
95 
96  Aws::String m_message;
97  bool m_messageHasBeenSet;
98  };
99 
100 } // namespace Model
101 } // namespace Snowball
102 } // namespace Aws
Aws::Snowball::Model::ConflictException::WithMessage
ConflictException & WithMessage(const char *value)
Definition: ConflictException.h:89
Aws::Snowball::Model::ConflictException
Definition: ConflictException.h:34
Aws::Snowball::Model::ConflictException::SetConflictResource
void SetConflictResource(const Aws::String &value)
Definition: ConflictException.h:49
Aws::Snowball::Model::ConflictException::ConflictException
ConflictException(Aws::Utils::Json::JsonView jsonValue)
Aws::Snowball::Model::ConflictException::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Snowball::Model::ConflictException::WithConflictResource
ConflictException & WithConflictResource(const Aws::String &value)
Definition: ConflictException.h:58
Aws::Snowball::Model::ConflictException::ConflictResourceHasBeenSet
bool ConflictResourceHasBeenSet() const
Definition: ConflictException.h:46
AWS_SNOWBALL_API
#define AWS_SNOWBALL_API
Definition: Snowball_EXPORTS.h:28
Aws::Snowball::Model::ConflictException::GetConflictResource
const Aws::String & GetConflictResource() const
Definition: ConflictException.h:43
Aws::Snowball::Model::ConflictException::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: ConflictException.h:71
Aws::Snowball::Model::ConflictException::operator=
ConflictException & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Snowball::Model::ConflictException::WithConflictResource
ConflictException & WithConflictResource(Aws::String &&value)
Definition: ConflictException.h:61
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Snowball::Model::ConflictException::WithMessage
ConflictException & WithMessage(Aws::String &&value)
Definition: ConflictException.h:86
Aws::Snowball::Model::ConflictException::GetMessage
const Aws::String & GetMessage() const
Definition: ConflictException.h:68
Aws::Snowball::Model::ConflictException::WithMessage
ConflictException & WithMessage(const Aws::String &value)
Definition: ConflictException.h:83
Aws
Definition: AccessManagementClient.h:15
Aws::Snowball::Model::ConflictException::ConflictException
ConflictException()
Aws::Snowball::Model::ConflictException::SetConflictResource
void SetConflictResource(Aws::String &&value)
Definition: ConflictException.h:52
Aws::Snowball::Model::ConflictException::SetMessage
void SetMessage(const char *value)
Definition: ConflictException.h:80
Aws::Snowball::Model::ConflictException::WithConflictResource
ConflictException & WithConflictResource(const char *value)
Definition: ConflictException.h:64
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Snowball::Model::ConflictException::SetConflictResource
void SetConflictResource(const char *value)
Definition: ConflictException.h:55
Aws::Snowball::Model::ConflictException::SetMessage
void SetMessage(Aws::String &&value)
Definition: ConflictException.h:77
Snowball_EXPORTS.h
Aws::Snowball::Model::ConflictException::SetMessage
void SetMessage(const Aws::String &value)
Definition: ConflictException.h:74