AWS SDK for C++  1.9.155
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 AccessAnalyzer
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 
68  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
69 
73  inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
74 
78  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
79 
83  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
84 
88  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
89 
93  inline ConflictException& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
94 
98  inline ConflictException& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
99 
103  inline ConflictException& WithResourceId(const char* value) { SetResourceId(value); return *this;}
104 
105 
109  inline const Aws::String& GetResourceType() const{ return m_resourceType; }
110 
114  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
115 
119  inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
120 
124  inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
125 
129  inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
130 
134  inline ConflictException& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
135 
139  inline ConflictException& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
140 
144  inline ConflictException& WithResourceType(const char* value) { SetResourceType(value); return *this;}
145 
146  private:
147 
148  Aws::String m_message;
149  bool m_messageHasBeenSet;
150 
151  Aws::String m_resourceId;
152  bool m_resourceIdHasBeenSet;
153 
154  Aws::String m_resourceType;
155  bool m_resourceTypeHasBeenSet;
156  };
157 
158 } // namespace Model
159 } // namespace AccessAnalyzer
160 } // namespace Aws
AccessAnalyzer_EXPORTS.h
Aws::AccessAnalyzer::Model::ConflictException::GetResourceType
const Aws::String & GetResourceType() const
Definition: ConflictException.h:109
Aws::AccessAnalyzer::Model::ConflictException::WithResourceId
ConflictException & WithResourceId(const Aws::String &value)
Definition: ConflictException.h:93
Aws::AccessAnalyzer::Model::ConflictException::ConflictException
ConflictException(Aws::Utils::Json::JsonView jsonValue)
Aws::AccessAnalyzer::Model::ConflictException::GetMessage
const Aws::String & GetMessage() const
Definition: ConflictException.h:41
Aws::AccessAnalyzer::Model::ConflictException::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AccessAnalyzer::Model::ConflictException::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: ConflictException.h:114
Aws::AccessAnalyzer::Model::ConflictException::SetResourceId
void SetResourceId(const Aws::String &value)
Definition: ConflictException.h:78
Aws::AccessAnalyzer::Model::ConflictException::SetMessage
void SetMessage(const char *value)
Definition: ConflictException.h:53
Aws::AccessAnalyzer::Model::ConflictException::ResourceIdHasBeenSet
bool ResourceIdHasBeenSet() const
Definition: ConflictException.h:73
Aws::AccessAnalyzer::Model::ConflictException::ConflictException
ConflictException()
Aws::AccessAnalyzer::Model::ConflictException::SetResourceType
void SetResourceType(Aws::String &&value)
Definition: ConflictException.h:124
Aws::AccessAnalyzer::Model::ConflictException::WithResourceId
ConflictException & WithResourceId(Aws::String &&value)
Definition: ConflictException.h:98
Aws::AccessAnalyzer::Model::ConflictException::WithResourceId
ConflictException & WithResourceId(const char *value)
Definition: ConflictException.h:103
Aws::AccessAnalyzer::Model::ConflictException::SetResourceType
void SetResourceType(const Aws::String &value)
Definition: ConflictException.h:119
Aws::AccessAnalyzer::Model::ConflictException::SetResourceType
void SetResourceType(const char *value)
Definition: ConflictException.h:129
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AccessAnalyzer::Model::ConflictException::SetMessage
void SetMessage(Aws::String &&value)
Definition: ConflictException.h:50
Aws::AccessAnalyzer::Model::ConflictException::SetMessage
void SetMessage(const Aws::String &value)
Definition: ConflictException.h:47
Aws::AccessAnalyzer::Model::ConflictException::operator=
ConflictException & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AccessAnalyzer::Model::ConflictException::WithResourceType
ConflictException & WithResourceType(const char *value)
Definition: ConflictException.h:144
Aws::AccessAnalyzer::Model::ConflictException::SetResourceId
void SetResourceId(const char *value)
Definition: ConflictException.h:88
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::AccessAnalyzer::Model::ConflictException::WithMessage
ConflictException & WithMessage(const Aws::String &value)
Definition: ConflictException.h:56
Aws::AccessAnalyzer::Model::ConflictException
Definition: ConflictException.h:32
AWS_ACCESSANALYZER_API
#define AWS_ACCESSANALYZER_API
Definition: AccessAnalyzer_EXPORTS.h:28
Aws::AccessAnalyzer::Model::ConflictException::GetResourceId
const Aws::String & GetResourceId() const
Definition: ConflictException.h:68
Aws::AccessAnalyzer::Model::ConflictException::WithMessage
ConflictException & WithMessage(Aws::String &&value)
Definition: ConflictException.h:59
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AccessAnalyzer::Model::ConflictException::SetResourceId
void SetResourceId(Aws::String &&value)
Definition: ConflictException.h:83
Aws::AccessAnalyzer::Model::ConflictException::WithMessage
ConflictException & WithMessage(const char *value)
Definition: ConflictException.h:62
Aws::AccessAnalyzer::Model::ConflictException::WithResourceType
ConflictException & WithResourceType(const Aws::String &value)
Definition: ConflictException.h:134
Aws::AccessAnalyzer::Model::ConflictException::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: ConflictException.h:44
Aws::AccessAnalyzer::Model::ConflictException::WithResourceType
ConflictException & WithResourceType(Aws::String &&value)
Definition: ConflictException.h:139