AWS SDK for C++  1.9.158
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 WellArchitected
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
40 
41  inline const Aws::String& GetMessage() const{ return m_message; }
42 
43 
44  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
45 
46 
47  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
48 
49 
50  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
51 
52 
53  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
54 
55 
56  inline ConflictException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
57 
58 
59  inline ConflictException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
60 
61 
62  inline ConflictException& WithMessage(const char* value) { SetMessage(value); return *this;}
63 
64 
65 
66  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
67 
68 
69  inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
70 
71 
72  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
73 
74 
75  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
76 
77 
78  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
79 
80 
81  inline ConflictException& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
82 
83 
84  inline ConflictException& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
85 
86 
87  inline ConflictException& WithResourceId(const char* value) { SetResourceId(value); return *this;}
88 
89 
90 
91  inline const Aws::String& GetResourceType() const{ return m_resourceType; }
92 
93 
94  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
95 
96 
97  inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
98 
99 
100  inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
101 
102 
103  inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
104 
105 
106  inline ConflictException& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
107 
108 
109  inline ConflictException& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
110 
111 
112  inline ConflictException& WithResourceType(const char* value) { SetResourceType(value); return *this;}
113 
114  private:
115 
116  Aws::String m_message;
117  bool m_messageHasBeenSet;
118 
119  Aws::String m_resourceId;
120  bool m_resourceIdHasBeenSet;
121 
122  Aws::String m_resourceType;
123  bool m_resourceTypeHasBeenSet;
124  };
125 
126 } // namespace Model
127 } // namespace WellArchitected
128 } // namespace Aws
Aws::WellArchitected::Model::ConflictException::WithResourceId
ConflictException & WithResourceId(const char *value)
Definition: ConflictException.h:87
Aws::WellArchitected::Model::ConflictException::ConflictException
ConflictException()
WellArchitected_EXPORTS.h
Aws::WellArchitected::Model::ConflictException::WithMessage
ConflictException & WithMessage(Aws::String &&value)
Definition: ConflictException.h:59
Aws::WellArchitected::Model::ConflictException::GetMessage
const Aws::String & GetMessage() const
Definition: ConflictException.h:41
Aws::WellArchitected::Model::ConflictException::WithResourceId
ConflictException & WithResourceId(Aws::String &&value)
Definition: ConflictException.h:84
Aws::WellArchitected::Model::ConflictException::SetResourceType
void SetResourceType(Aws::String &&value)
Definition: ConflictException.h:100
Aws::WellArchitected::Model::ConflictException::SetMessage
void SetMessage(const Aws::String &value)
Definition: ConflictException.h:47
Aws::WellArchitected::Model::ConflictException::SetMessage
void SetMessage(Aws::String &&value)
Definition: ConflictException.h:50
Aws::WellArchitected::Model::ConflictException::SetResourceType
void SetResourceType(const Aws::String &value)
Definition: ConflictException.h:97
Aws::WellArchitected::Model::ConflictException
Definition: ConflictException.h:32
Aws::WellArchitected::Model::ConflictException::ResourceIdHasBeenSet
bool ResourceIdHasBeenSet() const
Definition: ConflictException.h:69
Aws::WellArchitected::Model::ConflictException::SetResourceId
void SetResourceId(const char *value)
Definition: ConflictException.h:78
Aws::WellArchitected::Model::ConflictException::GetResourceId
const Aws::String & GetResourceId() const
Definition: ConflictException.h:66
Aws::WellArchitected::Model::ConflictException::GetResourceType
const Aws::String & GetResourceType() const
Definition: ConflictException.h:91
Aws::WellArchitected::Model::ConflictException::SetMessage
void SetMessage(const char *value)
Definition: ConflictException.h:53
Aws::WellArchitected::Model::ConflictException::WithMessage
ConflictException & WithMessage(const Aws::String &value)
Definition: ConflictException.h:56
Aws::WellArchitected::Model::ConflictException::SetResourceType
void SetResourceType(const char *value)
Definition: ConflictException.h:103
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
AWS_WELLARCHITECTED_API
#define AWS_WELLARCHITECTED_API
Definition: WellArchitected_EXPORTS.h:28
Aws::WellArchitected::Model::ConflictException::SetResourceId
void SetResourceId(const Aws::String &value)
Definition: ConflictException.h:72
Aws::WellArchitected::Model::ConflictException::WithResourceType
ConflictException & WithResourceType(const Aws::String &value)
Definition: ConflictException.h:106
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::WellArchitected::Model::ConflictException::SetResourceId
void SetResourceId(Aws::String &&value)
Definition: ConflictException.h:75
Aws
Definition: AccessManagementClient.h:15
Aws::WellArchitected::Model::ConflictException::WithResourceId
ConflictException & WithResourceId(const Aws::String &value)
Definition: ConflictException.h:81
Aws::WellArchitected::Model::ConflictException::WithResourceType
ConflictException & WithResourceType(const char *value)
Definition: ConflictException.h:112
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WellArchitected::Model::ConflictException::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WellArchitected::Model::ConflictException::WithMessage
ConflictException & WithMessage(const char *value)
Definition: ConflictException.h:62
Aws::WellArchitected::Model::ConflictException::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: ConflictException.h:44
Aws::WellArchitected::Model::ConflictException::WithResourceType
ConflictException & WithResourceType(Aws::String &&value)
Definition: ConflictException.h:109
Aws::WellArchitected::Model::ConflictException::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: ConflictException.h:94
Aws::WellArchitected::Model::ConflictException::ConflictException
ConflictException(Aws::Utils::Json::JsonView jsonValue)
Aws::WellArchitected::Model::ConflictException::operator=
ConflictException & operator=(Aws::Utils::Json::JsonView jsonValue)