AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ConflictException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/voice-id/VoiceID_EXPORTS.h>
9#include <aws/voice-id/model/ConflictType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace VoiceID {
21namespace Model {
22
30 public:
31 AWS_VOICEID_API ConflictException() = default;
34 AWS_VOICEID_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
51 inline ConflictType GetConflictType() const { return m_conflictType; }
52 inline bool ConflictTypeHasBeenSet() const { return m_conflictTypeHasBeenSet; }
53 inline void SetConflictType(ConflictType value) {
54 m_conflictTypeHasBeenSet = true;
55 m_conflictType = value;
56 }
58 SetConflictType(value);
59 return *this;
60 }
62
64
65 inline const Aws::String& GetMessage() const { return m_message; }
66 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
67 template <typename MessageT = Aws::String>
68 void SetMessage(MessageT&& value) {
69 m_messageHasBeenSet = true;
70 m_message = std::forward<MessageT>(value);
71 }
72 template <typename MessageT = Aws::String>
73 ConflictException& WithMessage(MessageT&& value) {
74 SetMessage(std::forward<MessageT>(value));
75 return *this;
76 }
78 private:
79 ConflictType m_conflictType{ConflictType::NOT_SET};
80
81 Aws::String m_message;
82 bool m_conflictTypeHasBeenSet = false;
83 bool m_messageHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace VoiceID
88} // namespace Aws
ConflictException & WithConflictType(ConflictType value)
const Aws::String & GetMessage() const
AWS_VOICEID_API ConflictException & operator=(Aws::Utils::Json::JsonView jsonValue)
ConflictException & WithMessage(MessageT &&value)
AWS_VOICEID_API ConflictException(Aws::Utils::Json::JsonView jsonValue)
AWS_VOICEID_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_VOICEID_API ConflictException()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue