AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LifecyclePolicyDetailAction.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/imagebuilder/model/LifecyclePolicyDetailActionType.h>
9#include <aws/imagebuilder/model/LifecyclePolicyDetailActionIncludeResources.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace imagebuilder
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_IMAGEBUILDER_API LifecyclePolicyDetailAction();
39 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const LifecyclePolicyDetailActionType& GetType() const{ return m_type; }
47 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
48 inline void SetType(const LifecyclePolicyDetailActionType& value) { m_typeHasBeenSet = true; m_type = value; }
49 inline void SetType(LifecyclePolicyDetailActionType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
50 inline LifecyclePolicyDetailAction& WithType(const LifecyclePolicyDetailActionType& value) { SetType(value); return *this;}
51 inline LifecyclePolicyDetailAction& WithType(LifecyclePolicyDetailActionType&& value) { SetType(std::move(value)); return *this;}
53
55
58 inline const LifecyclePolicyDetailActionIncludeResources& GetIncludeResources() const{ return m_includeResources; }
59 inline bool IncludeResourcesHasBeenSet() const { return m_includeResourcesHasBeenSet; }
60 inline void SetIncludeResources(const LifecyclePolicyDetailActionIncludeResources& value) { m_includeResourcesHasBeenSet = true; m_includeResources = value; }
61 inline void SetIncludeResources(LifecyclePolicyDetailActionIncludeResources&& value) { m_includeResourcesHasBeenSet = true; m_includeResources = std::move(value); }
65 private:
66
68 bool m_typeHasBeenSet = false;
69
71 bool m_includeResourcesHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace imagebuilder
76} // namespace Aws
LifecyclePolicyDetailAction & WithIncludeResources(const LifecyclePolicyDetailActionIncludeResources &value)
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetIncludeResources(const LifecyclePolicyDetailActionIncludeResources &value)
LifecyclePolicyDetailAction & WithIncludeResources(LifecyclePolicyDetailActionIncludeResources &&value)
void SetIncludeResources(LifecyclePolicyDetailActionIncludeResources &&value)
void SetType(LifecyclePolicyDetailActionType &&value)
LifecyclePolicyDetailAction & WithType(LifecyclePolicyDetailActionType &&value)
void SetType(const LifecyclePolicyDetailActionType &value)
AWS_IMAGEBUILDER_API LifecyclePolicyDetailAction(Aws::Utils::Json::JsonView jsonValue)
AWS_IMAGEBUILDER_API LifecyclePolicyDetailAction & operator=(Aws::Utils::Json::JsonView jsonValue)
const LifecyclePolicyDetailActionType & GetType() const
const LifecyclePolicyDetailActionIncludeResources & GetIncludeResources() const
LifecyclePolicyDetailAction & WithType(const LifecyclePolicyDetailActionType &value)
Aws::Utils::Json::JsonValue JsonValue