AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
ProjectsForRule.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/datazone/DataZone_EXPORTS.h>
10#include <aws/datazone/model/RuleScopeSelectionMode.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DataZone {
22namespace Model {
23
31 public:
32 AWS_DATAZONE_API ProjectsForRule() = default;
33 AWS_DATAZONE_API ProjectsForRule(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline RuleScopeSelectionMode GetSelectionMode() const { return m_selectionMode; }
42 inline bool SelectionModeHasBeenSet() const { return m_selectionModeHasBeenSet; }
44 m_selectionModeHasBeenSet = true;
45 m_selectionMode = value;
46 }
48 SetSelectionMode(value);
49 return *this;
50 }
52
54
57 inline const Aws::Vector<Aws::String>& GetSpecificProjects() const { return m_specificProjects; }
58 inline bool SpecificProjectsHasBeenSet() const { return m_specificProjectsHasBeenSet; }
59 template <typename SpecificProjectsT = Aws::Vector<Aws::String>>
60 void SetSpecificProjects(SpecificProjectsT&& value) {
61 m_specificProjectsHasBeenSet = true;
62 m_specificProjects = std::forward<SpecificProjectsT>(value);
63 }
64 template <typename SpecificProjectsT = Aws::Vector<Aws::String>>
65 ProjectsForRule& WithSpecificProjects(SpecificProjectsT&& value) {
66 SetSpecificProjects(std::forward<SpecificProjectsT>(value));
67 return *this;
68 }
69 template <typename SpecificProjectsT = Aws::String>
70 ProjectsForRule& AddSpecificProjects(SpecificProjectsT&& value) {
71 m_specificProjectsHasBeenSet = true;
72 m_specificProjects.emplace_back(std::forward<SpecificProjectsT>(value));
73 return *this;
74 }
76 private:
78
79 Aws::Vector<Aws::String> m_specificProjects;
80 bool m_selectionModeHasBeenSet = false;
81 bool m_specificProjectsHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace DataZone
86} // namespace Aws
ProjectsForRule & WithSelectionMode(RuleScopeSelectionMode value)
RuleScopeSelectionMode GetSelectionMode() const
const Aws::Vector< Aws::String > & GetSpecificProjects() const
void SetSpecificProjects(SpecificProjectsT &&value)
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DATAZONE_API ProjectsForRule(Aws::Utils::Json::JsonView jsonValue)
void SetSelectionMode(RuleScopeSelectionMode value)
ProjectsForRule & AddSpecificProjects(SpecificProjectsT &&value)
AWS_DATAZONE_API ProjectsForRule()=default
ProjectsForRule & WithSpecificProjects(SpecificProjectsT &&value)
AWS_DATAZONE_API ProjectsForRule & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue