AWS SDK for C++

AWS SDK for C++ Version 1.11.756

Loading...
Searching...
No Matches
ProfileQueryResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
9#include <aws/customer-profiles/model/Profile.h>
10#include <aws/customer-profiles/model/QueryResult.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CustomerProfiles {
22namespace Model {
23
30 public:
31 AWS_CUSTOMERPROFILES_API ProfileQueryResult() = default;
32 AWS_CUSTOMERPROFILES_API ProfileQueryResult(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CUSTOMERPROFILES_API ProfileQueryResult& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetProfileId() const { return m_profileId; }
41 inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; }
42 template <typename ProfileIdT = Aws::String>
43 void SetProfileId(ProfileIdT&& value) {
44 m_profileIdHasBeenSet = true;
45 m_profileId = std::forward<ProfileIdT>(value);
46 }
47 template <typename ProfileIdT = Aws::String>
48 ProfileQueryResult& WithProfileId(ProfileIdT&& value) {
49 SetProfileId(std::forward<ProfileIdT>(value));
50 return *this;
51 }
53
55
58 inline QueryResult GetQueryResult() const { return m_queryResult; }
59 inline bool QueryResultHasBeenSet() const { return m_queryResultHasBeenSet; }
60 inline void SetQueryResult(QueryResult value) {
61 m_queryResultHasBeenSet = true;
62 m_queryResult = value;
63 }
65 SetQueryResult(value);
66 return *this;
67 }
69
71
72 inline const Profile& GetProfile() const { return m_profile; }
73 inline bool ProfileHasBeenSet() const { return m_profileHasBeenSet; }
74 template <typename ProfileT = Profile>
75 void SetProfile(ProfileT&& value) {
76 m_profileHasBeenSet = true;
77 m_profile = std::forward<ProfileT>(value);
78 }
79 template <typename ProfileT = Profile>
80 ProfileQueryResult& WithProfile(ProfileT&& value) {
81 SetProfile(std::forward<ProfileT>(value));
82 return *this;
83 }
85 private:
86 Aws::String m_profileId;
87
88 QueryResult m_queryResult{QueryResult::NOT_SET};
89
90 Profile m_profile;
91 bool m_profileIdHasBeenSet = false;
92 bool m_queryResultHasBeenSet = false;
93 bool m_profileHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace CustomerProfiles
98} // namespace Aws
ProfileQueryResult & WithProfileId(ProfileIdT &&value)
AWS_CUSTOMERPROFILES_API ProfileQueryResult()=default
AWS_CUSTOMERPROFILES_API ProfileQueryResult & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
ProfileQueryResult & WithQueryResult(QueryResult value)
ProfileQueryResult & WithProfile(ProfileT &&value)
AWS_CUSTOMERPROFILES_API ProfileQueryResult(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue