AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RoleInfo.h
1
6#pragma once
7#include <aws/sso/SSO_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 SSO
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_SSO_API RoleInfo() = default;
36 AWS_SSO_API RoleInfo(Aws::Utils::Json::JsonView jsonValue);
39
40
42
45 inline const Aws::String& GetRoleName() const { return m_roleName; }
46 inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
47 template<typename RoleNameT = Aws::String>
48 void SetRoleName(RoleNameT&& value) { m_roleNameHasBeenSet = true; m_roleName = std::forward<RoleNameT>(value); }
49 template<typename RoleNameT = Aws::String>
50 RoleInfo& WithRoleName(RoleNameT&& value) { SetRoleName(std::forward<RoleNameT>(value)); return *this;}
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) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
61 template<typename AccountIdT = Aws::String>
62 RoleInfo& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
64 private:
65
66 Aws::String m_roleName;
67 bool m_roleNameHasBeenSet = false;
68
69 Aws::String m_accountId;
70 bool m_accountIdHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace SSO
75} // namespace Aws
RoleInfo & WithAccountId(AccountIdT &&value)
Definition RoleInfo.h:62
const Aws::String & GetRoleName() const
Definition RoleInfo.h:45
bool RoleNameHasBeenSet() const
Definition RoleInfo.h:46
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:48
AWS_SSO_API RoleInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
RoleInfo & WithRoleName(RoleNameT &&value)
Definition RoleInfo.h:50
bool AccountIdHasBeenSet() const
Definition RoleInfo.h:58
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue