7#include <aws/cloudwatchomni/CloudWatchOmni_EXPORTS.h>
8#include <aws/cloudwatchomni/model/PrincipalType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/crt/cbor/Cbor.h>
20namespace CloudWatchOmni {
33 AWS_CLOUDWATCHOMNI_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
41 template <
typename PrincipalIdT = Aws::String>
43 m_principalIdHasBeenSet =
true;
44 m_principalId = std::forward<PrincipalIdT>(value);
46 template <
typename PrincipalIdT = Aws::String>
60 m_principalTypeHasBeenSet =
true;
61 m_principalType = value;
75 template <
typename DisplayNameT = Aws::String>
77 m_displayNameHasBeenSet =
true;
78 m_displayName = std::forward<DisplayNameT>(value);
80 template <
typename DisplayNameT = Aws::String>
93 template <
typename UserNameT = Aws::String>
95 m_userNameHasBeenSet =
true;
96 m_userName = std::forward<UserNameT>(value);
98 template <
typename UserNameT = Aws::String>
111 template <
typename DescriptionT = Aws::String>
113 m_descriptionHasBeenSet =
true;
114 m_description = std::forward<DescriptionT>(value);
116 template <
typename DescriptionT = Aws::String>
132 bool m_principalIdHasBeenSet =
false;
133 bool m_principalTypeHasBeenSet =
false;
134 bool m_displayNameHasBeenSet =
false;
135 bool m_userNameHasBeenSet =
false;
136 bool m_descriptionHasBeenSet =
false;
AWS_CLOUDWATCHOMNI_API PrincipalSearchResult & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetDisplayName() const
bool UserNameHasBeenSet() const
bool DescriptionHasBeenSet() const
PrincipalSearchResult & WithDisplayName(DisplayNameT &&value)
const Aws::String & GetPrincipalId() const
const Aws::String & GetDescription() const
bool PrincipalTypeHasBeenSet() const
void SetUserName(UserNameT &&value)
PrincipalSearchResult & WithPrincipalId(PrincipalIdT &&value)
void SetPrincipalId(PrincipalIdT &&value)
AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
bool DisplayNameHasBeenSet() const
AWS_CLOUDWATCHOMNI_API PrincipalSearchResult()=default
const Aws::String & GetUserName() const
AWS_CLOUDWATCHOMNI_API PrincipalSearchResult(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetDescription(DescriptionT &&value)
bool PrincipalIdHasBeenSet() const
void SetDisplayName(DisplayNameT &&value)
void SetPrincipalType(PrincipalType value)
PrincipalSearchResult & WithPrincipalType(PrincipalType value)
PrincipalType GetPrincipalType() const
PrincipalSearchResult & WithUserName(UserNameT &&value)
PrincipalSearchResult & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String