AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LifecyclePolicyDetail.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/imagebuilder/model/LifecyclePolicyDetailAction.h>
9#include <aws/imagebuilder/model/LifecyclePolicyDetailFilter.h>
10#include <aws/imagebuilder/model/LifecyclePolicyDetailExclusionRules.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 imagebuilder
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_IMAGEBUILDER_API LifecyclePolicyDetail();
38 AWS_IMAGEBUILDER_API LifecyclePolicyDetail(Aws::Utils::Json::JsonView jsonValue);
40 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const LifecyclePolicyDetailAction& GetAction() const{ return m_action; }
48 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
49 inline void SetAction(const LifecyclePolicyDetailAction& value) { m_actionHasBeenSet = true; m_action = value; }
50 inline void SetAction(LifecyclePolicyDetailAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
51 inline LifecyclePolicyDetail& WithAction(const LifecyclePolicyDetailAction& value) { SetAction(value); return *this;}
52 inline LifecyclePolicyDetail& WithAction(LifecyclePolicyDetailAction&& value) { SetAction(std::move(value)); return *this;}
54
56
59 inline const LifecyclePolicyDetailFilter& GetFilter() const{ return m_filter; }
60 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
61 inline void SetFilter(const LifecyclePolicyDetailFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
62 inline void SetFilter(LifecyclePolicyDetailFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
63 inline LifecyclePolicyDetail& WithFilter(const LifecyclePolicyDetailFilter& value) { SetFilter(value); return *this;}
64 inline LifecyclePolicyDetail& WithFilter(LifecyclePolicyDetailFilter&& value) { SetFilter(std::move(value)); return *this;}
66
68
72 inline const LifecyclePolicyDetailExclusionRules& GetExclusionRules() const{ return m_exclusionRules; }
73 inline bool ExclusionRulesHasBeenSet() const { return m_exclusionRulesHasBeenSet; }
74 inline void SetExclusionRules(const LifecyclePolicyDetailExclusionRules& value) { m_exclusionRulesHasBeenSet = true; m_exclusionRules = value; }
75 inline void SetExclusionRules(LifecyclePolicyDetailExclusionRules&& value) { m_exclusionRulesHasBeenSet = true; m_exclusionRules = std::move(value); }
79 private:
80
82 bool m_actionHasBeenSet = false;
83
85 bool m_filterHasBeenSet = false;
86
88 bool m_exclusionRulesHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace imagebuilder
93} // namespace Aws
const LifecyclePolicyDetailAction & GetAction() const
void SetFilter(LifecyclePolicyDetailFilter &&value)
LifecyclePolicyDetail & WithExclusionRules(LifecyclePolicyDetailExclusionRules &&value)
void SetAction(LifecyclePolicyDetailAction &&value)
void SetAction(const LifecyclePolicyDetailAction &value)
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetFilter(const LifecyclePolicyDetailFilter &value)
void SetExclusionRules(const LifecyclePolicyDetailExclusionRules &value)
LifecyclePolicyDetail & WithAction(const LifecyclePolicyDetailAction &value)
LifecyclePolicyDetail & WithExclusionRules(const LifecyclePolicyDetailExclusionRules &value)
AWS_IMAGEBUILDER_API LifecyclePolicyDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
LifecyclePolicyDetail & WithFilter(LifecyclePolicyDetailFilter &&value)
AWS_IMAGEBUILDER_API LifecyclePolicyDetail(Aws::Utils::Json::JsonView jsonValue)
void SetExclusionRules(LifecyclePolicyDetailExclusionRules &&value)
const LifecyclePolicyDetailFilter & GetFilter() const
LifecyclePolicyDetail & WithAction(LifecyclePolicyDetailAction &&value)
const LifecyclePolicyDetailExclusionRules & GetExclusionRules() const
LifecyclePolicyDetail & WithFilter(const LifecyclePolicyDetailFilter &value)
Aws::Utils::Json::JsonValue JsonValue