AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RecentCaseCommunications.h
1
6#pragma once
7#include <aws/support/Support_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/support/model/Communication.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
35 {
36 public:
37 AWS_SUPPORT_API RecentCaseCommunications() = default;
40 AWS_SUPPORT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Vector<Communication>& GetCommunications() const { return m_communications; }
48 inline bool CommunicationsHasBeenSet() const { return m_communicationsHasBeenSet; }
49 template<typename CommunicationsT = Aws::Vector<Communication>>
50 void SetCommunications(CommunicationsT&& value) { m_communicationsHasBeenSet = true; m_communications = std::forward<CommunicationsT>(value); }
51 template<typename CommunicationsT = Aws::Vector<Communication>>
52 RecentCaseCommunications& WithCommunications(CommunicationsT&& value) { SetCommunications(std::forward<CommunicationsT>(value)); return *this;}
53 template<typename CommunicationsT = Communication>
54 RecentCaseCommunications& AddCommunications(CommunicationsT&& value) { m_communicationsHasBeenSet = true; m_communications.emplace_back(std::forward<CommunicationsT>(value)); return *this; }
56
58
61 inline const Aws::String& GetNextToken() const { return m_nextToken; }
62 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
63 template<typename NextTokenT = Aws::String>
64 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
65 template<typename NextTokenT = Aws::String>
66 RecentCaseCommunications& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
68 private:
69
70 Aws::Vector<Communication> m_communications;
71 bool m_communicationsHasBeenSet = false;
72
73 Aws::String m_nextToken;
74 bool m_nextTokenHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace Support
79} // 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