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/es/ElasticsearchService_EXPORTS.h>
8#include <aws/es/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 ElasticsearchService
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_ELASTICSEARCHSERVICE_API AuthorizedPrincipal();
38 AWS_ELASTICSEARCHSERVICE_API AuthorizedPrincipal(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ELASTICSEARCHSERVICE_API AuthorizedPrincipal& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ELASTICSEARCHSERVICE_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
59 inline const Aws::String& GetPrincipal() const{ return m_principal; }
60 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
61 inline void SetPrincipal(const Aws::String& value) { m_principalHasBeenSet = true; m_principal = value; }
62 inline void SetPrincipal(Aws::String&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); }
63 inline void SetPrincipal(const char* value) { m_principalHasBeenSet = true; m_principal.assign(value); }
64 inline AuthorizedPrincipal& WithPrincipal(const Aws::String& value) { SetPrincipal(value); return *this;}
65 inline AuthorizedPrincipal& WithPrincipal(Aws::String&& value) { SetPrincipal(std::move(value)); return *this;}
66 inline AuthorizedPrincipal& WithPrincipal(const char* value) { SetPrincipal(value); return *this;}
68 private:
69
70 PrincipalType m_principalType;
71 bool m_principalTypeHasBeenSet = false;
72
73 Aws::String m_principal;
74 bool m_principalHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace ElasticsearchService
79} // namespace Aws
AWS_ELASTICSEARCHSERVICE_API AuthorizedPrincipal(Aws::Utils::Json::JsonView jsonValue)
AWS_ELASTICSEARCHSERVICE_API AuthorizedPrincipal & operator=(Aws::Utils::Json::JsonView jsonValue)
AuthorizedPrincipal & WithPrincipal(Aws::String &&value)
AuthorizedPrincipal & WithPrincipal(const Aws::String &value)
AuthorizedPrincipal & WithPrincipalType(PrincipalType &&value)
AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AuthorizedPrincipal & WithPrincipalType(const PrincipalType &value)
AWS_ELASTICSEARCHSERVICE_API AuthorizedPrincipal()
AuthorizedPrincipal & WithPrincipal(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue