AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
IamIdentity.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sagemaker/SageMaker_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SageMaker {
20namespace Model {
21
30 public:
31 AWS_SAGEMAKER_API IamIdentity() = default;
32 AWS_SAGEMAKER_API IamIdentity(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SAGEMAKER_API IamIdentity& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetArn() const { return m_arn; }
41 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
42 template <typename ArnT = Aws::String>
43 void SetArn(ArnT&& value) {
44 m_arnHasBeenSet = true;
45 m_arn = std::forward<ArnT>(value);
46 }
47 template <typename ArnT = Aws::String>
48 IamIdentity& WithArn(ArnT&& value) {
49 SetArn(std::forward<ArnT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetPrincipalId() const { return m_principalId; }
59 inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
60 template <typename PrincipalIdT = Aws::String>
61 void SetPrincipalId(PrincipalIdT&& value) {
62 m_principalIdHasBeenSet = true;
63 m_principalId = std::forward<PrincipalIdT>(value);
64 }
65 template <typename PrincipalIdT = Aws::String>
66 IamIdentity& WithPrincipalId(PrincipalIdT&& value) {
67 SetPrincipalId(std::forward<PrincipalIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetSourceIdentity() const { return m_sourceIdentity; }
77 inline bool SourceIdentityHasBeenSet() const { return m_sourceIdentityHasBeenSet; }
78 template <typename SourceIdentityT = Aws::String>
79 void SetSourceIdentity(SourceIdentityT&& value) {
80 m_sourceIdentityHasBeenSet = true;
81 m_sourceIdentity = std::forward<SourceIdentityT>(value);
82 }
83 template <typename SourceIdentityT = Aws::String>
84 IamIdentity& WithSourceIdentity(SourceIdentityT&& value) {
85 SetSourceIdentity(std::forward<SourceIdentityT>(value));
86 return *this;
87 }
89 private:
90 Aws::String m_arn;
91
92 Aws::String m_principalId;
93
94 Aws::String m_sourceIdentity;
95 bool m_arnHasBeenSet = false;
96 bool m_principalIdHasBeenSet = false;
97 bool m_sourceIdentityHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace SageMaker
102} // namespace Aws
AWS_SAGEMAKER_API IamIdentity(Aws::Utils::Json::JsonView jsonValue)
IamIdentity & WithPrincipalId(PrincipalIdT &&value)
Definition IamIdentity.h:66
const Aws::String & GetSourceIdentity() const
Definition IamIdentity.h:76
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
IamIdentity & WithSourceIdentity(SourceIdentityT &&value)
Definition IamIdentity.h:84
const Aws::String & GetPrincipalId() const
Definition IamIdentity.h:58
const Aws::String & GetArn() const
Definition IamIdentity.h:40
AWS_SAGEMAKER_API IamIdentity()=default
void SetSourceIdentity(SourceIdentityT &&value)
Definition IamIdentity.h:79
IamIdentity & WithArn(ArnT &&value)
Definition IamIdentity.h:48
AWS_SAGEMAKER_API IamIdentity & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPrincipalId(PrincipalIdT &&value)
Definition IamIdentity.h:61
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue