AWS SDK for C++

AWS SDK for C++ Version 1.11.937

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/supportauthz/SupportAuthZ_EXPORTS.h>
10#include <aws/supportauthz/model/Unit.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SupportAuthZ {
22namespace Model {
23
31 public:
32 AWS_SUPPORTAUTHZ_API ResourceSet() = default;
33 AWS_SUPPORTAUTHZ_API ResourceSet(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SUPPORTAUTHZ_API ResourceSet& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SUPPORTAUTHZ_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Unit& GetAllResourcesInRegion() const { return m_allResourcesInRegion; }
42 inline bool AllResourcesInRegionHasBeenSet() const { return m_allResourcesInRegionHasBeenSet; }
43 template <typename AllResourcesInRegionT = Unit>
44 void SetAllResourcesInRegion(AllResourcesInRegionT&& value) {
45 m_allResourcesInRegionHasBeenSet = true;
46 m_allResourcesInRegion = std::forward<AllResourcesInRegionT>(value);
47 }
48 template <typename AllResourcesInRegionT = Unit>
49 ResourceSet& WithAllResourcesInRegion(AllResourcesInRegionT&& value) {
50 SetAllResourcesInRegion(std::forward<AllResourcesInRegionT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::Vector<Aws::String>& GetResources() const { return m_resources; }
61 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
62 template <typename ResourcesT = Aws::Vector<Aws::String>>
63 void SetResources(ResourcesT&& value) {
64 m_resourcesHasBeenSet = true;
65 m_resources = std::forward<ResourcesT>(value);
66 }
67 template <typename ResourcesT = Aws::Vector<Aws::String>>
68 ResourceSet& WithResources(ResourcesT&& value) {
69 SetResources(std::forward<ResourcesT>(value));
70 return *this;
71 }
72 template <typename ResourcesT = Aws::String>
73 ResourceSet& AddResources(ResourcesT&& value) {
74 m_resourcesHasBeenSet = true;
75 m_resources.emplace_back(std::forward<ResourcesT>(value));
76 return *this;
77 }
79 private:
80 Unit m_allResourcesInRegion;
81
82 Aws::Vector<Aws::String> m_resources;
83 bool m_allResourcesInRegionHasBeenSet = false;
84 bool m_resourcesHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace SupportAuthZ
89} // namespace Aws
AWS_SUPPORTAUTHZ_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAllResourcesInRegion(AllResourcesInRegionT &&value)
Definition ResourceSet.h:44
ResourceSet & WithResources(ResourcesT &&value)
Definition ResourceSet.h:68
AWS_SUPPORTAUTHZ_API ResourceSet & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceSet & WithAllResourcesInRegion(AllResourcesInRegionT &&value)
Definition ResourceSet.h:49
AWS_SUPPORTAUTHZ_API ResourceSet(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetResources() const
Definition ResourceSet.h:60
AWS_SUPPORTAUTHZ_API ResourceSet()=default
ResourceSet & AddResources(ResourcesT &&value)
Definition ResourceSet.h:73
const Unit & GetAllResourcesInRegion() const
Definition ResourceSet.h:41
void SetResources(ResourcesT &&value)
Definition ResourceSet.h:63
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue