AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
UserContext.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sagemaker/SageMaker_EXPORTS.h>
9#include <aws/sagemaker/model/IamIdentity.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SageMaker {
21namespace Model {
22
30 public:
31 AWS_SAGEMAKER_API UserContext() = default;
32 AWS_SAGEMAKER_API UserContext(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SAGEMAKER_API UserContext& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetUserProfileArn() const { return m_userProfileArn; }
41 inline bool UserProfileArnHasBeenSet() const { return m_userProfileArnHasBeenSet; }
42 template <typename UserProfileArnT = Aws::String>
43 void SetUserProfileArn(UserProfileArnT&& value) {
44 m_userProfileArnHasBeenSet = true;
45 m_userProfileArn = std::forward<UserProfileArnT>(value);
46 }
47 template <typename UserProfileArnT = Aws::String>
48 UserContext& WithUserProfileArn(UserProfileArnT&& value) {
49 SetUserProfileArn(std::forward<UserProfileArnT>(value));
50 return *this;
51 }
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) {
62 m_userProfileNameHasBeenSet = true;
63 m_userProfileName = std::forward<UserProfileNameT>(value);
64 }
65 template <typename UserProfileNameT = Aws::String>
66 UserContext& WithUserProfileName(UserProfileNameT&& value) {
67 SetUserProfileName(std::forward<UserProfileNameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDomainId() const { return m_domainId; }
77 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
78 template <typename DomainIdT = Aws::String>
79 void SetDomainId(DomainIdT&& value) {
80 m_domainIdHasBeenSet = true;
81 m_domainId = std::forward<DomainIdT>(value);
82 }
83 template <typename DomainIdT = Aws::String>
84 UserContext& WithDomainId(DomainIdT&& value) {
85 SetDomainId(std::forward<DomainIdT>(value));
86 return *this;
87 }
89
91
96 inline const IamIdentity& GetIamIdentity() const { return m_iamIdentity; }
97 inline bool IamIdentityHasBeenSet() const { return m_iamIdentityHasBeenSet; }
98 template <typename IamIdentityT = IamIdentity>
99 void SetIamIdentity(IamIdentityT&& value) {
100 m_iamIdentityHasBeenSet = true;
101 m_iamIdentity = std::forward<IamIdentityT>(value);
102 }
103 template <typename IamIdentityT = IamIdentity>
104 UserContext& WithIamIdentity(IamIdentityT&& value) {
105 SetIamIdentity(std::forward<IamIdentityT>(value));
106 return *this;
107 }
109 private:
110 Aws::String m_userProfileArn;
111
112 Aws::String m_userProfileName;
113
114 Aws::String m_domainId;
115
116 IamIdentity m_iamIdentity;
117 bool m_userProfileArnHasBeenSet = false;
118 bool m_userProfileNameHasBeenSet = false;
119 bool m_domainIdHasBeenSet = false;
120 bool m_iamIdentityHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace SageMaker
125} // namespace Aws
void SetIamIdentity(IamIdentityT &&value)
Definition UserContext.h:99
AWS_SAGEMAKER_API UserContext()=default
const IamIdentity & GetIamIdentity() const
Definition UserContext.h:96
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:48
const Aws::String & GetDomainId() const
Definition UserContext.h:76
const Aws::String & GetUserProfileName() const
Definition UserContext.h:58
void SetUserProfileArn(UserProfileArnT &&value)
Definition UserContext.h:43
const Aws::String & GetUserProfileArn() const
Definition UserContext.h:40
AWS_SAGEMAKER_API UserContext(Aws::Utils::Json::JsonView jsonValue)
UserContext & WithUserProfileName(UserProfileNameT &&value)
Definition UserContext.h:66
UserContext & WithDomainId(DomainIdT &&value)
Definition UserContext.h:84
void SetUserProfileName(UserProfileNameT &&value)
Definition UserContext.h:61
UserContext & WithIamIdentity(IamIdentityT &&value)
void SetDomainId(DomainIdT &&value)
Definition UserContext.h:79
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue