AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
BatchGetProfileError.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CustomerProfiles {
20namespace Model {
21
29 public:
30 AWS_CUSTOMERPROFILES_API BatchGetProfileError() = default;
31 AWS_CUSTOMERPROFILES_API BatchGetProfileError(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CUSTOMERPROFILES_API BatchGetProfileError& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetCode() const { return m_code; }
40 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
41 template <typename CodeT = Aws::String>
42 void SetCode(CodeT&& value) {
43 m_codeHasBeenSet = true;
44 m_code = std::forward<CodeT>(value);
45 }
46 template <typename CodeT = Aws::String>
48 SetCode(std::forward<CodeT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetMessage() const { return m_message; }
58 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
59 template <typename MessageT = Aws::String>
60 void SetMessage(MessageT&& value) {
61 m_messageHasBeenSet = true;
62 m_message = std::forward<MessageT>(value);
63 }
64 template <typename MessageT = Aws::String>
65 BatchGetProfileError& WithMessage(MessageT&& value) {
66 SetMessage(std::forward<MessageT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetProfileId() const { return m_profileId; }
76 inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; }
77 template <typename ProfileIdT = Aws::String>
78 void SetProfileId(ProfileIdT&& value) {
79 m_profileIdHasBeenSet = true;
80 m_profileId = std::forward<ProfileIdT>(value);
81 }
82 template <typename ProfileIdT = Aws::String>
83 BatchGetProfileError& WithProfileId(ProfileIdT&& value) {
84 SetProfileId(std::forward<ProfileIdT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_code;
90
91 Aws::String m_message;
92
93 Aws::String m_profileId;
94 bool m_codeHasBeenSet = false;
95 bool m_messageHasBeenSet = false;
96 bool m_profileIdHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace CustomerProfiles
101} // namespace Aws
BatchGetProfileError & WithMessage(MessageT &&value)
BatchGetProfileError & WithCode(CodeT &&value)
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CUSTOMERPROFILES_API BatchGetProfileError(Aws::Utils::Json::JsonView jsonValue)
AWS_CUSTOMERPROFILES_API BatchGetProfileError & operator=(Aws::Utils::Json::JsonView jsonValue)
BatchGetProfileError & WithProfileId(ProfileIdT &&value)
AWS_CUSTOMERPROFILES_API BatchGetProfileError()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue