AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
MessageDetail.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mediaconnect/MediaConnect_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace MediaConnect {
20namespace Model {
21
28 public:
29 AWS_MEDIACONNECT_API MessageDetail() = default;
30 AWS_MEDIACONNECT_API MessageDetail(Aws::Utils::Json::JsonView jsonValue);
31 AWS_MEDIACONNECT_API MessageDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetCode() const { return m_code; }
39 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
40 template <typename CodeT = Aws::String>
41 void SetCode(CodeT&& value) {
42 m_codeHasBeenSet = true;
43 m_code = std::forward<CodeT>(value);
44 }
45 template <typename CodeT = Aws::String>
46 MessageDetail& WithCode(CodeT&& value) {
47 SetCode(std::forward<CodeT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetMessage() const { return m_message; }
58 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
59 template <typename MessageT = Aws::String>
60 void SetMessage(MessageT&& value) {
61 m_messageHasBeenSet = true;
62 m_message = std::forward<MessageT>(value);
63 }
64 template <typename MessageT = Aws::String>
65 MessageDetail& WithMessage(MessageT&& value) {
66 SetMessage(std::forward<MessageT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetResourceName() const { return m_resourceName; }
76 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
77 template <typename ResourceNameT = Aws::String>
78 void SetResourceName(ResourceNameT&& value) {
79 m_resourceNameHasBeenSet = true;
80 m_resourceName = std::forward<ResourceNameT>(value);
81 }
82 template <typename ResourceNameT = Aws::String>
83 MessageDetail& WithResourceName(ResourceNameT&& value) {
84 SetResourceName(std::forward<ResourceNameT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_code;
90
91 Aws::String m_message;
92
93 Aws::String m_resourceName;
94 bool m_codeHasBeenSet = false;
95 bool m_messageHasBeenSet = false;
96 bool m_resourceNameHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace MediaConnect
101} // namespace Aws
const Aws::String & GetCode() const
AWS_MEDIACONNECT_API MessageDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
MessageDetail & WithResourceName(ResourceNameT &&value)
const Aws::String & GetMessage() const
AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetResourceName() const
MessageDetail & WithMessage(MessageT &&value)
MessageDetail & WithCode(CodeT &&value)
AWS_MEDIACONNECT_API MessageDetail()=default
AWS_MEDIACONNECT_API MessageDetail(Aws::Utils::Json::JsonView jsonValue)
void SetResourceName(ResourceNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue