7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/opensearch/model/PrincipalType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
22namespace OpenSearchService
65 inline void SetPrincipal(
const char* value) { m_principalHasBeenSet =
true; m_principal.assign(value); }
73 bool m_principalTypeHasBeenSet =
false;
76 bool m_principalHasBeenSet =
false;
AWS_OPENSEARCHSERVICE_API AuthorizedPrincipal(Aws::Utils::Json::JsonView jsonValue)
AuthorizedPrincipal & WithPrincipalType(const PrincipalType &value)
AuthorizedPrincipal & WithPrincipal(const Aws::String &value)
bool PrincipalHasBeenSet() const
AuthorizedPrincipal & WithPrincipalType(PrincipalType &&value)
AWS_OPENSEARCHSERVICE_API AuthorizedPrincipal & operator=(Aws::Utils::Json::JsonView jsonValue)
AuthorizedPrincipal & WithPrincipal(Aws::String &&value)
const Aws::String & GetPrincipal() const
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPrincipal(const Aws::String &value)
bool PrincipalTypeHasBeenSet() const
void SetPrincipal(const char *value)
AuthorizedPrincipal & WithPrincipal(const char *value)
void SetPrincipalType(PrincipalType &&value)
const PrincipalType & GetPrincipalType() const
void SetPrincipal(Aws::String &&value)
void SetPrincipalType(const PrincipalType &value)
AWS_OPENSEARCHSERVICE_API AuthorizedPrincipal()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue