AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UserContext.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker/model/IamIdentity.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 SageMaker
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_SAGEMAKER_API UserContext();
38 AWS_SAGEMAKER_API UserContext(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SAGEMAKER_API UserContext& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetUserProfileArn() const{ return m_userProfileArn; }
48 inline bool UserProfileArnHasBeenSet() const { return m_userProfileArnHasBeenSet; }
49 inline void SetUserProfileArn(const Aws::String& value) { m_userProfileArnHasBeenSet = true; m_userProfileArn = value; }
50 inline void SetUserProfileArn(Aws::String&& value) { m_userProfileArnHasBeenSet = true; m_userProfileArn = std::move(value); }
51 inline void SetUserProfileArn(const char* value) { m_userProfileArnHasBeenSet = true; m_userProfileArn.assign(value); }
52 inline UserContext& WithUserProfileArn(const Aws::String& value) { SetUserProfileArn(value); return *this;}
53 inline UserContext& WithUserProfileArn(Aws::String&& value) { SetUserProfileArn(std::move(value)); return *this;}
54 inline UserContext& WithUserProfileArn(const char* value) { SetUserProfileArn(value); return *this;}
56
58
61 inline const Aws::String& GetUserProfileName() const{ return m_userProfileName; }
62 inline bool UserProfileNameHasBeenSet() const { return m_userProfileNameHasBeenSet; }
63 inline void SetUserProfileName(const Aws::String& value) { m_userProfileNameHasBeenSet = true; m_userProfileName = value; }
64 inline void SetUserProfileName(Aws::String&& value) { m_userProfileNameHasBeenSet = true; m_userProfileName = std::move(value); }
65 inline void SetUserProfileName(const char* value) { m_userProfileNameHasBeenSet = true; m_userProfileName.assign(value); }
66 inline UserContext& WithUserProfileName(const Aws::String& value) { SetUserProfileName(value); return *this;}
67 inline UserContext& WithUserProfileName(Aws::String&& value) { SetUserProfileName(std::move(value)); return *this;}
68 inline UserContext& WithUserProfileName(const char* value) { SetUserProfileName(value); return *this;}
70
72
75 inline const Aws::String& GetDomainId() const{ return m_domainId; }
76 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
77 inline void SetDomainId(const Aws::String& value) { m_domainIdHasBeenSet = true; m_domainId = value; }
78 inline void SetDomainId(Aws::String&& value) { m_domainIdHasBeenSet = true; m_domainId = std::move(value); }
79 inline void SetDomainId(const char* value) { m_domainIdHasBeenSet = true; m_domainId.assign(value); }
80 inline UserContext& WithDomainId(const Aws::String& value) { SetDomainId(value); return *this;}
81 inline UserContext& WithDomainId(Aws::String&& value) { SetDomainId(std::move(value)); return *this;}
82 inline UserContext& WithDomainId(const char* value) { SetDomainId(value); return *this;}
84
86
91 inline const IamIdentity& GetIamIdentity() const{ return m_iamIdentity; }
92 inline bool IamIdentityHasBeenSet() const { return m_iamIdentityHasBeenSet; }
93 inline void SetIamIdentity(const IamIdentity& value) { m_iamIdentityHasBeenSet = true; m_iamIdentity = value; }
94 inline void SetIamIdentity(IamIdentity&& value) { m_iamIdentityHasBeenSet = true; m_iamIdentity = std::move(value); }
95 inline UserContext& WithIamIdentity(const IamIdentity& value) { SetIamIdentity(value); return *this;}
96 inline UserContext& WithIamIdentity(IamIdentity&& value) { SetIamIdentity(std::move(value)); return *this;}
98 private:
99
100 Aws::String m_userProfileArn;
101 bool m_userProfileArnHasBeenSet = false;
102
103 Aws::String m_userProfileName;
104 bool m_userProfileNameHasBeenSet = false;
105
106 Aws::String m_domainId;
107 bool m_domainIdHasBeenSet = false;
108
109 IamIdentity m_iamIdentity;
110 bool m_iamIdentityHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace SageMaker
115} // namespace Aws
void SetUserProfileName(const char *value)
Definition UserContext.h:65
UserContext & WithUserProfileArn(Aws::String &&value)
Definition UserContext.h:53
const IamIdentity & GetIamIdentity() const
Definition UserContext.h:91
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
UserContext & WithUserProfileName(const char *value)
Definition UserContext.h:68
AWS_SAGEMAKER_API UserContext & operator=(Aws::Utils::Json::JsonView jsonValue)
UserContext & WithDomainId(const Aws::String &value)
Definition UserContext.h:80
const Aws::String & GetDomainId() const
Definition UserContext.h:75
UserContext & WithIamIdentity(IamIdentity &&value)
Definition UserContext.h:96
void SetUserProfileArn(Aws::String &&value)
Definition UserContext.h:50
UserContext & WithUserProfileArn(const Aws::String &value)
Definition UserContext.h:52
const Aws::String & GetUserProfileName() const
Definition UserContext.h:61
UserContext & WithUserProfileName(Aws::String &&value)
Definition UserContext.h:67
const Aws::String & GetUserProfileArn() const
Definition UserContext.h:47
UserContext & WithDomainId(Aws::String &&value)
Definition UserContext.h:81
void SetDomainId(const Aws::String &value)
Definition UserContext.h:77
AWS_SAGEMAKER_API UserContext(Aws::Utils::Json::JsonView jsonValue)
UserContext & WithDomainId(const char *value)
Definition UserContext.h:82
void SetIamIdentity(IamIdentity &&value)
Definition UserContext.h:94
void SetIamIdentity(const IamIdentity &value)
Definition UserContext.h:93
UserContext & WithUserProfileArn(const char *value)
Definition UserContext.h:54
void SetUserProfileName(const Aws::String &value)
Definition UserContext.h:63
UserContext & WithUserProfileName(const Aws::String &value)
Definition UserContext.h:66
void SetUserProfileArn(const char *value)
Definition UserContext.h:51
void SetUserProfileName(Aws::String &&value)
Definition UserContext.h:64
void SetDomainId(const char *value)
Definition UserContext.h:79
UserContext & WithIamIdentity(const IamIdentity &value)
Definition UserContext.h:95
void SetUserProfileArn(const Aws::String &value)
Definition UserContext.h:49
void SetDomainId(Aws::String &&value)
Definition UserContext.h:78
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue