AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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