AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
ResourceSet.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/network-security-manager/NetworkSecurityManager_EXPORTS.h>
10#include <aws/network-security-manager/model/ResourceLogicalExpression.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace NetworkSecurityManager {
22namespace Model {
23
31 public:
32 AWS_NETWORKSECURITYMANAGER_API ResourceSet() = default;
33 AWS_NETWORKSECURITYMANAGER_API ResourceSet(Aws::Utils::Json::JsonView jsonValue);
34 AWS_NETWORKSECURITYMANAGER_API ResourceSet& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_NETWORKSECURITYMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::Vector<Aws::String>& GetExplicitArns() const { return m_explicitArns; }
42 inline bool ExplicitArnsHasBeenSet() const { return m_explicitArnsHasBeenSet; }
43 template <typename ExplicitArnsT = Aws::Vector<Aws::String>>
44 void SetExplicitArns(ExplicitArnsT&& value) {
45 m_explicitArnsHasBeenSet = true;
46 m_explicitArns = std::forward<ExplicitArnsT>(value);
47 }
48 template <typename ExplicitArnsT = Aws::Vector<Aws::String>>
49 ResourceSet& WithExplicitArns(ExplicitArnsT&& value) {
50 SetExplicitArns(std::forward<ExplicitArnsT>(value));
51 return *this;
52 }
53 template <typename ExplicitArnsT = Aws::String>
54 ResourceSet& AddExplicitArns(ExplicitArnsT&& value) {
55 m_explicitArnsHasBeenSet = true;
56 m_explicitArns.emplace_back(std::forward<ExplicitArnsT>(value));
57 return *this;
58 }
60
62
66 inline const ResourceLogicalExpression& GetExpression() const { return m_expression; }
67 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
68 template <typename ExpressionT = ResourceLogicalExpression>
69 void SetExpression(ExpressionT&& value) {
70 m_expressionHasBeenSet = true;
71 m_expression = std::forward<ExpressionT>(value);
72 }
73 template <typename ExpressionT = ResourceLogicalExpression>
74 ResourceSet& WithExpression(ExpressionT&& value) {
75 SetExpression(std::forward<ExpressionT>(value));
76 return *this;
77 }
79 private:
80 Aws::Vector<Aws::String> m_explicitArns;
81
82 ResourceLogicalExpression m_expression;
83 bool m_explicitArnsHasBeenSet = false;
84 bool m_expressionHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace NetworkSecurityManager
89} // namespace Aws
const Aws::Vector< Aws::String > & GetExplicitArns() const
Definition ResourceSet.h:41
AWS_NETWORKSECURITYMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NETWORKSECURITYMANAGER_API ResourceSet()=default
AWS_NETWORKSECURITYMANAGER_API ResourceSet & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetExplicitArns(ExplicitArnsT &&value)
Definition ResourceSet.h:44
const ResourceLogicalExpression & GetExpression() const
Definition ResourceSet.h:66
ResourceSet & WithExplicitArns(ExplicitArnsT &&value)
Definition ResourceSet.h:49
AWS_NETWORKSECURITYMANAGER_API ResourceSet(Aws::Utils::Json::JsonView jsonValue)
ResourceSet & WithExpression(ExpressionT &&value)
Definition ResourceSet.h:74
ResourceSet & AddExplicitArns(ExplicitArnsT &&value)
Definition ResourceSet.h:54
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue