AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SubscriptionPrincipal.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace QBusiness
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_QBUSINESS_API SubscriptionPrincipal() = default;
38 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetUser() const { return m_user; }
47 inline bool UserHasBeenSet() const { return m_userHasBeenSet; }
48 template<typename UserT = Aws::String>
49 void SetUser(UserT&& value) { m_userHasBeenSet = true; m_user = std::forward<UserT>(value); }
50 template<typename UserT = Aws::String>
51 SubscriptionPrincipal& WithUser(UserT&& value) { SetUser(std::forward<UserT>(value)); return *this;}
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) { m_groupHasBeenSet = true; m_group = std::forward<GroupT>(value); }
63 template<typename GroupT = Aws::String>
64 SubscriptionPrincipal& WithGroup(GroupT&& value) { SetGroup(std::forward<GroupT>(value)); return *this;}
66 private:
67
68 Aws::String m_user;
69 bool m_userHasBeenSet = false;
70
71 Aws::String m_group;
72 bool m_groupHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace QBusiness
77} // 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