AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
BatchGetProfileResult.h
1
6#pragma once
7#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/customer-profiles/model/BatchGetProfileError.h>
11#include <aws/customer-profiles/model/Profile.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 BatchGetProfileResult() = default;
36
37
39
44 inline const Aws::Vector<BatchGetProfileError>& GetErrors() const { return m_errors; }
45 template<typename ErrorsT = Aws::Vector<BatchGetProfileError>>
46 void SetErrors(ErrorsT&& value) { m_errorsHasBeenSet = true; m_errors = std::forward<ErrorsT>(value); }
47 template<typename ErrorsT = Aws::Vector<BatchGetProfileError>>
48 BatchGetProfileResult& WithErrors(ErrorsT&& value) { SetErrors(std::forward<ErrorsT>(value)); return *this;}
49 template<typename ErrorsT = BatchGetProfileError>
50 BatchGetProfileResult& AddErrors(ErrorsT&& value) { m_errorsHasBeenSet = true; m_errors.emplace_back(std::forward<ErrorsT>(value)); return *this; }
52
54
57 inline const Aws::Vector<Profile>& GetProfiles() const { return m_profiles; }
58 template<typename ProfilesT = Aws::Vector<Profile>>
59 void SetProfiles(ProfilesT&& value) { m_profilesHasBeenSet = true; m_profiles = std::forward<ProfilesT>(value); }
60 template<typename ProfilesT = Aws::Vector<Profile>>
61 BatchGetProfileResult& WithProfiles(ProfilesT&& value) { SetProfiles(std::forward<ProfilesT>(value)); return *this;}
62 template<typename ProfilesT = Profile>
63 BatchGetProfileResult& AddProfiles(ProfilesT&& value) { m_profilesHasBeenSet = true; m_profiles.emplace_back(std::forward<ProfilesT>(value)); return *this; }
65
67
68 inline const Aws::String& GetRequestId() const { return m_requestId; }
69 template<typename RequestIdT = Aws::String>
70 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
71 template<typename RequestIdT = Aws::String>
72 BatchGetProfileResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
74 private:
75
77 bool m_errorsHasBeenSet = false;
78
79 Aws::Vector<Profile> m_profiles;
80 bool m_profilesHasBeenSet = false;
81
82 Aws::String m_requestId;
83 bool m_requestIdHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace CustomerProfiles
88} // namespace Aws
BatchGetProfileResult & WithErrors(ErrorsT &&value)
BatchGetProfileResult & AddErrors(ErrorsT &&value)
AWS_CUSTOMERPROFILES_API BatchGetProfileResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
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