AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ProfileQueryResult.h
1
6#pragma once
7#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/customer-profiles/model/QueryResult.h>
10#include <aws/customer-profiles/model/Profile.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CustomerProfiles
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_CUSTOMERPROFILES_API ProfileQueryResult() = default;
37 AWS_CUSTOMERPROFILES_API ProfileQueryResult(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CUSTOMERPROFILES_API ProfileQueryResult& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetProfileId() const { return m_profileId; }
47 inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; }
48 template<typename ProfileIdT = Aws::String>
49 void SetProfileId(ProfileIdT&& value) { m_profileIdHasBeenSet = true; m_profileId = std::forward<ProfileIdT>(value); }
50 template<typename ProfileIdT = Aws::String>
51 ProfileQueryResult& WithProfileId(ProfileIdT&& value) { SetProfileId(std::forward<ProfileIdT>(value)); return *this;}
53
55
58 inline QueryResult GetQueryResult() const { return m_queryResult; }
59 inline bool QueryResultHasBeenSet() const { return m_queryResultHasBeenSet; }
60 inline void SetQueryResult(QueryResult value) { m_queryResultHasBeenSet = true; m_queryResult = value; }
61 inline ProfileQueryResult& WithQueryResult(QueryResult value) { SetQueryResult(value); return *this;}
63
65
66 inline const Profile& GetProfile() const { return m_profile; }
67 inline bool ProfileHasBeenSet() const { return m_profileHasBeenSet; }
68 template<typename ProfileT = Profile>
69 void SetProfile(ProfileT&& value) { m_profileHasBeenSet = true; m_profile = std::forward<ProfileT>(value); }
70 template<typename ProfileT = Profile>
71 ProfileQueryResult& WithProfile(ProfileT&& value) { SetProfile(std::forward<ProfileT>(value)); return *this;}
73 private:
74
75 Aws::String m_profileId;
76 bool m_profileIdHasBeenSet = false;
77
78 QueryResult m_queryResult{QueryResult::NOT_SET};
79 bool m_queryResultHasBeenSet = false;
80
81 Profile m_profile;
82 bool m_profileHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace CustomerProfiles
87} // 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