AWS SDK for C++

AWS SDK for C++ Version 1.11.868

Loading...
Searching...
No Matches
ApplicableTo.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/quicksight/QuickSight_EXPORTS.h>
10#include <aws/quicksight/model/ApplicableToType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace QuickSight {
22namespace Model {
23
31 public:
32 AWS_QUICKSIGHT_API ApplicableTo() = default;
33 AWS_QUICKSIGHT_API ApplicableTo(Aws::Utils::Json::JsonView jsonValue);
34 AWS_QUICKSIGHT_API ApplicableTo& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
45 inline ApplicableToType GetType() const { return m_type; }
46 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
47 inline void SetType(ApplicableToType value) {
48 m_typeHasBeenSet = true;
49 m_type = value;
50 }
52 SetType(value);
53 return *this;
54 }
56
58
62 inline const Aws::Vector<Aws::String>& GetGroupArns() const { return m_groupArns; }
63 inline bool GroupArnsHasBeenSet() const { return m_groupArnsHasBeenSet; }
64 template <typename GroupArnsT = Aws::Vector<Aws::String>>
65 void SetGroupArns(GroupArnsT&& value) {
66 m_groupArnsHasBeenSet = true;
67 m_groupArns = std::forward<GroupArnsT>(value);
68 }
69 template <typename GroupArnsT = Aws::Vector<Aws::String>>
70 ApplicableTo& WithGroupArns(GroupArnsT&& value) {
71 SetGroupArns(std::forward<GroupArnsT>(value));
72 return *this;
73 }
74 template <typename GroupArnsT = Aws::String>
75 ApplicableTo& AddGroupArns(GroupArnsT&& value) {
76 m_groupArnsHasBeenSet = true;
77 m_groupArns.emplace_back(std::forward<GroupArnsT>(value));
78 return *this;
79 }
81 private:
83
84 Aws::Vector<Aws::String> m_groupArns;
85 bool m_typeHasBeenSet = false;
86 bool m_groupArnsHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace QuickSight
91} // namespace Aws
ApplicableToType GetType() const
ApplicableTo & WithType(ApplicableToType value)
AWS_QUICKSIGHT_API ApplicableTo(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
ApplicableTo & AddGroupArns(GroupArnsT &&value)
void SetType(ApplicableToType value)
AWS_QUICKSIGHT_API ApplicableTo()=default
void SetGroupArns(GroupArnsT &&value)
const Aws::Vector< Aws::String > & GetGroupArns() const
ApplicableTo & WithGroupArns(GroupArnsT &&value)
AWS_QUICKSIGHT_API ApplicableTo & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue