AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
AttributeDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
10#include <aws/customer-profiles/model/AttributeItem.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CustomerProfiles {
22namespace Model {
23
31 public:
32 AWS_CUSTOMERPROFILES_API AttributeDetails() = default;
33 AWS_CUSTOMERPROFILES_API AttributeDetails(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CUSTOMERPROFILES_API AttributeDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::Vector<AttributeItem>& GetAttributes() const { return m_attributes; }
42 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
43 template <typename AttributesT = Aws::Vector<AttributeItem>>
44 void SetAttributes(AttributesT&& value) {
45 m_attributesHasBeenSet = true;
46 m_attributes = std::forward<AttributesT>(value);
47 }
48 template <typename AttributesT = Aws::Vector<AttributeItem>>
49 AttributeDetails& WithAttributes(AttributesT&& value) {
50 SetAttributes(std::forward<AttributesT>(value));
51 return *this;
52 }
53 template <typename AttributesT = AttributeItem>
54 AttributeDetails& AddAttributes(AttributesT&& value) {
55 m_attributesHasBeenSet = true;
56 m_attributes.emplace_back(std::forward<AttributesT>(value));
57 return *this;
58 }
60
62
67 inline const Aws::String& GetExpression() const { return m_expression; }
68 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
69 template <typename ExpressionT = Aws::String>
70 void SetExpression(ExpressionT&& value) {
71 m_expressionHasBeenSet = true;
72 m_expression = std::forward<ExpressionT>(value);
73 }
74 template <typename ExpressionT = Aws::String>
75 AttributeDetails& WithExpression(ExpressionT&& value) {
76 SetExpression(std::forward<ExpressionT>(value));
77 return *this;
78 }
80 private:
81 Aws::Vector<AttributeItem> m_attributes;
82
83 Aws::String m_expression;
84 bool m_attributesHasBeenSet = false;
85 bool m_expressionHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace CustomerProfiles
90} // namespace Aws
AWS_CUSTOMERPROFILES_API AttributeDetails()=default
AWS_CUSTOMERPROFILES_API AttributeDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< AttributeItem > & GetAttributes() const
AttributeDetails & WithExpression(ExpressionT &&value)
AttributeDetails & WithAttributes(AttributesT &&value)
AWS_CUSTOMERPROFILES_API AttributeDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AttributeDetails & AddAttributes(AttributesT &&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