AWS SDK for C++

AWS SDK for C++ Version 1.11.704

Loading...
Searching...
No Matches
SearchContactsTimeRange.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/SearchContactsTimeRangeType.h>
9#include <aws/core/utils/DateTime.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Connect {
21namespace Model {
22
30 public:
31 AWS_CONNECT_API SearchContactsTimeRange() = default;
34 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline SearchContactsTimeRangeType GetType() const { return m_type; }
41 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
43 m_typeHasBeenSet = true;
44 m_type = value;
45 }
47 SetType(value);
48 return *this;
49 }
51
53
56 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
57 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
58 template <typename StartTimeT = Aws::Utils::DateTime>
59 void SetStartTime(StartTimeT&& value) {
60 m_startTimeHasBeenSet = true;
61 m_startTime = std::forward<StartTimeT>(value);
62 }
63 template <typename StartTimeT = Aws::Utils::DateTime>
65 SetStartTime(std::forward<StartTimeT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
75 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
76 template <typename EndTimeT = Aws::Utils::DateTime>
77 void SetEndTime(EndTimeT&& value) {
78 m_endTimeHasBeenSet = true;
79 m_endTime = std::forward<EndTimeT>(value);
80 }
81 template <typename EndTimeT = Aws::Utils::DateTime>
83 SetEndTime(std::forward<EndTimeT>(value));
84 return *this;
85 }
87 private:
89 bool m_typeHasBeenSet = false;
90
91 Aws::Utils::DateTime m_startTime{};
92 bool m_startTimeHasBeenSet = false;
93
94 Aws::Utils::DateTime m_endTime{};
95 bool m_endTimeHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace Connect
100} // namespace Aws
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
SearchContactsTimeRange & WithEndTime(EndTimeT &&value)
const Aws::Utils::DateTime & GetStartTime() const
SearchContactsTimeRangeType GetType() const
AWS_CONNECT_API SearchContactsTimeRange(Aws::Utils::Json::JsonView jsonValue)
void SetType(SearchContactsTimeRangeType value)
AWS_CONNECT_API SearchContactsTimeRange()=default
SearchContactsTimeRange & WithStartTime(StartTimeT &&value)
const Aws::Utils::DateTime & GetEndTime() const
AWS_CONNECT_API SearchContactsTimeRange & operator=(Aws::Utils::Json::JsonView jsonValue)
SearchContactsTimeRange & WithType(SearchContactsTimeRangeType value)
Aws::Utils::Json::JsonValue JsonValue