AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
Dimension.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
10#include <aws/customer-profiles/model/CalculatedAttributeDimension.h>
11#include <aws/customer-profiles/model/ProfileAttributes.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CustomerProfiles {
23namespace Model {
24
31class Dimension {
32 public:
33 AWS_CUSTOMERPROFILES_API Dimension() = default;
34 AWS_CUSTOMERPROFILES_API Dimension(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CUSTOMERPROFILES_API Dimension& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const ProfileAttributes& GetProfileAttributes() const { return m_profileAttributes; }
43 inline bool ProfileAttributesHasBeenSet() const { return m_profileAttributesHasBeenSet; }
44 template <typename ProfileAttributesT = ProfileAttributes>
45 void SetProfileAttributes(ProfileAttributesT&& value) {
46 m_profileAttributesHasBeenSet = true;
47 m_profileAttributes = std::forward<ProfileAttributesT>(value);
48 }
49 template <typename ProfileAttributesT = ProfileAttributes>
50 Dimension& WithProfileAttributes(ProfileAttributesT&& value) {
51 SetProfileAttributes(std::forward<ProfileAttributesT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Map<Aws::String, CalculatedAttributeDimension>& GetCalculatedAttributes() const { return m_calculatedAttributes; }
61 inline bool CalculatedAttributesHasBeenSet() const { return m_calculatedAttributesHasBeenSet; }
62 template <typename CalculatedAttributesT = Aws::Map<Aws::String, CalculatedAttributeDimension>>
63 void SetCalculatedAttributes(CalculatedAttributesT&& value) {
64 m_calculatedAttributesHasBeenSet = true;
65 m_calculatedAttributes = std::forward<CalculatedAttributesT>(value);
66 }
67 template <typename CalculatedAttributesT = Aws::Map<Aws::String, CalculatedAttributeDimension>>
68 Dimension& WithCalculatedAttributes(CalculatedAttributesT&& value) {
69 SetCalculatedAttributes(std::forward<CalculatedAttributesT>(value));
70 return *this;
71 }
72 template <typename CalculatedAttributesKeyT = Aws::String, typename CalculatedAttributesValueT = CalculatedAttributeDimension>
73 Dimension& AddCalculatedAttributes(CalculatedAttributesKeyT&& key, CalculatedAttributesValueT&& value) {
74 m_calculatedAttributesHasBeenSet = true;
75 m_calculatedAttributes.emplace(std::forward<CalculatedAttributesKeyT>(key), std::forward<CalculatedAttributesValueT>(value));
76 return *this;
77 }
79 private:
80 ProfileAttributes m_profileAttributes;
81
83 bool m_profileAttributesHasBeenSet = false;
84 bool m_calculatedAttributesHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace CustomerProfiles
89} // namespace Aws
void SetProfileAttributes(ProfileAttributesT &&value)
Definition Dimension.h:45
Dimension & AddCalculatedAttributes(CalculatedAttributesKeyT &&key, CalculatedAttributesValueT &&value)
Definition Dimension.h:73
AWS_CUSTOMERPROFILES_API Dimension & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCalculatedAttributes(CalculatedAttributesT &&value)
Definition Dimension.h:63
const ProfileAttributes & GetProfileAttributes() const
Definition Dimension.h:42
Dimension & WithProfileAttributes(ProfileAttributesT &&value)
Definition Dimension.h:50
Dimension & WithCalculatedAttributes(CalculatedAttributesT &&value)
Definition Dimension.h:68
AWS_CUSTOMERPROFILES_API Dimension()=default
const Aws::Map< Aws::String, CalculatedAttributeDimension > & GetCalculatedAttributes() const
Definition Dimension.h:60
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CUSTOMERPROFILES_API Dimension(Aws::Utils::Json::JsonView jsonValue)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue