AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
IamIdentity.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SageMaker
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_SAGEMAKER_API IamIdentity() = default;
37 AWS_SAGEMAKER_API IamIdentity(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SAGEMAKER_API IamIdentity& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetArn() const { return m_arn; }
47 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
48 template<typename ArnT = Aws::String>
49 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
50 template<typename ArnT = Aws::String>
51 IamIdentity& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_principalIdHasBeenSet = true; m_principalId = std::forward<PrincipalIdT>(value); }
62 template<typename PrincipalIdT = Aws::String>
63 IamIdentity& WithPrincipalId(PrincipalIdT&& value) { SetPrincipalId(std::forward<PrincipalIdT>(value)); return *this;}
65
67
70 inline const Aws::String& GetSourceIdentity() const { return m_sourceIdentity; }
71 inline bool SourceIdentityHasBeenSet() const { return m_sourceIdentityHasBeenSet; }
72 template<typename SourceIdentityT = Aws::String>
73 void SetSourceIdentity(SourceIdentityT&& value) { m_sourceIdentityHasBeenSet = true; m_sourceIdentity = std::forward<SourceIdentityT>(value); }
74 template<typename SourceIdentityT = Aws::String>
75 IamIdentity& WithSourceIdentity(SourceIdentityT&& value) { SetSourceIdentity(std::forward<SourceIdentityT>(value)); return *this;}
77 private:
78
79 Aws::String m_arn;
80 bool m_arnHasBeenSet = false;
81
82 Aws::String m_principalId;
83 bool m_principalIdHasBeenSet = false;
84
85 Aws::String m_sourceIdentity;
86 bool m_sourceIdentityHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace SageMaker
91} // namespace Aws
AWS_SAGEMAKER_API IamIdentity(Aws::Utils::Json::JsonView jsonValue)
IamIdentity & WithPrincipalId(PrincipalIdT &&value)
Definition IamIdentity.h:63
const Aws::String & GetSourceIdentity() const
Definition IamIdentity.h:70
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
IamIdentity & WithSourceIdentity(SourceIdentityT &&value)
Definition IamIdentity.h:75
const Aws::String & GetPrincipalId() const
Definition IamIdentity.h:58
const Aws::String & GetArn() const
Definition IamIdentity.h:46
AWS_SAGEMAKER_API IamIdentity()=default
void SetSourceIdentity(SourceIdentityT &&value)
Definition IamIdentity.h:73
IamIdentity & WithArn(ArnT &&value)
Definition IamIdentity.h:51
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