AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
RuleScope.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/datazone/model/AssetTypesForRule.h>
9#include <aws/datazone/model/ProjectsForRule.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 DataZone
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_DATAZONE_API RuleScope() = default;
36 AWS_DATAZONE_API RuleScope(Aws::Utils::Json::JsonView jsonValue);
37 AWS_DATAZONE_API RuleScope& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const AssetTypesForRule& GetAssetType() const { return m_assetType; }
46 inline bool AssetTypeHasBeenSet() const { return m_assetTypeHasBeenSet; }
47 template<typename AssetTypeT = AssetTypesForRule>
48 void SetAssetType(AssetTypeT&& value) { m_assetTypeHasBeenSet = true; m_assetType = std::forward<AssetTypeT>(value); }
49 template<typename AssetTypeT = AssetTypesForRule>
50 RuleScope& WithAssetType(AssetTypeT&& value) { SetAssetType(std::forward<AssetTypeT>(value)); return *this;}
52
54
57 inline bool GetDataProduct() const { return m_dataProduct; }
58 inline bool DataProductHasBeenSet() const { return m_dataProductHasBeenSet; }
59 inline void SetDataProduct(bool value) { m_dataProductHasBeenSet = true; m_dataProduct = value; }
60 inline RuleScope& WithDataProduct(bool value) { SetDataProduct(value); return *this;}
62
64
67 inline const ProjectsForRule& GetProject() const { return m_project; }
68 inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; }
69 template<typename ProjectT = ProjectsForRule>
70 void SetProject(ProjectT&& value) { m_projectHasBeenSet = true; m_project = std::forward<ProjectT>(value); }
71 template<typename ProjectT = ProjectsForRule>
72 RuleScope& WithProject(ProjectT&& value) { SetProject(std::forward<ProjectT>(value)); return *this;}
74 private:
75
76 AssetTypesForRule m_assetType;
77 bool m_assetTypeHasBeenSet = false;
78
79 bool m_dataProduct{false};
80 bool m_dataProductHasBeenSet = false;
81
82 ProjectsForRule m_project;
83 bool m_projectHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace DataZone
88} // namespace Aws
const AssetTypesForRule & GetAssetType() const
Definition RuleScope.h:45
AWS_DATAZONE_API RuleScope(Aws::Utils::Json::JsonView jsonValue)
void SetProject(ProjectT &&value)
Definition RuleScope.h:70
const ProjectsForRule & GetProject() const
Definition RuleScope.h:67
RuleScope & WithDataProduct(bool value)
Definition RuleScope.h:60
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DATAZONE_API RuleScope & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAssetType(AssetTypeT &&value)
Definition RuleScope.h:48
RuleScope & WithAssetType(AssetTypeT &&value)
Definition RuleScope.h:50
AWS_DATAZONE_API RuleScope()=default
void SetDataProduct(bool value)
Definition RuleScope.h:59
RuleScope & WithProject(ProjectT &&value)
Definition RuleScope.h:72
Aws::Utils::Json::JsonValue JsonValue