AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
DataPartitionStorageOptions.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iotfleetwise/IoTFleetWise_EXPORTS.h>
9#include <aws/iotfleetwise/model/StorageMaximumSize.h>
10#include <aws/iotfleetwise/model/StorageMinimumTimeToLive.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IoTFleetWise {
22namespace Model {
23
31 public:
32 AWS_IOTFLEETWISE_API DataPartitionStorageOptions() = default;
35 AWS_IOTFLEETWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
43 inline const StorageMaximumSize& GetMaximumSize() const { return m_maximumSize; }
44 inline bool MaximumSizeHasBeenSet() const { return m_maximumSizeHasBeenSet; }
45 template <typename MaximumSizeT = StorageMaximumSize>
46 void SetMaximumSize(MaximumSizeT&& value) {
47 m_maximumSizeHasBeenSet = true;
48 m_maximumSize = std::forward<MaximumSizeT>(value);
49 }
50 template <typename MaximumSizeT = StorageMaximumSize>
52 SetMaximumSize(std::forward<MaximumSizeT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetStorageLocation() const { return m_storageLocation; }
62 inline bool StorageLocationHasBeenSet() const { return m_storageLocationHasBeenSet; }
63 template <typename StorageLocationT = Aws::String>
64 void SetStorageLocation(StorageLocationT&& value) {
65 m_storageLocationHasBeenSet = true;
66 m_storageLocation = std::forward<StorageLocationT>(value);
67 }
68 template <typename StorageLocationT = Aws::String>
70 SetStorageLocation(std::forward<StorageLocationT>(value));
71 return *this;
72 }
74
76
84 inline const StorageMinimumTimeToLive& GetMinimumTimeToLive() const { return m_minimumTimeToLive; }
85 inline bool MinimumTimeToLiveHasBeenSet() const { return m_minimumTimeToLiveHasBeenSet; }
86 template <typename MinimumTimeToLiveT = StorageMinimumTimeToLive>
87 void SetMinimumTimeToLive(MinimumTimeToLiveT&& value) {
88 m_minimumTimeToLiveHasBeenSet = true;
89 m_minimumTimeToLive = std::forward<MinimumTimeToLiveT>(value);
90 }
91 template <typename MinimumTimeToLiveT = StorageMinimumTimeToLive>
93 SetMinimumTimeToLive(std::forward<MinimumTimeToLiveT>(value));
94 return *this;
95 }
97 private:
98 StorageMaximumSize m_maximumSize;
99
100 Aws::String m_storageLocation;
101
102 StorageMinimumTimeToLive m_minimumTimeToLive;
103 bool m_maximumSizeHasBeenSet = false;
104 bool m_storageLocationHasBeenSet = false;
105 bool m_minimumTimeToLiveHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace IoTFleetWise
110} // namespace Aws
AWS_IOTFLEETWISE_API Aws::Utils::Json::JsonValue Jsonize() const
DataPartitionStorageOptions & WithMinimumTimeToLive(MinimumTimeToLiveT &&value)
DataPartitionStorageOptions & WithMaximumSize(MaximumSizeT &&value)
DataPartitionStorageOptions & WithStorageLocation(StorageLocationT &&value)
AWS_IOTFLEETWISE_API DataPartitionStorageOptions()=default
AWS_IOTFLEETWISE_API DataPartitionStorageOptions(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTFLEETWISE_API DataPartitionStorageOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
const StorageMinimumTimeToLive & GetMinimumTimeToLive() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue