AWS SDK for C++

AWS SDK for C++ Version 1.11.901

Loading...
Searching...
No Matches
StorageConfigurationOutput.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/eventbridgev2/EventBridgeV2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace EventBridgeV2 {
20namespace Model {
21
29 public:
30 AWS_EVENTBRIDGEV2_API StorageConfigurationOutput() = default;
31 AWS_EVENTBRIDGEV2_API StorageConfigurationOutput(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_EVENTBRIDGEV2_API StorageConfigurationOutput& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_EVENTBRIDGEV2_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
37 inline int64_t GetRetentionPeriodInDays() const { return m_retentionPeriodInDays; }
38 inline bool RetentionPeriodInDaysHasBeenSet() const { return m_retentionPeriodInDaysHasBeenSet; }
39 inline void SetRetentionPeriodInDays(int64_t value) {
40 m_retentionPeriodInDaysHasBeenSet = true;
41 m_retentionPeriodInDays = value;
42 }
45 return *this;
46 }
48
50
54 inline const Aws::Utils::DateTime& GetRetentionWindowStartTime() const { return m_retentionWindowStartTime; }
55 inline bool RetentionWindowStartTimeHasBeenSet() const { return m_retentionWindowStartTimeHasBeenSet; }
56 template <typename RetentionWindowStartTimeT = Aws::Utils::DateTime>
57 void SetRetentionWindowStartTime(RetentionWindowStartTimeT&& value) {
58 m_retentionWindowStartTimeHasBeenSet = true;
59 m_retentionWindowStartTime = std::forward<RetentionWindowStartTimeT>(value);
60 }
61 template <typename RetentionWindowStartTimeT = Aws::Utils::DateTime>
62 StorageConfigurationOutput& WithRetentionWindowStartTime(RetentionWindowStartTimeT&& value) {
63 SetRetentionWindowStartTime(std::forward<RetentionWindowStartTimeT>(value));
64 return *this;
65 }
67 private:
68 int64_t m_retentionPeriodInDays{0};
69
70 Aws::Utils::DateTime m_retentionWindowStartTime{};
71 bool m_retentionPeriodInDaysHasBeenSet = false;
72 bool m_retentionWindowStartTimeHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace EventBridgeV2
77} // namespace Aws
AWS_EVENTBRIDGEV2_API StorageConfigurationOutput()=default
AWS_EVENTBRIDGEV2_API StorageConfigurationOutput & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_EVENTBRIDGEV2_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetRetentionWindowStartTime(RetentionWindowStartTimeT &&value)
StorageConfigurationOutput & WithRetentionPeriodInDays(int64_t value)
AWS_EVENTBRIDGEV2_API StorageConfigurationOutput(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
StorageConfigurationOutput & WithRetentionWindowStartTime(RetentionWindowStartTimeT &&value)