AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Communication.h
1
6#pragma once
7#include <aws/support/Support_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/support/model/AttachmentDetails.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Support
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_SUPPORT_API Communication() = default;
40 AWS_SUPPORT_API Communication(Aws::Utils::Json::JsonView jsonValue);
42 AWS_SUPPORT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
51 inline const Aws::String& GetCaseId() const { return m_caseId; }
52 inline bool CaseIdHasBeenSet() const { return m_caseIdHasBeenSet; }
53 template<typename CaseIdT = Aws::String>
54 void SetCaseId(CaseIdT&& value) { m_caseIdHasBeenSet = true; m_caseId = std::forward<CaseIdT>(value); }
55 template<typename CaseIdT = Aws::String>
56 Communication& WithCaseId(CaseIdT&& value) { SetCaseId(std::forward<CaseIdT>(value)); return *this;}
58
60
64 inline const Aws::String& GetBody() const { return m_body; }
65 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
66 template<typename BodyT = Aws::String>
67 void SetBody(BodyT&& value) { m_bodyHasBeenSet = true; m_body = std::forward<BodyT>(value); }
68 template<typename BodyT = Aws::String>
69 Communication& WithBody(BodyT&& value) { SetBody(std::forward<BodyT>(value)); return *this;}
71
73
80 inline const Aws::String& GetSubmittedBy() const { return m_submittedBy; }
81 inline bool SubmittedByHasBeenSet() const { return m_submittedByHasBeenSet; }
82 template<typename SubmittedByT = Aws::String>
83 void SetSubmittedBy(SubmittedByT&& value) { m_submittedByHasBeenSet = true; m_submittedBy = std::forward<SubmittedByT>(value); }
84 template<typename SubmittedByT = Aws::String>
85 Communication& WithSubmittedBy(SubmittedByT&& value) { SetSubmittedBy(std::forward<SubmittedByT>(value)); return *this;}
87
89
92 inline const Aws::String& GetTimeCreated() const { return m_timeCreated; }
93 inline bool TimeCreatedHasBeenSet() const { return m_timeCreatedHasBeenSet; }
94 template<typename TimeCreatedT = Aws::String>
95 void SetTimeCreated(TimeCreatedT&& value) { m_timeCreatedHasBeenSet = true; m_timeCreated = std::forward<TimeCreatedT>(value); }
96 template<typename TimeCreatedT = Aws::String>
97 Communication& WithTimeCreated(TimeCreatedT&& value) { SetTimeCreated(std::forward<TimeCreatedT>(value)); return *this;}
99
101
104 inline const Aws::Vector<AttachmentDetails>& GetAttachmentSet() const { return m_attachmentSet; }
105 inline bool AttachmentSetHasBeenSet() const { return m_attachmentSetHasBeenSet; }
106 template<typename AttachmentSetT = Aws::Vector<AttachmentDetails>>
107 void SetAttachmentSet(AttachmentSetT&& value) { m_attachmentSetHasBeenSet = true; m_attachmentSet = std::forward<AttachmentSetT>(value); }
108 template<typename AttachmentSetT = Aws::Vector<AttachmentDetails>>
109 Communication& WithAttachmentSet(AttachmentSetT&& value) { SetAttachmentSet(std::forward<AttachmentSetT>(value)); return *this;}
110 template<typename AttachmentSetT = AttachmentDetails>
111 Communication& AddAttachmentSet(AttachmentSetT&& value) { m_attachmentSetHasBeenSet = true; m_attachmentSet.emplace_back(std::forward<AttachmentSetT>(value)); return *this; }
113 private:
114
115 Aws::String m_caseId;
116 bool m_caseIdHasBeenSet = false;
117
118 Aws::String m_body;
119 bool m_bodyHasBeenSet = false;
120
121 Aws::String m_submittedBy;
122 bool m_submittedByHasBeenSet = false;
123
124 Aws::String m_timeCreated;
125 bool m_timeCreatedHasBeenSet = false;
126
127 Aws::Vector<AttachmentDetails> m_attachmentSet;
128 bool m_attachmentSetHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace Support
133} // namespace Aws
Communication & WithCaseId(CaseIdT &&value)
const Aws::String & GetBody() const
const Aws::String & GetSubmittedBy() const
void SetTimeCreated(TimeCreatedT &&value)
void SetCaseId(CaseIdT &&value)
AWS_SUPPORT_API Aws::Utils::Json::JsonValue Jsonize() const
Communication & WithSubmittedBy(SubmittedByT &&value)
Communication & WithTimeCreated(TimeCreatedT &&value)
AWS_SUPPORT_API Communication()=default
Communication & AddAttachmentSet(AttachmentSetT &&value)
void SetSubmittedBy(SubmittedByT &&value)
Communication & WithAttachmentSet(AttachmentSetT &&value)
Communication & WithBody(BodyT &&value)
AWS_SUPPORT_API Communication(Aws::Utils::Json::JsonView jsonValue)
AWS_SUPPORT_API Communication & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetTimeCreated() const
void SetAttachmentSet(AttachmentSetT &&value)
const Aws::Vector< AttachmentDetails > & GetAttachmentSet() const
const Aws::String & GetCaseId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue