AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
SubjectStructure.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/neptunedata/Neptunedata_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace neptunedata {
21namespace Model {
22
29 public:
30 AWS_NEPTUNEDATA_API SubjectStructure() = default;
31 AWS_NEPTUNEDATA_API SubjectStructure(Aws::Utils::Json::JsonView jsonValue);
32 AWS_NEPTUNEDATA_API SubjectStructure& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_NEPTUNEDATA_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline long long GetCount() const { return m_count; }
40 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
41 inline void SetCount(long long value) {
42 m_countHasBeenSet = true;
43 m_count = value;
44 }
45 inline SubjectStructure& WithCount(long long value) {
46 SetCount(value);
47 return *this;
48 }
50
52
55 inline const Aws::Vector<Aws::String>& GetPredicates() const { return m_predicates; }
56 inline bool PredicatesHasBeenSet() const { return m_predicatesHasBeenSet; }
57 template <typename PredicatesT = Aws::Vector<Aws::String>>
58 void SetPredicates(PredicatesT&& value) {
59 m_predicatesHasBeenSet = true;
60 m_predicates = std::forward<PredicatesT>(value);
61 }
62 template <typename PredicatesT = Aws::Vector<Aws::String>>
63 SubjectStructure& WithPredicates(PredicatesT&& value) {
64 SetPredicates(std::forward<PredicatesT>(value));
65 return *this;
66 }
67 template <typename PredicatesT = Aws::String>
68 SubjectStructure& AddPredicates(PredicatesT&& value) {
69 m_predicatesHasBeenSet = true;
70 m_predicates.emplace_back(std::forward<PredicatesT>(value));
71 return *this;
72 }
74 private:
75 long long m_count{0};
76
77 Aws::Vector<Aws::String> m_predicates;
78 bool m_countHasBeenSet = false;
79 bool m_predicatesHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace neptunedata
84} // namespace Aws
AWS_NEPTUNEDATA_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NEPTUNEDATA_API SubjectStructure()=default
SubjectStructure & AddPredicates(PredicatesT &&value)
SubjectStructure & WithCount(long long value)
const Aws::Vector< Aws::String > & GetPredicates() const
SubjectStructure & WithPredicates(PredicatesT &&value)
AWS_NEPTUNEDATA_API SubjectStructure(Aws::Utils::Json::JsonView jsonValue)
AWS_NEPTUNEDATA_API SubjectStructure & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue