AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
GetSegmentMembershipResult.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/core/utils/memory/stl/AWSVector.h>
10#include <aws/customer-profiles/model/ProfileQueryResult.h>
11#include <aws/customer-profiles/model/ProfileQueryFailures.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace CustomerProfiles
27{
28namespace Model
29{
31 {
32 public:
33 AWS_CUSTOMERPROFILES_API GetSegmentMembershipResult() = default;
36
37
39
42 inline const Aws::String& GetSegmentDefinitionName() const { return m_segmentDefinitionName; }
43 template<typename SegmentDefinitionNameT = Aws::String>
44 void SetSegmentDefinitionName(SegmentDefinitionNameT&& value) { m_segmentDefinitionNameHasBeenSet = true; m_segmentDefinitionName = std::forward<SegmentDefinitionNameT>(value); }
45 template<typename SegmentDefinitionNameT = Aws::String>
46 GetSegmentMembershipResult& WithSegmentDefinitionName(SegmentDefinitionNameT&& value) { SetSegmentDefinitionName(std::forward<SegmentDefinitionNameT>(value)); return *this;}
48
50
53 inline const Aws::Vector<ProfileQueryResult>& GetProfiles() const { return m_profiles; }
54 template<typename ProfilesT = Aws::Vector<ProfileQueryResult>>
55 void SetProfiles(ProfilesT&& value) { m_profilesHasBeenSet = true; m_profiles = std::forward<ProfilesT>(value); }
56 template<typename ProfilesT = Aws::Vector<ProfileQueryResult>>
57 GetSegmentMembershipResult& WithProfiles(ProfilesT&& value) { SetProfiles(std::forward<ProfilesT>(value)); return *this;}
58 template<typename ProfilesT = ProfileQueryResult>
59 GetSegmentMembershipResult& AddProfiles(ProfilesT&& value) { m_profilesHasBeenSet = true; m_profiles.emplace_back(std::forward<ProfilesT>(value)); return *this; }
61
63
67 inline const Aws::Vector<ProfileQueryFailures>& GetFailures() const { return m_failures; }
68 template<typename FailuresT = Aws::Vector<ProfileQueryFailures>>
69 void SetFailures(FailuresT&& value) { m_failuresHasBeenSet = true; m_failures = std::forward<FailuresT>(value); }
70 template<typename FailuresT = Aws::Vector<ProfileQueryFailures>>
71 GetSegmentMembershipResult& WithFailures(FailuresT&& value) { SetFailures(std::forward<FailuresT>(value)); return *this;}
72 template<typename FailuresT = ProfileQueryFailures>
73 GetSegmentMembershipResult& AddFailures(FailuresT&& value) { m_failuresHasBeenSet = true; m_failures.emplace_back(std::forward<FailuresT>(value)); return *this; }
75
77
78 inline const Aws::String& GetRequestId() const { return m_requestId; }
79 template<typename RequestIdT = Aws::String>
80 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
81 template<typename RequestIdT = Aws::String>
82 GetSegmentMembershipResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
84 private:
85
86 Aws::String m_segmentDefinitionName;
87 bool m_segmentDefinitionNameHasBeenSet = false;
88
90 bool m_profilesHasBeenSet = false;
91
93 bool m_failuresHasBeenSet = false;
94
95 Aws::String m_requestId;
96 bool m_requestIdHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace CustomerProfiles
101} // 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)
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