AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetRoleName(const Aws::String& value) { m_roleNameHasBeenSet = true; m_roleName = value; }
48 inline void SetRoleName(Aws::String&& value) { m_roleNameHasBeenSet = true; m_roleName = std::move(value); }
49 inline void SetRoleName(const char* value) { m_roleNameHasBeenSet = true; m_roleName.assign(value); }
50 inline RoleInfo& WithRoleName(const Aws::String& value) { SetRoleName(value); return *this;}
51 inline RoleInfo& WithRoleName(Aws::String&& value) { SetRoleName(std::move(value)); return *this;}
52 inline RoleInfo& WithRoleName(const char* value) { SetRoleName(value); return *this;}
54
56
59 inline const Aws::String& GetAccountId() const{ return m_accountId; }
60 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
61 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
62 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
63 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
64 inline RoleInfo& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
65 inline RoleInfo& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
66 inline RoleInfo& WithAccountId(const char* value) { SetAccountId(value); return *this;}
68 private:
69
70 Aws::String m_roleName;
71 bool m_roleNameHasBeenSet = false;
72
73 Aws::String m_accountId;
74 bool m_accountIdHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace SSO
79} // namespace Aws
RoleInfo & WithRoleName(Aws::String &&value)
Definition RoleInfo.h:51
const Aws::String & GetRoleName() const
Definition RoleInfo.h:45
RoleInfo & WithAccountId(const char *value)
Definition RoleInfo.h:66
bool RoleNameHasBeenSet() const
Definition RoleInfo.h:46
const Aws::String & GetAccountId() const
Definition RoleInfo.h:59
void SetAccountId(const Aws::String &value)
Definition RoleInfo.h:61
AWS_SSO_API RoleInfo(Aws::Utils::Json::JsonView jsonValue)
RoleInfo & WithRoleName(const char *value)
Definition RoleInfo.h:52
void SetAccountId(const char *value)
Definition RoleInfo.h:63
RoleInfo & WithAccountId(Aws::String &&value)
Definition RoleInfo.h:65
void SetRoleName(const Aws::String &value)
Definition RoleInfo.h:47
RoleInfo & WithAccountId(const Aws::String &value)
Definition RoleInfo.h:64
void SetRoleName(Aws::String &&value)
Definition RoleInfo.h:48
RoleInfo & WithRoleName(const Aws::String &value)
Definition RoleInfo.h:50
void SetRoleName(const char *value)
Definition RoleInfo.h:49
void SetAccountId(Aws::String &&value)
Definition RoleInfo.h:62
AWS_SSO_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SSO_API RoleInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
bool AccountIdHasBeenSet() const
Definition RoleInfo.h:60
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue