AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AuthorizedPrincipal.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/opensearch/OpenSearchService_EXPORTS.h>
9#include <aws/opensearch/model/PrincipalType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace OpenSearchService {
21namespace Model {
22
31 public:
32 AWS_OPENSEARCHSERVICE_API AuthorizedPrincipal() = default;
33 AWS_OPENSEARCHSERVICE_API AuthorizedPrincipal(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OPENSEARCHSERVICE_API AuthorizedPrincipal& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline PrincipalType GetPrincipalType() const { return m_principalType; }
42 inline bool PrincipalTypeHasBeenSet() const { return m_principalTypeHasBeenSet; }
43 inline void SetPrincipalType(PrincipalType value) {
44 m_principalTypeHasBeenSet = true;
45 m_principalType = value;
46 }
48 SetPrincipalType(value);
49 return *this;
50 }
52
54
59 inline const Aws::String& GetPrincipal() const { return m_principal; }
60 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
61 template <typename PrincipalT = Aws::String>
62 void SetPrincipal(PrincipalT&& value) {
63 m_principalHasBeenSet = true;
64 m_principal = std::forward<PrincipalT>(value);
65 }
66 template <typename PrincipalT = Aws::String>
67 AuthorizedPrincipal& WithPrincipal(PrincipalT&& value) {
68 SetPrincipal(std::forward<PrincipalT>(value));
69 return *this;
70 }
72 private:
74
75 Aws::String m_principal;
76 bool m_principalTypeHasBeenSet = false;
77 bool m_principalHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace OpenSearchService
82} // namespace Aws
AWS_OPENSEARCHSERVICE_API AuthorizedPrincipal(Aws::Utils::Json::JsonView jsonValue)
AuthorizedPrincipal & WithPrincipalType(PrincipalType value)
AWS_OPENSEARCHSERVICE_API AuthorizedPrincipal & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OPENSEARCHSERVICE_API AuthorizedPrincipal()=default
AuthorizedPrincipal & WithPrincipal(PrincipalT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue