7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/opensearch/OpenSearchService_EXPORTS.h>
9#include <aws/opensearch/model/PrincipalType.h>
10#include <aws/opensearch/model/ServiceOptions.h>
21namespace OpenSearchService {
45 m_principalTypeHasBeenSet =
true;
46 m_principalType = value;
62 template <
typename PrincipalT = Aws::String>
64 m_principalHasBeenSet =
true;
65 m_principal = std::forward<PrincipalT>(value);
67 template <
typename PrincipalT = Aws::String>
81 template <
typename ServiceOptionsT = ServiceOptions>
83 m_serviceOptionsHasBeenSet =
true;
84 m_serviceOptions = std::forward<ServiceOptionsT>(value);
86 template <
typename ServiceOptionsT = ServiceOptions>
97 ServiceOptions m_serviceOptions;
98 bool m_principalTypeHasBeenSet =
false;
99 bool m_principalHasBeenSet =
false;
100 bool m_serviceOptionsHasBeenSet =
false;
AWS_OPENSEARCHSERVICE_API AuthorizedPrincipal(Aws::Utils::Json::JsonView jsonValue)
bool PrincipalHasBeenSet() const
AuthorizedPrincipal & WithServiceOptions(ServiceOptionsT &&value)
AuthorizedPrincipal & WithPrincipalType(PrincipalType value)
AWS_OPENSEARCHSERVICE_API AuthorizedPrincipal & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPrincipal(PrincipalT &&value)
const ServiceOptions & GetServiceOptions() const
const Aws::String & GetPrincipal() const
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
bool PrincipalTypeHasBeenSet() const
bool ServiceOptionsHasBeenSet() const
void SetServiceOptions(ServiceOptionsT &&value)
AWS_OPENSEARCHSERVICE_API AuthorizedPrincipal()=default
void SetPrincipalType(PrincipalType value)
AuthorizedPrincipal & WithPrincipal(PrincipalT &&value)
PrincipalType GetPrincipalType() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue