AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
AuthorizedPrincipal.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/es/ElasticsearchService_EXPORTS.h>
9#include <aws/es/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 ElasticsearchService {
21namespace Model {
22
31 public:
32 AWS_ELASTICSEARCHSERVICE_API AuthorizedPrincipal() = default;
33 AWS_ELASTICSEARCHSERVICE_API AuthorizedPrincipal(Aws::Utils::Json::JsonView jsonValue);
34 AWS_ELASTICSEARCHSERVICE_API AuthorizedPrincipal& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_ELASTICSEARCHSERVICE_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
57 inline const Aws::String& GetPrincipal() const { return m_principal; }
58 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
59 template <typename PrincipalT = Aws::String>
60 void SetPrincipal(PrincipalT&& value) {
61 m_principalHasBeenSet = true;
62 m_principal = std::forward<PrincipalT>(value);
63 }
64 template <typename PrincipalT = Aws::String>
65 AuthorizedPrincipal& WithPrincipal(PrincipalT&& value) {
66 SetPrincipal(std::forward<PrincipalT>(value));
67 return *this;
68 }
70 private:
72
73 Aws::String m_principal;
74 bool m_principalTypeHasBeenSet = false;
75 bool m_principalHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace ElasticsearchService
80} // namespace Aws
AWS_ELASTICSEARCHSERVICE_API AuthorizedPrincipal(Aws::Utils::Json::JsonView jsonValue)
AWS_ELASTICSEARCHSERVICE_API AuthorizedPrincipal & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ELASTICSEARCHSERVICE_API AuthorizedPrincipal()=default
AuthorizedPrincipal & WithPrincipalType(PrincipalType value)
AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AuthorizedPrincipal & WithPrincipal(PrincipalT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue