AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
ConflictException.h
1
6#pragma once
7#include <aws/cloudextensions/CloudExtensions_EXPORTS.h>
8#include <aws/cloudextensions/model/Conflict.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 CloudExtensions {
21namespace Model {
22
30 public:
31 AWS_CLOUDEXTENSIONS_API ConflictException() = default;
32 AWS_CLOUDEXTENSIONS_API ConflictException(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CLOUDEXTENSIONS_API ConflictException& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CLOUDEXTENSIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
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>
49 ConflictException& WithMessage(MessageT&& value) {
50 SetMessage(std::forward<MessageT>(value));
51 return *this;
52 }
54
56
59 inline const Conflict& GetConflict() const { return m_conflict; }
60 inline bool ConflictHasBeenSet() const { return m_conflictHasBeenSet; }
61 template <typename ConflictT = Conflict>
62 void SetConflict(ConflictT&& value) {
63 m_conflictHasBeenSet = true;
64 m_conflict = std::forward<ConflictT>(value);
65 }
66 template <typename ConflictT = Conflict>
67 ConflictException& WithConflict(ConflictT&& value) {
68 SetConflict(std::forward<ConflictT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_message;
74
75 Conflict m_conflict;
76 bool m_messageHasBeenSet = false;
77 bool m_conflictHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace CloudExtensions
82} // namespace Aws
ConflictException & WithConflict(ConflictT &&value)
AWS_CLOUDEXTENSIONS_API ConflictException & operator=(Aws::Utils::Json::JsonView jsonValue)
ConflictException & WithMessage(MessageT &&value)
AWS_CLOUDEXTENSIONS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CLOUDEXTENSIONS_API ConflictException()=default
AWS_CLOUDEXTENSIONS_API ConflictException(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue