AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Batch.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CustomerProfiles {
20namespace Model {
21
30class Batch {
31 public:
32 AWS_CUSTOMERPROFILES_API Batch() = default;
33 AWS_CUSTOMERPROFILES_API Batch(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CUSTOMERPROFILES_API Batch& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
42 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
43 template <typename StartTimeT = Aws::Utils::DateTime>
44 void SetStartTime(StartTimeT&& value) {
45 m_startTimeHasBeenSet = true;
46 m_startTime = std::forward<StartTimeT>(value);
47 }
48 template <typename StartTimeT = Aws::Utils::DateTime>
49 Batch& WithStartTime(StartTimeT&& value) {
50 SetStartTime(std::forward<StartTimeT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
60 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
61 template <typename EndTimeT = Aws::Utils::DateTime>
62 void SetEndTime(EndTimeT&& value) {
63 m_endTimeHasBeenSet = true;
64 m_endTime = std::forward<EndTimeT>(value);
65 }
66 template <typename EndTimeT = Aws::Utils::DateTime>
67 Batch& WithEndTime(EndTimeT&& value) {
68 SetEndTime(std::forward<EndTimeT>(value));
69 return *this;
70 }
72 private:
73 Aws::Utils::DateTime m_startTime{};
74
75 Aws::Utils::DateTime m_endTime{};
76 bool m_startTimeHasBeenSet = false;
77 bool m_endTimeHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace CustomerProfiles
82} // namespace Aws
const Aws::Utils::DateTime & GetStartTime() const
Definition Batch.h:41
AWS_CUSTOMERPROFILES_API Batch(Aws::Utils::Json::JsonView jsonValue)
Batch & WithStartTime(StartTimeT &&value)
Definition Batch.h:49
void SetEndTime(EndTimeT &&value)
Definition Batch.h:62
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetEndTime() const
Definition Batch.h:59
AWS_CUSTOMERPROFILES_API Batch()=default
void SetStartTime(StartTimeT &&value)
Definition Batch.h:44
Batch & WithEndTime(EndTimeT &&value)
Definition Batch.h:67
AWS_CUSTOMERPROFILES_API Batch & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue