AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ApplicationAssignmentForPrincipal.h
1
6#pragma once
7#include <aws/sso-admin/SSOAdmin_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sso-admin/model/PrincipalType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SSOAdmin
23{
24namespace Model
25{
26
34 {
35 public:
39 AWS_SSOADMIN_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetApplicationArn() const{ return m_applicationArn; }
47 inline bool ApplicationArnHasBeenSet() const { return m_applicationArnHasBeenSet; }
48 inline void SetApplicationArn(const Aws::String& value) { m_applicationArnHasBeenSet = true; m_applicationArn = value; }
49 inline void SetApplicationArn(Aws::String&& value) { m_applicationArnHasBeenSet = true; m_applicationArn = std::move(value); }
50 inline void SetApplicationArn(const char* value) { m_applicationArnHasBeenSet = true; m_applicationArn.assign(value); }
52 inline ApplicationAssignmentForPrincipal& WithApplicationArn(Aws::String&& value) { SetApplicationArn(std::move(value)); return *this;}
53 inline ApplicationAssignmentForPrincipal& WithApplicationArn(const char* value) { SetApplicationArn(value); return *this;}
55
57
60 inline const Aws::String& GetPrincipalId() const{ return m_principalId; }
61 inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
62 inline void SetPrincipalId(const Aws::String& value) { m_principalIdHasBeenSet = true; m_principalId = value; }
63 inline void SetPrincipalId(Aws::String&& value) { m_principalIdHasBeenSet = true; m_principalId = std::move(value); }
64 inline void SetPrincipalId(const char* value) { m_principalIdHasBeenSet = true; m_principalId.assign(value); }
65 inline ApplicationAssignmentForPrincipal& WithPrincipalId(const Aws::String& value) { SetPrincipalId(value); return *this;}
66 inline ApplicationAssignmentForPrincipal& WithPrincipalId(Aws::String&& value) { SetPrincipalId(std::move(value)); return *this;}
67 inline ApplicationAssignmentForPrincipal& WithPrincipalId(const char* value) { SetPrincipalId(value); return *this;}
69
71
74 inline const PrincipalType& GetPrincipalType() const{ return m_principalType; }
75 inline bool PrincipalTypeHasBeenSet() const { return m_principalTypeHasBeenSet; }
76 inline void SetPrincipalType(const PrincipalType& value) { m_principalTypeHasBeenSet = true; m_principalType = value; }
77 inline void SetPrincipalType(PrincipalType&& value) { m_principalTypeHasBeenSet = true; m_principalType = std::move(value); }
79 inline ApplicationAssignmentForPrincipal& WithPrincipalType(PrincipalType&& value) { SetPrincipalType(std::move(value)); return *this;}
81 private:
82
83 Aws::String m_applicationArn;
84 bool m_applicationArnHasBeenSet = false;
85
86 Aws::String m_principalId;
87 bool m_principalIdHasBeenSet = false;
88
89 PrincipalType m_principalType;
90 bool m_principalTypeHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace SSOAdmin
95} // namespace Aws
ApplicationAssignmentForPrincipal & WithPrincipalId(const char *value)
AWS_SSOADMIN_API ApplicationAssignmentForPrincipal & operator=(Aws::Utils::Json::JsonView jsonValue)
ApplicationAssignmentForPrincipal & WithApplicationArn(Aws::String &&value)
ApplicationAssignmentForPrincipal & WithApplicationArn(const char *value)
ApplicationAssignmentForPrincipal & WithPrincipalType(const PrincipalType &value)
ApplicationAssignmentForPrincipal & WithPrincipalType(PrincipalType &&value)
AWS_SSOADMIN_API ApplicationAssignmentForPrincipal(Aws::Utils::Json::JsonView jsonValue)
ApplicationAssignmentForPrincipal & WithPrincipalId(Aws::String &&value)
ApplicationAssignmentForPrincipal & WithApplicationArn(const Aws::String &value)
ApplicationAssignmentForPrincipal & WithPrincipalId(const Aws::String &value)
AWS_SSOADMIN_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue