AWS SDK for C++

AWS SDK for C++ Version 1.11.937

Loading...
Searching...
No Matches
BackupRetentionPolicy.h
1
6#pragma once
7#include <aws/cloudhsmv2/CloudHSMV2_EXPORTS.h>
8#include <aws/cloudhsmv2/model/BackupRetentionType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/crt/cbor/Cbor.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace CloudHSMV2 {
21namespace Model {
22
30 public:
31 AWS_CLOUDHSMV2_API BackupRetentionPolicy() = default;
32 AWS_CLOUDHSMV2_API BackupRetentionPolicy(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_CLOUDHSMV2_API BackupRetentionPolicy& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_CLOUDHSMV2_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
41 inline BackupRetentionType GetType() const { return m_type; }
42 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
43 inline void SetType(BackupRetentionType value) {
44 m_typeHasBeenSet = true;
45 m_type = value;
46 }
48 SetType(value);
49 return *this;
50 }
52
54
57 inline const Aws::String& GetValue() const { return m_value; }
58 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
59 template <typename ValueT = Aws::String>
60 void SetValue(ValueT&& value) {
61 m_valueHasBeenSet = true;
62 m_value = std::forward<ValueT>(value);
63 }
64 template <typename ValueT = Aws::String>
66 SetValue(std::forward<ValueT>(value));
67 return *this;
68 }
70 private:
72
73 Aws::String m_value;
74 bool m_typeHasBeenSet = false;
75 bool m_valueHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace CloudHSMV2
80} // namespace Aws
BackupRetentionPolicy & WithValue(ValueT &&value)
AWS_CLOUDHSMV2_API BackupRetentionPolicy()=default
AWS_CLOUDHSMV2_API BackupRetentionPolicy & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CLOUDHSMV2_API BackupRetentionPolicy(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CLOUDHSMV2_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
BackupRetentionPolicy & WithType(BackupRetentionType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String