AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
PutStorageConfigurationRequest.h
1
6#pragma once
7#include <aws/iotsitewise/IoTSiteWise_EXPORTS.h>
8#include <aws/iotsitewise/IoTSiteWiseRequest.h>
9#include <aws/iotsitewise/model/StorageType.h>
10#include <aws/iotsitewise/model/MultiLayerStorage.h>
11#include <aws/iotsitewise/model/DisassociatedDataStorageState.h>
12#include <aws/iotsitewise/model/RetentionPeriod.h>
13#include <aws/iotsitewise/model/WarmTierState.h>
14#include <aws/iotsitewise/model/WarmTierRetentionPeriod.h>
15#include <utility>
16
17namespace Aws
18{
19namespace IoTSiteWise
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_IOTSITEWISE_API PutStorageConfigurationRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "PutStorageConfiguration"; }
36
37 AWS_IOTSITEWISE_API Aws::String SerializePayload() const override;
38
39
41
50 inline StorageType GetStorageType() const { return m_storageType; }
51 inline bool StorageTypeHasBeenSet() const { return m_storageTypeHasBeenSet; }
52 inline void SetStorageType(StorageType value) { m_storageTypeHasBeenSet = true; m_storageType = value; }
55
57
62 inline const MultiLayerStorage& GetMultiLayerStorage() const { return m_multiLayerStorage; }
63 inline bool MultiLayerStorageHasBeenSet() const { return m_multiLayerStorageHasBeenSet; }
64 template<typename MultiLayerStorageT = MultiLayerStorage>
65 void SetMultiLayerStorage(MultiLayerStorageT&& value) { m_multiLayerStorageHasBeenSet = true; m_multiLayerStorage = std::forward<MultiLayerStorageT>(value); }
66 template<typename MultiLayerStorageT = MultiLayerStorage>
67 PutStorageConfigurationRequest& WithMultiLayerStorage(MultiLayerStorageT&& value) { SetMultiLayerStorage(std::forward<MultiLayerStorageT>(value)); return *this;}
69
71
83 inline DisassociatedDataStorageState GetDisassociatedDataStorage() const { return m_disassociatedDataStorage; }
84 inline bool DisassociatedDataStorageHasBeenSet() const { return m_disassociatedDataStorageHasBeenSet; }
85 inline void SetDisassociatedDataStorage(DisassociatedDataStorageState value) { m_disassociatedDataStorageHasBeenSet = true; m_disassociatedDataStorage = value; }
88
90
91 inline const RetentionPeriod& GetRetentionPeriod() const { return m_retentionPeriod; }
92 inline bool RetentionPeriodHasBeenSet() const { return m_retentionPeriodHasBeenSet; }
93 template<typename RetentionPeriodT = RetentionPeriod>
94 void SetRetentionPeriod(RetentionPeriodT&& value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = std::forward<RetentionPeriodT>(value); }
95 template<typename RetentionPeriodT = RetentionPeriod>
96 PutStorageConfigurationRequest& WithRetentionPeriod(RetentionPeriodT&& value) { SetRetentionPeriod(std::forward<RetentionPeriodT>(value)); return *this;}
98
100
105 inline WarmTierState GetWarmTier() const { return m_warmTier; }
106 inline bool WarmTierHasBeenSet() const { return m_warmTierHasBeenSet; }
107 inline void SetWarmTier(WarmTierState value) { m_warmTierHasBeenSet = true; m_warmTier = value; }
110
112
116 inline const WarmTierRetentionPeriod& GetWarmTierRetentionPeriod() const { return m_warmTierRetentionPeriod; }
117 inline bool WarmTierRetentionPeriodHasBeenSet() const { return m_warmTierRetentionPeriodHasBeenSet; }
118 template<typename WarmTierRetentionPeriodT = WarmTierRetentionPeriod>
119 void SetWarmTierRetentionPeriod(WarmTierRetentionPeriodT&& value) { m_warmTierRetentionPeriodHasBeenSet = true; m_warmTierRetentionPeriod = std::forward<WarmTierRetentionPeriodT>(value); }
120 template<typename WarmTierRetentionPeriodT = WarmTierRetentionPeriod>
121 PutStorageConfigurationRequest& WithWarmTierRetentionPeriod(WarmTierRetentionPeriodT&& value) { SetWarmTierRetentionPeriod(std::forward<WarmTierRetentionPeriodT>(value)); return *this;}
123
125
130 inline bool GetDisallowIngestNullNaN() const { return m_disallowIngestNullNaN; }
131 inline bool DisallowIngestNullNaNHasBeenSet() const { return m_disallowIngestNullNaNHasBeenSet; }
132 inline void SetDisallowIngestNullNaN(bool value) { m_disallowIngestNullNaNHasBeenSet = true; m_disallowIngestNullNaN = value; }
135 private:
136
137 StorageType m_storageType{StorageType::NOT_SET};
138 bool m_storageTypeHasBeenSet = false;
139
140 MultiLayerStorage m_multiLayerStorage;
141 bool m_multiLayerStorageHasBeenSet = false;
142
144 bool m_disassociatedDataStorageHasBeenSet = false;
145
146 RetentionPeriod m_retentionPeriod;
147 bool m_retentionPeriodHasBeenSet = false;
148
150 bool m_warmTierHasBeenSet = false;
151
152 WarmTierRetentionPeriod m_warmTierRetentionPeriod;
153 bool m_warmTierRetentionPeriodHasBeenSet = false;
154
155 bool m_disallowIngestNullNaN{false};
156 bool m_disallowIngestNullNaNHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace IoTSiteWise
161} // namespace Aws
PutStorageConfigurationRequest & WithDisallowIngestNullNaN(bool value)
void SetDisassociatedDataStorage(DisassociatedDataStorageState value)
PutStorageConfigurationRequest & WithWarmTier(WarmTierState value)
PutStorageConfigurationRequest & WithWarmTierRetentionPeriod(WarmTierRetentionPeriodT &&value)
AWS_IOTSITEWISE_API Aws::String SerializePayload() const override
PutStorageConfigurationRequest & WithStorageType(StorageType value)
PutStorageConfigurationRequest & WithMultiLayerStorage(MultiLayerStorageT &&value)
PutStorageConfigurationRequest & WithRetentionPeriod(RetentionPeriodT &&value)
PutStorageConfigurationRequest & WithDisassociatedDataStorage(DisassociatedDataStorageState value)
AWS_IOTSITEWISE_API PutStorageConfigurationRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String