AWS SDK for C++  0.14.3
AWS SDK for C++
Communication.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace Support
31 {
32 namespace Model
33 {
34 
41  {
42  public:
43  Communication();
45  Communication& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
46  Aws::Utils::Json::JsonValue Jsonize() const;
47 
53  inline const Aws::String& GetCaseId() const{ return m_caseId; }
54 
60  inline void SetCaseId(const Aws::String& value) { m_caseIdHasBeenSet = true; m_caseId = value; }
61 
67  inline void SetCaseId(Aws::String&& value) { m_caseIdHasBeenSet = true; m_caseId = value; }
68 
74  inline void SetCaseId(const char* value) { m_caseIdHasBeenSet = true; m_caseId.assign(value); }
75 
81  inline Communication& WithCaseId(const Aws::String& value) { SetCaseId(value); return *this;}
82 
88  inline Communication& WithCaseId(Aws::String&& value) { SetCaseId(value); return *this;}
89 
95  inline Communication& WithCaseId(const char* value) { SetCaseId(value); return *this;}
96 
100  inline const Aws::String& GetBody() const{ return m_body; }
101 
105  inline void SetBody(const Aws::String& value) { m_bodyHasBeenSet = true; m_body = value; }
106 
110  inline void SetBody(Aws::String&& value) { m_bodyHasBeenSet = true; m_body = value; }
111 
115  inline void SetBody(const char* value) { m_bodyHasBeenSet = true; m_body.assign(value); }
116 
120  inline Communication& WithBody(const Aws::String& value) { SetBody(value); return *this;}
121 
125  inline Communication& WithBody(Aws::String&& value) { SetBody(value); return *this;}
126 
130  inline Communication& WithBody(const char* value) { SetBody(value); return *this;}
131 
135  inline const Aws::String& GetSubmittedBy() const{ return m_submittedBy; }
136 
140  inline void SetSubmittedBy(const Aws::String& value) { m_submittedByHasBeenSet = true; m_submittedBy = value; }
141 
145  inline void SetSubmittedBy(Aws::String&& value) { m_submittedByHasBeenSet = true; m_submittedBy = value; }
146 
150  inline void SetSubmittedBy(const char* value) { m_submittedByHasBeenSet = true; m_submittedBy.assign(value); }
151 
155  inline Communication& WithSubmittedBy(const Aws::String& value) { SetSubmittedBy(value); return *this;}
156 
160  inline Communication& WithSubmittedBy(Aws::String&& value) { SetSubmittedBy(value); return *this;}
161 
165  inline Communication& WithSubmittedBy(const char* value) { SetSubmittedBy(value); return *this;}
166 
170  inline const Aws::String& GetTimeCreated() const{ return m_timeCreated; }
171 
175  inline void SetTimeCreated(const Aws::String& value) { m_timeCreatedHasBeenSet = true; m_timeCreated = value; }
176 
180  inline void SetTimeCreated(Aws::String&& value) { m_timeCreatedHasBeenSet = true; m_timeCreated = value; }
181 
185  inline void SetTimeCreated(const char* value) { m_timeCreatedHasBeenSet = true; m_timeCreated.assign(value); }
186 
190  inline Communication& WithTimeCreated(const Aws::String& value) { SetTimeCreated(value); return *this;}
191 
195  inline Communication& WithTimeCreated(Aws::String&& value) { SetTimeCreated(value); return *this;}
196 
200  inline Communication& WithTimeCreated(const char* value) { SetTimeCreated(value); return *this;}
201 
205  inline const Aws::Vector<AttachmentDetails>& GetAttachmentSet() const{ return m_attachmentSet; }
206 
210  inline void SetAttachmentSet(const Aws::Vector<AttachmentDetails>& value) { m_attachmentSetHasBeenSet = true; m_attachmentSet = value; }
211 
215  inline void SetAttachmentSet(Aws::Vector<AttachmentDetails>&& value) { m_attachmentSetHasBeenSet = true; m_attachmentSet = value; }
216 
220  inline Communication& WithAttachmentSet(const Aws::Vector<AttachmentDetails>& value) { SetAttachmentSet(value); return *this;}
221 
225  inline Communication& WithAttachmentSet(Aws::Vector<AttachmentDetails>&& value) { SetAttachmentSet(value); return *this;}
226 
230  inline Communication& AddAttachmentSet(const AttachmentDetails& value) { m_attachmentSetHasBeenSet = true; m_attachmentSet.push_back(value); return *this; }
231 
235  inline Communication& AddAttachmentSet(AttachmentDetails&& value) { m_attachmentSetHasBeenSet = true; m_attachmentSet.push_back(value); return *this; }
236 
237  private:
238  Aws::String m_caseId;
239  bool m_caseIdHasBeenSet;
240  Aws::String m_body;
241  bool m_bodyHasBeenSet;
242  Aws::String m_submittedBy;
243  bool m_submittedByHasBeenSet;
244  Aws::String m_timeCreated;
245  bool m_timeCreatedHasBeenSet;
246  Aws::Vector<AttachmentDetails> m_attachmentSet;
247  bool m_attachmentSetHasBeenSet;
248  };
249 
250 } // namespace Model
251 } // namespace Support
252 } // namespace Aws
Communication & WithAttachmentSet(const Aws::Vector< AttachmentDetails > &value)
void SetSubmittedBy(const Aws::String &value)
void SetCaseId(const Aws::String &value)
Definition: Communication.h:60
void SetTimeCreated(Aws::String &&value)
Communication & WithSubmittedBy(const Aws::String &value)
void SetBody(Aws::String &&value)
Communication & WithTimeCreated(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetCaseId(const char *value)
Definition: Communication.h:74
const Aws::Vector< AttachmentDetails > & GetAttachmentSet() const
Communication & WithTimeCreated(const char *value)
Communication & WithBody(Aws::String &&value)
Communication & WithBody(const char *value)
Communication & WithSubmittedBy(const char *value)
const Aws::String & GetTimeCreated() const
void SetAttachmentSet(const Aws::Vector< AttachmentDetails > &value)
Communication & WithSubmittedBy(Aws::String &&value)
const Aws::String & GetBody() const
Communication & WithTimeCreated(const Aws::String &value)
Communication & AddAttachmentSet(AttachmentDetails &&value)
void SetTimeCreated(const char *value)
#define AWS_SUPPORT_API
Communication & WithBody(const Aws::String &value)
Communication & WithCaseId(const char *value)
Definition: Communication.h:95
void SetBody(const Aws::String &value)
Communication & WithAttachmentSet(Aws::Vector< AttachmentDetails > &&value)
void SetCaseId(Aws::String &&value)
Definition: Communication.h:67
void SetAttachmentSet(Aws::Vector< AttachmentDetails > &&value)
void SetSubmittedBy(const char *value)
Communication & AddAttachmentSet(const AttachmentDetails &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Communication & WithCaseId(Aws::String &&value)
Definition: Communication.h:88
Communication & WithCaseId(const Aws::String &value)
Definition: Communication.h:81
void SetTimeCreated(const Aws::String &value)
const Aws::String & GetSubmittedBy() const
void SetBody(const char *value)
void SetSubmittedBy(Aws::String &&value)
const Aws::String & GetCaseId() const
Definition: Communication.h:53
JSON (JavaScript Object Notation).