AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
RecentCaseCommunications.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/support/Support_EXPORTS.h>
10#include <aws/support/model/Communication.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Support {
22namespace Model {
23
31 public:
32 AWS_SUPPORT_API RecentCaseCommunications() = default;
35 AWS_SUPPORT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::Vector<Communication>& GetCommunications() const { return m_communications; }
42 inline bool CommunicationsHasBeenSet() const { return m_communicationsHasBeenSet; }
43 template <typename CommunicationsT = Aws::Vector<Communication>>
44 void SetCommunications(CommunicationsT&& value) {
45 m_communicationsHasBeenSet = true;
46 m_communications = std::forward<CommunicationsT>(value);
47 }
48 template <typename CommunicationsT = Aws::Vector<Communication>>
49 RecentCaseCommunications& WithCommunications(CommunicationsT&& value) {
50 SetCommunications(std::forward<CommunicationsT>(value));
51 return *this;
52 }
53 template <typename CommunicationsT = Communication>
54 RecentCaseCommunications& AddCommunications(CommunicationsT&& value) {
55 m_communicationsHasBeenSet = true;
56 m_communications.emplace_back(std::forward<CommunicationsT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetNextToken() const { return m_nextToken; }
66 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
67 template <typename NextTokenT = Aws::String>
68 void SetNextToken(NextTokenT&& value) {
69 m_nextTokenHasBeenSet = true;
70 m_nextToken = std::forward<NextTokenT>(value);
71 }
72 template <typename NextTokenT = Aws::String>
74 SetNextToken(std::forward<NextTokenT>(value));
75 return *this;
76 }
78 private:
79 Aws::Vector<Communication> m_communications;
80
81 Aws::String m_nextToken;
82 bool m_communicationsHasBeenSet = false;
83 bool m_nextTokenHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace Support
88} // namespace Aws
AWS_SUPPORT_API RecentCaseCommunications & operator=(Aws::Utils::Json::JsonView jsonValue)
RecentCaseCommunications & WithNextToken(NextTokenT &&value)
AWS_SUPPORT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SUPPORT_API RecentCaseCommunications()=default
RecentCaseCommunications & AddCommunications(CommunicationsT &&value)
AWS_SUPPORT_API RecentCaseCommunications(Aws::Utils::Json::JsonView jsonValue)
RecentCaseCommunications & WithCommunications(CommunicationsT &&value)
const Aws::Vector< Communication > & GetCommunications() 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