AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
SnapshotJobResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/quicksight/QuickSight_EXPORTS.h>
9#include <aws/quicksight/model/AnonymousUserSnapshotJobResult.h>
10#include <aws/quicksight/model/RegisteredUserSnapshotJobResult.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
32 public:
33 AWS_QUICKSIGHT_API SnapshotJobResult() = default;
34 AWS_QUICKSIGHT_API SnapshotJobResult(Aws::Utils::Json::JsonView jsonValue);
36 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
44 inline const Aws::Vector<AnonymousUserSnapshotJobResult>& GetAnonymousUsers() const { return m_anonymousUsers; }
45 inline bool AnonymousUsersHasBeenSet() const { return m_anonymousUsersHasBeenSet; }
46 template <typename AnonymousUsersT = Aws::Vector<AnonymousUserSnapshotJobResult>>
47 void SetAnonymousUsers(AnonymousUsersT&& value) {
48 m_anonymousUsersHasBeenSet = true;
49 m_anonymousUsers = std::forward<AnonymousUsersT>(value);
50 }
51 template <typename AnonymousUsersT = Aws::Vector<AnonymousUserSnapshotJobResult>>
52 SnapshotJobResult& WithAnonymousUsers(AnonymousUsersT&& value) {
53 SetAnonymousUsers(std::forward<AnonymousUsersT>(value));
54 return *this;
55 }
56 template <typename AnonymousUsersT = AnonymousUserSnapshotJobResult>
57 SnapshotJobResult& AddAnonymousUsers(AnonymousUsersT&& value) {
58 m_anonymousUsersHasBeenSet = true;
59 m_anonymousUsers.emplace_back(std::forward<AnonymousUsersT>(value));
60 return *this;
61 }
63
65
70 inline const Aws::Vector<RegisteredUserSnapshotJobResult>& GetRegisteredUsers() const { return m_registeredUsers; }
71 inline bool RegisteredUsersHasBeenSet() const { return m_registeredUsersHasBeenSet; }
72 template <typename RegisteredUsersT = Aws::Vector<RegisteredUserSnapshotJobResult>>
73 void SetRegisteredUsers(RegisteredUsersT&& value) {
74 m_registeredUsersHasBeenSet = true;
75 m_registeredUsers = std::forward<RegisteredUsersT>(value);
76 }
77 template <typename RegisteredUsersT = Aws::Vector<RegisteredUserSnapshotJobResult>>
78 SnapshotJobResult& WithRegisteredUsers(RegisteredUsersT&& value) {
79 SetRegisteredUsers(std::forward<RegisteredUsersT>(value));
80 return *this;
81 }
82 template <typename RegisteredUsersT = RegisteredUserSnapshotJobResult>
83 SnapshotJobResult& AddRegisteredUsers(RegisteredUsersT&& value) {
84 m_registeredUsersHasBeenSet = true;
85 m_registeredUsers.emplace_back(std::forward<RegisteredUsersT>(value));
86 return *this;
87 }
89 private:
91
93 bool m_anonymousUsersHasBeenSet = false;
94 bool m_registeredUsersHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace QuickSight
99} // namespace Aws
SnapshotJobResult & WithRegisteredUsers(RegisteredUsersT &&value)
SnapshotJobResult & AddRegisteredUsers(RegisteredUsersT &&value)
AWS_QUICKSIGHT_API SnapshotJobResult & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< RegisteredUserSnapshotJobResult > & GetRegisteredUsers() const
SnapshotJobResult & WithAnonymousUsers(AnonymousUsersT &&value)
void SetAnonymousUsers(AnonymousUsersT &&value)
void SetRegisteredUsers(RegisteredUsersT &&value)
SnapshotJobResult & AddAnonymousUsers(AnonymousUsersT &&value)
AWS_QUICKSIGHT_API SnapshotJobResult(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< AnonymousUserSnapshotJobResult > & GetAnonymousUsers() const
AWS_QUICKSIGHT_API SnapshotJobResult()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue