AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
BatchGetProfileResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
11#include <aws/customer-profiles/model/BatchGetProfileError.h>
12#include <aws/customer-profiles/model/Profile.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace CustomerProfiles {
26namespace Model {
28 public:
29 AWS_CUSTOMERPROFILES_API BatchGetProfileResult() = default;
32
34
39 inline const Aws::Vector<BatchGetProfileError>& GetErrors() const { return m_errors; }
40 template <typename ErrorsT = Aws::Vector<BatchGetProfileError>>
41 void SetErrors(ErrorsT&& value) {
42 m_errorsHasBeenSet = true;
43 m_errors = std::forward<ErrorsT>(value);
44 }
45 template <typename ErrorsT = Aws::Vector<BatchGetProfileError>>
47 SetErrors(std::forward<ErrorsT>(value));
48 return *this;
49 }
50 template <typename ErrorsT = BatchGetProfileError>
51 BatchGetProfileResult& AddErrors(ErrorsT&& value) {
52 m_errorsHasBeenSet = true;
53 m_errors.emplace_back(std::forward<ErrorsT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::Vector<Profile>& GetProfiles() const { return m_profiles; }
63 template <typename ProfilesT = Aws::Vector<Profile>>
64 void SetProfiles(ProfilesT&& value) {
65 m_profilesHasBeenSet = true;
66 m_profiles = std::forward<ProfilesT>(value);
67 }
68 template <typename ProfilesT = Aws::Vector<Profile>>
69 BatchGetProfileResult& WithProfiles(ProfilesT&& value) {
70 SetProfiles(std::forward<ProfilesT>(value));
71 return *this;
72 }
73 template <typename ProfilesT = Profile>
74 BatchGetProfileResult& AddProfiles(ProfilesT&& value) {
75 m_profilesHasBeenSet = true;
76 m_profiles.emplace_back(std::forward<ProfilesT>(value));
77 return *this;
78 }
80
82
83 inline const Aws::String& GetRequestId() const { return m_requestId; }
84 template <typename RequestIdT = Aws::String>
85 void SetRequestId(RequestIdT&& value) {
86 m_requestIdHasBeenSet = true;
87 m_requestId = std::forward<RequestIdT>(value);
88 }
89 template <typename RequestIdT = Aws::String>
90 BatchGetProfileResult& WithRequestId(RequestIdT&& value) {
91 SetRequestId(std::forward<RequestIdT>(value));
92 return *this;
93 }
95 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
96
97 private:
99
100 Aws::Vector<Profile> m_profiles;
101
102 Aws::String m_requestId;
103 Aws::Http::HttpResponseCode m_HttpResponseCode;
104 bool m_errorsHasBeenSet = false;
105 bool m_profilesHasBeenSet = false;
106 bool m_requestIdHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace CustomerProfiles
111} // namespace Aws
BatchGetProfileResult & WithErrors(ErrorsT &&value)
BatchGetProfileResult & AddErrors(ErrorsT &&value)
AWS_CUSTOMERPROFILES_API BatchGetProfileResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
BatchGetProfileResult & WithRequestId(RequestIdT &&value)
AWS_CUSTOMERPROFILES_API BatchGetProfileResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchGetProfileResult & AddProfiles(ProfilesT &&value)
const Aws::Vector< BatchGetProfileError > & GetErrors() const
const Aws::Vector< Profile > & GetProfiles() const
AWS_CUSTOMERPROFILES_API BatchGetProfileResult()=default
BatchGetProfileResult & WithProfiles(ProfilesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue