AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
SubscriptionPrincipal.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/qbusiness/QBusiness_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace QBusiness {
20namespace Model {
21
29 public:
30 AWS_QBUSINESS_API SubscriptionPrincipal() = default;
33 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetUser() const { return m_user; }
41 inline bool UserHasBeenSet() const { return m_userHasBeenSet; }
42 template <typename UserT = Aws::String>
43 void SetUser(UserT&& value) {
44 m_userHasBeenSet = true;
45 m_user = std::forward<UserT>(value);
46 }
47 template <typename UserT = Aws::String>
49 SetUser(std::forward<UserT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetGroup() const { return m_group; }
60 inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; }
61 template <typename GroupT = Aws::String>
62 void SetGroup(GroupT&& value) {
63 m_groupHasBeenSet = true;
64 m_group = std::forward<GroupT>(value);
65 }
66 template <typename GroupT = Aws::String>
68 SetGroup(std::forward<GroupT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_user;
74 bool m_userHasBeenSet = false;
75
76 Aws::String m_group;
77 bool m_groupHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace QBusiness
82} // namespace Aws
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_QBUSINESS_API SubscriptionPrincipal()=default
SubscriptionPrincipal & WithUser(UserT &&value)
AWS_QBUSINESS_API SubscriptionPrincipal(Aws::Utils::Json::JsonView jsonValue)
AWS_QBUSINESS_API SubscriptionPrincipal & operator=(Aws::Utils::Json::JsonView jsonValue)
SubscriptionPrincipal & WithGroup(GroupT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue