AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
UserPolicyGrantPrincipal.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/datazone/DataZone_EXPORTS.h>
9#include <aws/datazone/model/AllUsersGrantFilter.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DataZone {
21namespace Model {
22
29 public:
30 AWS_DATAZONE_API UserPolicyGrantPrincipal() = default;
33 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetUserIdentifier() const { return m_userIdentifier; }
40 inline bool UserIdentifierHasBeenSet() const { return m_userIdentifierHasBeenSet; }
41 template <typename UserIdentifierT = Aws::String>
42 void SetUserIdentifier(UserIdentifierT&& value) {
43 m_userIdentifierHasBeenSet = true;
44 m_userIdentifier = std::forward<UserIdentifierT>(value);
45 }
46 template <typename UserIdentifierT = Aws::String>
47 UserPolicyGrantPrincipal& WithUserIdentifier(UserIdentifierT&& value) {
48 SetUserIdentifier(std::forward<UserIdentifierT>(value));
49 return *this;
50 }
52
54
57 inline const AllUsersGrantFilter& GetAllUsersGrantFilter() const { return m_allUsersGrantFilter; }
58 inline bool AllUsersGrantFilterHasBeenSet() const { return m_allUsersGrantFilterHasBeenSet; }
59 template <typename AllUsersGrantFilterT = AllUsersGrantFilter>
60 void SetAllUsersGrantFilter(AllUsersGrantFilterT&& value) {
61 m_allUsersGrantFilterHasBeenSet = true;
62 m_allUsersGrantFilter = std::forward<AllUsersGrantFilterT>(value);
63 }
64 template <typename AllUsersGrantFilterT = AllUsersGrantFilter>
65 UserPolicyGrantPrincipal& WithAllUsersGrantFilter(AllUsersGrantFilterT&& value) {
66 SetAllUsersGrantFilter(std::forward<AllUsersGrantFilterT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_userIdentifier;
72
73 AllUsersGrantFilter m_allUsersGrantFilter;
74 bool m_userIdentifierHasBeenSet = false;
75 bool m_allUsersGrantFilterHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace DataZone
80} // namespace Aws
AWS_DATAZONE_API UserPolicyGrantPrincipal(Aws::Utils::Json::JsonView jsonValue)
const AllUsersGrantFilter & GetAllUsersGrantFilter() const
UserPolicyGrantPrincipal & WithUserIdentifier(UserIdentifierT &&value)
AWS_DATAZONE_API UserPolicyGrantPrincipal()=default
UserPolicyGrantPrincipal & WithAllUsersGrantFilter(AllUsersGrantFilterT &&value)
void SetAllUsersGrantFilter(AllUsersGrantFilterT &&value)
AWS_DATAZONE_API UserPolicyGrantPrincipal & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue