AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PrefetchConsumption.h
1
6#pragma once
7#include <aws/mediatailor/MediaTailor_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/mediatailor/model/AvailMatchingCriteria.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 MediaTailor
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_MEDIATAILOR_API PrefetchConsumption() = default;
38 AWS_MEDIATAILOR_API PrefetchConsumption(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MEDIATAILOR_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
49 inline const Aws::Vector<AvailMatchingCriteria>& GetAvailMatchingCriteria() const { return m_availMatchingCriteria; }
50 inline bool AvailMatchingCriteriaHasBeenSet() const { return m_availMatchingCriteriaHasBeenSet; }
51 template<typename AvailMatchingCriteriaT = Aws::Vector<AvailMatchingCriteria>>
52 void SetAvailMatchingCriteria(AvailMatchingCriteriaT&& value) { m_availMatchingCriteriaHasBeenSet = true; m_availMatchingCriteria = std::forward<AvailMatchingCriteriaT>(value); }
53 template<typename AvailMatchingCriteriaT = Aws::Vector<AvailMatchingCriteria>>
54 PrefetchConsumption& WithAvailMatchingCriteria(AvailMatchingCriteriaT&& value) { SetAvailMatchingCriteria(std::forward<AvailMatchingCriteriaT>(value)); return *this;}
55 template<typename AvailMatchingCriteriaT = AvailMatchingCriteria>
56 PrefetchConsumption& AddAvailMatchingCriteria(AvailMatchingCriteriaT&& value) { m_availMatchingCriteriaHasBeenSet = true; m_availMatchingCriteria.emplace_back(std::forward<AvailMatchingCriteriaT>(value)); return *this; }
58
60
66 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
67 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
68 template<typename EndTimeT = Aws::Utils::DateTime>
69 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
70 template<typename EndTimeT = Aws::Utils::DateTime>
71 PrefetchConsumption& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
73
75
80 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
81 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
82 template<typename StartTimeT = Aws::Utils::DateTime>
83 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
84 template<typename StartTimeT = Aws::Utils::DateTime>
85 PrefetchConsumption& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
87 private:
88
89 Aws::Vector<AvailMatchingCriteria> m_availMatchingCriteria;
90 bool m_availMatchingCriteriaHasBeenSet = false;
91
92 Aws::Utils::DateTime m_endTime{};
93 bool m_endTimeHasBeenSet = false;
94
95 Aws::Utils::DateTime m_startTime{};
96 bool m_startTimeHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace MediaTailor
101} // namespace Aws
PrefetchConsumption & WithEndTime(EndTimeT &&value)
AWS_MEDIATAILOR_API PrefetchConsumption()=default
AWS_MEDIATAILOR_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetEndTime() const
PrefetchConsumption & WithAvailMatchingCriteria(AvailMatchingCriteriaT &&value)
AWS_MEDIATAILOR_API PrefetchConsumption & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIATAILOR_API PrefetchConsumption(Aws::Utils::Json::JsonView jsonValue)
PrefetchConsumption & AddAvailMatchingCriteria(AvailMatchingCriteriaT &&value)
const Aws::Utils::DateTime & GetStartTime() const
void SetAvailMatchingCriteria(AvailMatchingCriteriaT &&value)
const Aws::Vector< AvailMatchingCriteria > & GetAvailMatchingCriteria() const
PrefetchConsumption & WithStartTime(StartTimeT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue