AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AuthorizedPrincipal.h
1
6#pragma once
7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/opensearch/model/PrincipalType.h>
9#include <aws/core/utils/memory/stl/AWSString.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 OpenSearchService
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_OPENSEARCHSERVICE_API AuthorizedPrincipal();
38 AWS_OPENSEARCHSERVICE_API AuthorizedPrincipal(Aws::Utils::Json::JsonView jsonValue);
39 AWS_OPENSEARCHSERVICE_API AuthorizedPrincipal& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const PrincipalType& GetPrincipalType() const{ return m_principalType; }
48 inline bool PrincipalTypeHasBeenSet() const { return m_principalTypeHasBeenSet; }
49 inline void SetPrincipalType(const PrincipalType& value) { m_principalTypeHasBeenSet = true; m_principalType = value; }
50 inline void SetPrincipalType(PrincipalType&& value) { m_principalTypeHasBeenSet = true; m_principalType = std::move(value); }
51 inline AuthorizedPrincipal& WithPrincipalType(const PrincipalType& value) { SetPrincipalType(value); return *this;}
52 inline AuthorizedPrincipal& WithPrincipalType(PrincipalType&& value) { SetPrincipalType(std::move(value)); return *this;}
54
56
61 inline const Aws::String& GetPrincipal() const{ return m_principal; }
62 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
63 inline void SetPrincipal(const Aws::String& value) { m_principalHasBeenSet = true; m_principal = value; }
64 inline void SetPrincipal(Aws::String&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); }
65 inline void SetPrincipal(const char* value) { m_principalHasBeenSet = true; m_principal.assign(value); }
66 inline AuthorizedPrincipal& WithPrincipal(const Aws::String& value) { SetPrincipal(value); return *this;}
67 inline AuthorizedPrincipal& WithPrincipal(Aws::String&& value) { SetPrincipal(std::move(value)); return *this;}
68 inline AuthorizedPrincipal& WithPrincipal(const char* value) { SetPrincipal(value); return *this;}
70 private:
71
72 PrincipalType m_principalType;
73 bool m_principalTypeHasBeenSet = false;
74
75 Aws::String m_principal;
76 bool m_principalHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace OpenSearchService
81} // namespace Aws
AWS_OPENSEARCHSERVICE_API AuthorizedPrincipal(Aws::Utils::Json::JsonView jsonValue)
AuthorizedPrincipal & WithPrincipalType(const PrincipalType &value)
AuthorizedPrincipal & WithPrincipal(const Aws::String &value)
AuthorizedPrincipal & WithPrincipalType(PrincipalType &&value)
AWS_OPENSEARCHSERVICE_API AuthorizedPrincipal & operator=(Aws::Utils::Json::JsonView jsonValue)
AuthorizedPrincipal & WithPrincipal(Aws::String &&value)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AuthorizedPrincipal & WithPrincipal(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue