AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LifecyclePolicy.h
1
6#pragma once
7#include <aws/elasticfilesystem/EFS_EXPORTS.h>
8#include <aws/elasticfilesystem/model/TransitionToIARules.h>
9#include <aws/elasticfilesystem/model/TransitionToPrimaryStorageClassRules.h>
10#include <aws/elasticfilesystem/model/TransitionToArchiveRules.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 EFS
24{
25namespace Model
26{
27
44 {
45 public:
46 AWS_EFS_API LifecyclePolicy();
50
51
53
59 inline const TransitionToIARules& GetTransitionToIA() const{ return m_transitionToIA; }
60 inline bool TransitionToIAHasBeenSet() const { return m_transitionToIAHasBeenSet; }
61 inline void SetTransitionToIA(const TransitionToIARules& value) { m_transitionToIAHasBeenSet = true; m_transitionToIA = value; }
62 inline void SetTransitionToIA(TransitionToIARules&& value) { m_transitionToIAHasBeenSet = true; m_transitionToIA = std::move(value); }
63 inline LifecyclePolicy& WithTransitionToIA(const TransitionToIARules& value) { SetTransitionToIA(value); return *this;}
64 inline LifecyclePolicy& WithTransitionToIA(TransitionToIARules&& value) { SetTransitionToIA(std::move(value)); return *this;}
66
68
73 inline const TransitionToPrimaryStorageClassRules& GetTransitionToPrimaryStorageClass() const{ return m_transitionToPrimaryStorageClass; }
74 inline bool TransitionToPrimaryStorageClassHasBeenSet() const { return m_transitionToPrimaryStorageClassHasBeenSet; }
75 inline void SetTransitionToPrimaryStorageClass(const TransitionToPrimaryStorageClassRules& value) { m_transitionToPrimaryStorageClassHasBeenSet = true; m_transitionToPrimaryStorageClass = value; }
76 inline void SetTransitionToPrimaryStorageClass(TransitionToPrimaryStorageClassRules&& value) { m_transitionToPrimaryStorageClassHasBeenSet = true; m_transitionToPrimaryStorageClass = std::move(value); }
80
82
88 inline const TransitionToArchiveRules& GetTransitionToArchive() const{ return m_transitionToArchive; }
89 inline bool TransitionToArchiveHasBeenSet() const { return m_transitionToArchiveHasBeenSet; }
90 inline void SetTransitionToArchive(const TransitionToArchiveRules& value) { m_transitionToArchiveHasBeenSet = true; m_transitionToArchive = value; }
91 inline void SetTransitionToArchive(TransitionToArchiveRules&& value) { m_transitionToArchiveHasBeenSet = true; m_transitionToArchive = std::move(value); }
95 private:
96
97 TransitionToIARules m_transitionToIA;
98 bool m_transitionToIAHasBeenSet = false;
99
100 TransitionToPrimaryStorageClassRules m_transitionToPrimaryStorageClass;
101 bool m_transitionToPrimaryStorageClassHasBeenSet = false;
102
103 TransitionToArchiveRules m_transitionToArchive;
104 bool m_transitionToArchiveHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace EFS
109} // namespace Aws
void SetTransitionToIA(const TransitionToIARules &value)
void SetTransitionToPrimaryStorageClass(TransitionToPrimaryStorageClassRules &&value)
LifecyclePolicy & WithTransitionToArchive(const TransitionToArchiveRules &value)
const TransitionToPrimaryStorageClassRules & GetTransitionToPrimaryStorageClass() const
const TransitionToIARules & GetTransitionToIA() const
LifecyclePolicy & WithTransitionToPrimaryStorageClass(TransitionToPrimaryStorageClassRules &&value)
bool TransitionToPrimaryStorageClassHasBeenSet() const
const TransitionToArchiveRules & GetTransitionToArchive() const
AWS_EFS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTransitionToArchive(const TransitionToArchiveRules &value)
LifecyclePolicy & WithTransitionToIA(const TransitionToIARules &value)
void SetTransitionToIA(TransitionToIARules &&value)
AWS_EFS_API LifecyclePolicy(Aws::Utils::Json::JsonView jsonValue)
void SetTransitionToPrimaryStorageClass(const TransitionToPrimaryStorageClassRules &value)
LifecyclePolicy & WithTransitionToPrimaryStorageClass(const TransitionToPrimaryStorageClassRules &value)
LifecyclePolicy & WithTransitionToIA(TransitionToIARules &&value)
void SetTransitionToArchive(TransitionToArchiveRules &&value)
LifecyclePolicy & WithTransitionToArchive(TransitionToArchiveRules &&value)
AWS_EFS_API LifecyclePolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue