AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAllUsersGrantFilter(const AllUsersGrantFilter& value) { m_allUsersGrantFilterHasBeenSet = true; m_allUsersGrantFilter = value; }
48 inline void SetAllUsersGrantFilter(AllUsersGrantFilter&& value) { m_allUsersGrantFilterHasBeenSet = true; m_allUsersGrantFilter = std::move(value); }
52
54
57 inline const Aws::String& GetUserIdentifier() const{ return m_userIdentifier; }
58 inline bool UserIdentifierHasBeenSet() const { return m_userIdentifierHasBeenSet; }
59 inline void SetUserIdentifier(const Aws::String& value) { m_userIdentifierHasBeenSet = true; m_userIdentifier = value; }
60 inline void SetUserIdentifier(Aws::String&& value) { m_userIdentifierHasBeenSet = true; m_userIdentifier = std::move(value); }
61 inline void SetUserIdentifier(const char* value) { m_userIdentifierHasBeenSet = true; m_userIdentifier.assign(value); }
62 inline UserPolicyGrantPrincipal& WithUserIdentifier(const Aws::String& value) { SetUserIdentifier(value); return *this;}
63 inline UserPolicyGrantPrincipal& WithUserIdentifier(Aws::String&& value) { SetUserIdentifier(std::move(value)); return *this;}
64 inline UserPolicyGrantPrincipal& WithUserIdentifier(const char* value) { SetUserIdentifier(value); return *this;}
66 private:
67
68 AllUsersGrantFilter m_allUsersGrantFilter;
69 bool m_allUsersGrantFilterHasBeenSet = false;
70
71 Aws::String m_userIdentifier;
72 bool m_userIdentifierHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace DataZone
77} // namespace Aws
UserPolicyGrantPrincipal & WithUserIdentifier(const char *value)
AWS_DATAZONE_API UserPolicyGrantPrincipal(Aws::Utils::Json::JsonView jsonValue)
const AllUsersGrantFilter & GetAllUsersGrantFilter() const
void SetAllUsersGrantFilter(const AllUsersGrantFilter &value)
UserPolicyGrantPrincipal & WithUserIdentifier(Aws::String &&value)
void SetAllUsersGrantFilter(AllUsersGrantFilter &&value)
UserPolicyGrantPrincipal & WithAllUsersGrantFilter(AllUsersGrantFilter &&value)
UserPolicyGrantPrincipal & WithUserIdentifier(const Aws::String &value)
AWS_DATAZONE_API UserPolicyGrantPrincipal & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
UserPolicyGrantPrincipal & WithAllUsersGrantFilter(const AllUsersGrantFilter &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue