AWS SDK for C++

AWS SDK for C++ Version 1.11.761

Loading...
Searching...
No Matches
GetSegmentMembershipResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
12#include <aws/customer-profiles/model/ProfileQueryFailures.h>
13#include <aws/customer-profiles/model/ProfileQueryResult.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace CustomerProfiles {
27namespace Model {
29 public:
30 AWS_CUSTOMERPROFILES_API GetSegmentMembershipResult() = default;
33
35
38 inline const Aws::String& GetSegmentDefinitionName() const { return m_segmentDefinitionName; }
39 template <typename SegmentDefinitionNameT = Aws::String>
40 void SetSegmentDefinitionName(SegmentDefinitionNameT&& value) {
41 m_segmentDefinitionNameHasBeenSet = true;
42 m_segmentDefinitionName = std::forward<SegmentDefinitionNameT>(value);
43 }
44 template <typename SegmentDefinitionNameT = Aws::String>
45 GetSegmentMembershipResult& WithSegmentDefinitionName(SegmentDefinitionNameT&& value) {
46 SetSegmentDefinitionName(std::forward<SegmentDefinitionNameT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::Vector<ProfileQueryResult>& GetProfiles() const { return m_profiles; }
56 template <typename ProfilesT = Aws::Vector<ProfileQueryResult>>
57 void SetProfiles(ProfilesT&& value) {
58 m_profilesHasBeenSet = true;
59 m_profiles = std::forward<ProfilesT>(value);
60 }
61 template <typename ProfilesT = Aws::Vector<ProfileQueryResult>>
63 SetProfiles(std::forward<ProfilesT>(value));
64 return *this;
65 }
66 template <typename ProfilesT = ProfileQueryResult>
68 m_profilesHasBeenSet = true;
69 m_profiles.emplace_back(std::forward<ProfilesT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::Vector<ProfileQueryFailures>& GetFailures() const { return m_failures; }
80 template <typename FailuresT = Aws::Vector<ProfileQueryFailures>>
81 void SetFailures(FailuresT&& value) {
82 m_failuresHasBeenSet = true;
83 m_failures = std::forward<FailuresT>(value);
84 }
85 template <typename FailuresT = Aws::Vector<ProfileQueryFailures>>
87 SetFailures(std::forward<FailuresT>(value));
88 return *this;
89 }
90 template <typename FailuresT = ProfileQueryFailures>
92 m_failuresHasBeenSet = true;
93 m_failures.emplace_back(std::forward<FailuresT>(value));
94 return *this;
95 }
97
99
103 inline const Aws::Utils::DateTime& GetLastComputedAt() const { return m_lastComputedAt; }
104 template <typename LastComputedAtT = Aws::Utils::DateTime>
105 void SetLastComputedAt(LastComputedAtT&& value) {
106 m_lastComputedAtHasBeenSet = true;
107 m_lastComputedAt = std::forward<LastComputedAtT>(value);
108 }
109 template <typename LastComputedAtT = Aws::Utils::DateTime>
111 SetLastComputedAt(std::forward<LastComputedAtT>(value));
112 return *this;
113 }
115
117
118 inline const Aws::String& GetRequestId() const { return m_requestId; }
119 template <typename RequestIdT = Aws::String>
120 void SetRequestId(RequestIdT&& value) {
121 m_requestIdHasBeenSet = true;
122 m_requestId = std::forward<RequestIdT>(value);
123 }
124 template <typename RequestIdT = Aws::String>
126 SetRequestId(std::forward<RequestIdT>(value));
127 return *this;
128 }
130 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
131
132 private:
133 Aws::String m_segmentDefinitionName;
134
136
138
139 Aws::Utils::DateTime m_lastComputedAt{};
140
141 Aws::String m_requestId;
142 Aws::Http::HttpResponseCode m_HttpResponseCode;
143 bool m_segmentDefinitionNameHasBeenSet = false;
144 bool m_profilesHasBeenSet = false;
145 bool m_failuresHasBeenSet = false;
146 bool m_lastComputedAtHasBeenSet = false;
147 bool m_requestIdHasBeenSet = false;
148};
149
150} // namespace Model
151} // namespace CustomerProfiles
152} // namespace Aws
AWS_CUSTOMERPROFILES_API GetSegmentMembershipResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetSegmentMembershipResult & WithFailures(FailuresT &&value)
GetSegmentMembershipResult & WithProfiles(ProfilesT &&value)
GetSegmentMembershipResult & AddFailures(FailuresT &&value)
const Aws::Vector< ProfileQueryResult > & GetProfiles() const
GetSegmentMembershipResult & WithRequestId(RequestIdT &&value)
AWS_CUSTOMERPROFILES_API GetSegmentMembershipResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetSegmentMembershipResult & WithSegmentDefinitionName(SegmentDefinitionNameT &&value)
GetSegmentMembershipResult & WithLastComputedAt(LastComputedAtT &&value)
const Aws::Vector< ProfileQueryFailures > & GetFailures() const
GetSegmentMembershipResult & AddProfiles(ProfilesT &&value)
AWS_CUSTOMERPROFILES_API GetSegmentMembershipResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue