AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
StartPosition.h
1
6#pragma once
7#include <aws/connectparticipant/ConnectParticipant_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ConnectParticipant {
20namespace Model {
21
29 public:
30 AWS_CONNECTPARTICIPANT_API StartPosition() = default;
31 AWS_CONNECTPARTICIPANT_API StartPosition(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CONNECTPARTICIPANT_API StartPosition& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CONNECTPARTICIPANT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetId() const { return m_id; }
40 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
41 template <typename IdT = Aws::String>
42 void SetId(IdT&& value) {
43 m_idHasBeenSet = true;
44 m_id = std::forward<IdT>(value);
45 }
46 template <typename IdT = Aws::String>
47 StartPosition& WithId(IdT&& value) {
48 SetId(std::forward<IdT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetAbsoluteTime() const { return m_absoluteTime; }
59 inline bool AbsoluteTimeHasBeenSet() const { return m_absoluteTimeHasBeenSet; }
60 template <typename AbsoluteTimeT = Aws::String>
61 void SetAbsoluteTime(AbsoluteTimeT&& value) {
62 m_absoluteTimeHasBeenSet = true;
63 m_absoluteTime = std::forward<AbsoluteTimeT>(value);
64 }
65 template <typename AbsoluteTimeT = Aws::String>
66 StartPosition& WithAbsoluteTime(AbsoluteTimeT&& value) {
67 SetAbsoluteTime(std::forward<AbsoluteTimeT>(value));
68 return *this;
69 }
71
73
76 inline int GetMostRecent() const { return m_mostRecent; }
77 inline bool MostRecentHasBeenSet() const { return m_mostRecentHasBeenSet; }
78 inline void SetMostRecent(int value) {
79 m_mostRecentHasBeenSet = true;
80 m_mostRecent = value;
81 }
82 inline StartPosition& WithMostRecent(int value) {
83 SetMostRecent(value);
84 return *this;
85 }
87 private:
88 Aws::String m_id;
89
90 Aws::String m_absoluteTime;
91
92 int m_mostRecent{0};
93 bool m_idHasBeenSet = false;
94 bool m_absoluteTimeHasBeenSet = false;
95 bool m_mostRecentHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace ConnectParticipant
100} // namespace Aws
AWS_CONNECTPARTICIPANT_API StartPosition(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTPARTICIPANT_API StartPosition()=default
AWS_CONNECTPARTICIPANT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetAbsoluteTime() const
AWS_CONNECTPARTICIPANT_API StartPosition & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAbsoluteTime(AbsoluteTimeT &&value)
StartPosition & WithAbsoluteTime(AbsoluteTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue