AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
RoleInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sso/SSO_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SSO {
20namespace Model {
21
28class RoleInfo {
29 public:
30 AWS_SSO_API RoleInfo() = default;
31 AWS_SSO_API RoleInfo(Aws::Utils::Json::JsonView jsonValue);
34
36
39 inline const Aws::String& GetRoleName() const { return m_roleName; }
40 inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
41 template <typename RoleNameT = Aws::String>
42 void SetRoleName(RoleNameT&& value) {
43 m_roleNameHasBeenSet = true;
44 m_roleName = std::forward<RoleNameT>(value);
45 }
46 template <typename RoleNameT = Aws::String>
47 RoleInfo& WithRoleName(RoleNameT&& value) {
48 SetRoleName(std::forward<RoleNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetAccountId() const { return m_accountId; }
58 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
59 template <typename AccountIdT = Aws::String>
60 void SetAccountId(AccountIdT&& value) {
61 m_accountIdHasBeenSet = true;
62 m_accountId = std::forward<AccountIdT>(value);
63 }
64 template <typename AccountIdT = Aws::String>
65 RoleInfo& WithAccountId(AccountIdT&& value) {
66 SetAccountId(std::forward<AccountIdT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_roleName;
72
73 Aws::String m_accountId;
74 bool m_roleNameHasBeenSet = false;
75 bool m_accountIdHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace SSO
80} // namespace Aws
RoleInfo & WithAccountId(AccountIdT &&value)
Definition RoleInfo.h:65
const Aws::String & GetRoleName() const
Definition RoleInfo.h:39
bool RoleNameHasBeenSet() const
Definition RoleInfo.h:40
const Aws::String & GetAccountId() const
Definition RoleInfo.h:57
AWS_SSO_API RoleInfo(Aws::Utils::Json::JsonView jsonValue)
AWS_SSO_API RoleInfo()=default
void SetAccountId(AccountIdT &&value)
Definition RoleInfo.h:60
AWS_SSO_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRoleName(RoleNameT &&value)
Definition RoleInfo.h:42
AWS_SSO_API RoleInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
RoleInfo & WithRoleName(RoleNameT &&value)
Definition RoleInfo.h:47
bool AccountIdHasBeenSet() const
Definition RoleInfo.h:58
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue