AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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
34 {
35 public:
36 AWS_SAGEMAKER_API UserContext() = default;
37 AWS_SAGEMAKER_API UserContext(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SAGEMAKER_API UserContext& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetUserProfileArn() const { return m_userProfileArn; }
47 inline bool UserProfileArnHasBeenSet() const { return m_userProfileArnHasBeenSet; }
48 template<typename UserProfileArnT = Aws::String>
49 void SetUserProfileArn(UserProfileArnT&& value) { m_userProfileArnHasBeenSet = true; m_userProfileArn = std::forward<UserProfileArnT>(value); }
50 template<typename UserProfileArnT = Aws::String>
51 UserContext& WithUserProfileArn(UserProfileArnT&& value) { SetUserProfileArn(std::forward<UserProfileArnT>(value)); return *this;}
53
55
58 inline const Aws::String& GetUserProfileName() const { return m_userProfileName; }
59 inline bool UserProfileNameHasBeenSet() const { return m_userProfileNameHasBeenSet; }
60 template<typename UserProfileNameT = Aws::String>
61 void SetUserProfileName(UserProfileNameT&& value) { m_userProfileNameHasBeenSet = true; m_userProfileName = std::forward<UserProfileNameT>(value); }
62 template<typename UserProfileNameT = Aws::String>
63 UserContext& WithUserProfileName(UserProfileNameT&& value) { SetUserProfileName(std::forward<UserProfileNameT>(value)); return *this;}
65
67
70 inline const Aws::String& GetDomainId() const { return m_domainId; }
71 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
72 template<typename DomainIdT = Aws::String>
73 void SetDomainId(DomainIdT&& value) { m_domainIdHasBeenSet = true; m_domainId = std::forward<DomainIdT>(value); }
74 template<typename DomainIdT = Aws::String>
75 UserContext& WithDomainId(DomainIdT&& value) { SetDomainId(std::forward<DomainIdT>(value)); return *this;}
77
79
84 inline const IamIdentity& GetIamIdentity() const { return m_iamIdentity; }
85 inline bool IamIdentityHasBeenSet() const { return m_iamIdentityHasBeenSet; }
86 template<typename IamIdentityT = IamIdentity>
87 void SetIamIdentity(IamIdentityT&& value) { m_iamIdentityHasBeenSet = true; m_iamIdentity = std::forward<IamIdentityT>(value); }
88 template<typename IamIdentityT = IamIdentity>
89 UserContext& WithIamIdentity(IamIdentityT&& value) { SetIamIdentity(std::forward<IamIdentityT>(value)); return *this;}
91 private:
92
93 Aws::String m_userProfileArn;
94 bool m_userProfileArnHasBeenSet = false;
95
96 Aws::String m_userProfileName;
97 bool m_userProfileNameHasBeenSet = false;
98
99 Aws::String m_domainId;
100 bool m_domainIdHasBeenSet = false;
101
102 IamIdentity m_iamIdentity;
103 bool m_iamIdentityHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace SageMaker
108} // namespace Aws
void SetIamIdentity(IamIdentityT &&value)
Definition UserContext.h:87
AWS_SAGEMAKER_API UserContext()=default
const IamIdentity & GetIamIdentity() const
Definition UserContext.h:84
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKER_API UserContext & operator=(Aws::Utils::Json::JsonView jsonValue)
UserContext & WithUserProfileArn(UserProfileArnT &&value)
Definition UserContext.h:51
const Aws::String & GetDomainId() const
Definition UserContext.h:70
const Aws::String & GetUserProfileName() const
Definition UserContext.h:58
void SetUserProfileArn(UserProfileArnT &&value)
Definition UserContext.h:49
const Aws::String & GetUserProfileArn() const
Definition UserContext.h:46
AWS_SAGEMAKER_API UserContext(Aws::Utils::Json::JsonView jsonValue)
UserContext & WithUserProfileName(UserProfileNameT &&value)
Definition UserContext.h:63
UserContext & WithDomainId(DomainIdT &&value)
Definition UserContext.h:75
void SetUserProfileName(UserProfileNameT &&value)
Definition UserContext.h:61
UserContext & WithIamIdentity(IamIdentityT &&value)
Definition UserContext.h:89
void SetDomainId(DomainIdT &&value)
Definition UserContext.h:73
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue