AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Principal.h
1
6#pragma once
7#include <aws/servicecatalog/ServiceCatalog_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/servicecatalog/model/PrincipalType.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 ServiceCatalog
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_SERVICECATALOG_API Principal();
36 AWS_SERVICECATALOG_API Principal(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SERVICECATALOG_API Principal& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SERVICECATALOG_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
50 inline const Aws::String& GetPrincipalARN() const{ return m_principalARN; }
51 inline bool PrincipalARNHasBeenSet() const { return m_principalARNHasBeenSet; }
52 inline void SetPrincipalARN(const Aws::String& value) { m_principalARNHasBeenSet = true; m_principalARN = value; }
53 inline void SetPrincipalARN(Aws::String&& value) { m_principalARNHasBeenSet = true; m_principalARN = std::move(value); }
54 inline void SetPrincipalARN(const char* value) { m_principalARNHasBeenSet = true; m_principalARN.assign(value); }
55 inline Principal& WithPrincipalARN(const Aws::String& value) { SetPrincipalARN(value); return *this;}
56 inline Principal& WithPrincipalARN(Aws::String&& value) { SetPrincipalARN(std::move(value)); return *this;}
57 inline Principal& WithPrincipalARN(const char* value) { SetPrincipalARN(value); return *this;}
59
61
66 inline const PrincipalType& GetPrincipalType() const{ return m_principalType; }
67 inline bool PrincipalTypeHasBeenSet() const { return m_principalTypeHasBeenSet; }
68 inline void SetPrincipalType(const PrincipalType& value) { m_principalTypeHasBeenSet = true; m_principalType = value; }
69 inline void SetPrincipalType(PrincipalType&& value) { m_principalTypeHasBeenSet = true; m_principalType = std::move(value); }
70 inline Principal& WithPrincipalType(const PrincipalType& value) { SetPrincipalType(value); return *this;}
71 inline Principal& WithPrincipalType(PrincipalType&& value) { SetPrincipalType(std::move(value)); return *this;}
73 private:
74
75 Aws::String m_principalARN;
76 bool m_principalARNHasBeenSet = false;
77
78 PrincipalType m_principalType;
79 bool m_principalTypeHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace ServiceCatalog
84} // namespace Aws
Principal & WithPrincipalType(PrincipalType &&value)
Definition Principal.h:71
Principal & WithPrincipalARN(const char *value)
Definition Principal.h:57
void SetPrincipalARN(const char *value)
Definition Principal.h:54
Principal & WithPrincipalType(const PrincipalType &value)
Definition Principal.h:70
const PrincipalType & GetPrincipalType() const
Definition Principal.h:66
Principal & WithPrincipalARN(Aws::String &&value)
Definition Principal.h:56
AWS_SERVICECATALOG_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPrincipalType(const PrincipalType &value)
Definition Principal.h:68
AWS_SERVICECATALOG_API Principal & operator=(Aws::Utils::Json::JsonView jsonValue)
Principal & WithPrincipalARN(const Aws::String &value)
Definition Principal.h:55
void SetPrincipalARN(const Aws::String &value)
Definition Principal.h:52
void SetPrincipalType(PrincipalType &&value)
Definition Principal.h:69
AWS_SERVICECATALOG_API Principal()
void SetPrincipalARN(Aws::String &&value)
Definition Principal.h:53
AWS_SERVICECATALOG_API Principal(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetPrincipalARN() const
Definition Principal.h:50
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue