AWS SDK for C++

AWS SDK for C++ Version 1.11.899

Loading...
Searching...
No Matches
PrincipalSearchResult.h
1
6#pragma once
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>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace CloudWatchOmni {
21namespace Model {
22
29 public:
30 AWS_CLOUDWATCHOMNI_API PrincipalSearchResult() = default;
31 AWS_CLOUDWATCHOMNI_API PrincipalSearchResult(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_CLOUDWATCHOMNI_API PrincipalSearchResult& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
39 inline const Aws::String& GetPrincipalId() const { return m_principalId; }
40 inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
41 template <typename PrincipalIdT = Aws::String>
42 void SetPrincipalId(PrincipalIdT&& value) {
43 m_principalIdHasBeenSet = true;
44 m_principalId = std::forward<PrincipalIdT>(value);
45 }
46 template <typename PrincipalIdT = Aws::String>
47 PrincipalSearchResult& WithPrincipalId(PrincipalIdT&& value) {
48 SetPrincipalId(std::forward<PrincipalIdT>(value));
49 return *this;
50 }
52
54
57 inline PrincipalType GetPrincipalType() const { return m_principalType; }
58 inline bool PrincipalTypeHasBeenSet() const { return m_principalTypeHasBeenSet; }
59 inline void SetPrincipalType(PrincipalType value) {
60 m_principalTypeHasBeenSet = true;
61 m_principalType = value;
62 }
64 SetPrincipalType(value);
65 return *this;
66 }
68
70
73 inline const Aws::String& GetDisplayName() const { return m_displayName; }
74 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
75 template <typename DisplayNameT = Aws::String>
76 void SetDisplayName(DisplayNameT&& value) {
77 m_displayNameHasBeenSet = true;
78 m_displayName = std::forward<DisplayNameT>(value);
79 }
80 template <typename DisplayNameT = Aws::String>
81 PrincipalSearchResult& WithDisplayName(DisplayNameT&& value) {
82 SetDisplayName(std::forward<DisplayNameT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetUserName() const { return m_userName; }
92 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
93 template <typename UserNameT = Aws::String>
94 void SetUserName(UserNameT&& value) {
95 m_userNameHasBeenSet = true;
96 m_userName = std::forward<UserNameT>(value);
97 }
98 template <typename UserNameT = Aws::String>
99 PrincipalSearchResult& WithUserName(UserNameT&& value) {
100 SetUserName(std::forward<UserNameT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::String& GetDescription() const { return m_description; }
110 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
111 template <typename DescriptionT = Aws::String>
112 void SetDescription(DescriptionT&& value) {
113 m_descriptionHasBeenSet = true;
114 m_description = std::forward<DescriptionT>(value);
115 }
116 template <typename DescriptionT = Aws::String>
117 PrincipalSearchResult& WithDescription(DescriptionT&& value) {
118 SetDescription(std::forward<DescriptionT>(value));
119 return *this;
120 }
122 private:
123 Aws::String m_principalId;
124
125 PrincipalType m_principalType{PrincipalType::NOT_SET};
126
127 Aws::String m_displayName;
128
129 Aws::String m_userName;
130
131 Aws::String m_description;
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;
137};
138
139} // namespace Model
140} // namespace CloudWatchOmni
141} // namespace Aws
AWS_CLOUDWATCHOMNI_API PrincipalSearchResult & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
PrincipalSearchResult & WithDisplayName(DisplayNameT &&value)
PrincipalSearchResult & WithPrincipalId(PrincipalIdT &&value)
AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_CLOUDWATCHOMNI_API PrincipalSearchResult()=default
AWS_CLOUDWATCHOMNI_API PrincipalSearchResult(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
PrincipalSearchResult & WithPrincipalType(PrincipalType value)
PrincipalSearchResult & WithUserName(UserNameT &&value)
PrincipalSearchResult & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String