AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCaseId(const Aws::String& value) { m_caseIdHasBeenSet = true; m_caseId = value; }
54 inline void SetCaseId(Aws::String&& value) { m_caseIdHasBeenSet = true; m_caseId = std::move(value); }
55 inline void SetCaseId(const char* value) { m_caseIdHasBeenSet = true; m_caseId.assign(value); }
56 inline Communication& WithCaseId(const Aws::String& value) { SetCaseId(value); return *this;}
57 inline Communication& WithCaseId(Aws::String&& value) { SetCaseId(std::move(value)); return *this;}
58 inline Communication& WithCaseId(const char* value) { SetCaseId(value); return *this;}
60
62
66 inline const Aws::String& GetBody() const{ return m_body; }
67 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
68 inline void SetBody(const Aws::String& value) { m_bodyHasBeenSet = true; m_body = value; }
69 inline void SetBody(Aws::String&& value) { m_bodyHasBeenSet = true; m_body = std::move(value); }
70 inline void SetBody(const char* value) { m_bodyHasBeenSet = true; m_body.assign(value); }
71 inline Communication& WithBody(const Aws::String& value) { SetBody(value); return *this;}
72 inline Communication& WithBody(Aws::String&& value) { SetBody(std::move(value)); return *this;}
73 inline Communication& WithBody(const char* value) { SetBody(value); return *this;}
75
77
84 inline const Aws::String& GetSubmittedBy() const{ return m_submittedBy; }
85 inline bool SubmittedByHasBeenSet() const { return m_submittedByHasBeenSet; }
86 inline void SetSubmittedBy(const Aws::String& value) { m_submittedByHasBeenSet = true; m_submittedBy = value; }
87 inline void SetSubmittedBy(Aws::String&& value) { m_submittedByHasBeenSet = true; m_submittedBy = std::move(value); }
88 inline void SetSubmittedBy(const char* value) { m_submittedByHasBeenSet = true; m_submittedBy.assign(value); }
89 inline Communication& WithSubmittedBy(const Aws::String& value) { SetSubmittedBy(value); return *this;}
90 inline Communication& WithSubmittedBy(Aws::String&& value) { SetSubmittedBy(std::move(value)); return *this;}
91 inline Communication& WithSubmittedBy(const char* value) { SetSubmittedBy(value); return *this;}
93
95
98 inline const Aws::String& GetTimeCreated() const{ return m_timeCreated; }
99 inline bool TimeCreatedHasBeenSet() const { return m_timeCreatedHasBeenSet; }
100 inline void SetTimeCreated(const Aws::String& value) { m_timeCreatedHasBeenSet = true; m_timeCreated = value; }
101 inline void SetTimeCreated(Aws::String&& value) { m_timeCreatedHasBeenSet = true; m_timeCreated = std::move(value); }
102 inline void SetTimeCreated(const char* value) { m_timeCreatedHasBeenSet = true; m_timeCreated.assign(value); }
103 inline Communication& WithTimeCreated(const Aws::String& value) { SetTimeCreated(value); return *this;}
104 inline Communication& WithTimeCreated(Aws::String&& value) { SetTimeCreated(std::move(value)); return *this;}
105 inline Communication& WithTimeCreated(const char* value) { SetTimeCreated(value); return *this;}
107
109
112 inline const Aws::Vector<AttachmentDetails>& GetAttachmentSet() const{ return m_attachmentSet; }
113 inline bool AttachmentSetHasBeenSet() const { return m_attachmentSetHasBeenSet; }
114 inline void SetAttachmentSet(const Aws::Vector<AttachmentDetails>& value) { m_attachmentSetHasBeenSet = true; m_attachmentSet = value; }
115 inline void SetAttachmentSet(Aws::Vector<AttachmentDetails>&& value) { m_attachmentSetHasBeenSet = true; m_attachmentSet = std::move(value); }
117 inline Communication& WithAttachmentSet(Aws::Vector<AttachmentDetails>&& value) { SetAttachmentSet(std::move(value)); return *this;}
118 inline Communication& AddAttachmentSet(const AttachmentDetails& value) { m_attachmentSetHasBeenSet = true; m_attachmentSet.push_back(value); return *this; }
119 inline Communication& AddAttachmentSet(AttachmentDetails&& value) { m_attachmentSetHasBeenSet = true; m_attachmentSet.push_back(std::move(value)); return *this; }
121 private:
122
123 Aws::String m_caseId;
124 bool m_caseIdHasBeenSet = false;
125
126 Aws::String m_body;
127 bool m_bodyHasBeenSet = false;
128
129 Aws::String m_submittedBy;
130 bool m_submittedByHasBeenSet = false;
131
132 Aws::String m_timeCreated;
133 bool m_timeCreatedHasBeenSet = false;
134
135 Aws::Vector<AttachmentDetails> m_attachmentSet;
136 bool m_attachmentSetHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace Support
141} // namespace Aws
void SetTimeCreated(const char *value)
void SetSubmittedBy(Aws::String &&value)
void SetTimeCreated(const Aws::String &value)
void SetTimeCreated(Aws::String &&value)
void SetBody(Aws::String &&value)
const Aws::String & GetBody() const
const Aws::String & GetSubmittedBy() const
Communication & WithBody(const Aws::String &value)
Communication & WithCaseId(const Aws::String &value)
void SetAttachmentSet(const Aws::Vector< AttachmentDetails > &value)
void SetSubmittedBy(const Aws::String &value)
AWS_SUPPORT_API Aws::Utils::Json::JsonValue Jsonize() const
Communication & WithSubmittedBy(const Aws::String &value)
Communication & WithTimeCreated(Aws::String &&value)
Communication & WithAttachmentSet(Aws::Vector< AttachmentDetails > &&value)
void SetBody(const Aws::String &value)
Communication & WithAttachmentSet(const Aws::Vector< AttachmentDetails > &value)
Communication & WithTimeCreated(const char *value)
Communication & AddAttachmentSet(AttachmentDetails &&value)
Communication & WithCaseId(const char *value)
Communication & WithBody(Aws::String &&value)
Communication & WithBody(const char *value)
void SetAttachmentSet(Aws::Vector< AttachmentDetails > &&value)
Communication & WithSubmittedBy(const char *value)
Communication & WithSubmittedBy(Aws::String &&value)
AWS_SUPPORT_API Communication(Aws::Utils::Json::JsonView jsonValue)
void SetBody(const char *value)
void SetCaseId(const Aws::String &value)
void SetCaseId(Aws::String &&value)
AWS_SUPPORT_API Communication & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetTimeCreated() const
void SetCaseId(const char *value)
void SetSubmittedBy(const char *value)
const Aws::Vector< AttachmentDetails > & GetAttachmentSet() const
Communication & WithTimeCreated(const Aws::String &value)
Communication & AddAttachmentSet(const AttachmentDetails &value)
Communication & WithCaseId(Aws::String &&value)
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