AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
Dimension.h
1
6#pragma once
7#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
8#include <aws/customer-profiles/model/ProfileAttributes.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/customer-profiles/model/CalculatedAttributeDimension.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CustomerProfiles
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_CUSTOMERPROFILES_API Dimension() = default;
39 AWS_CUSTOMERPROFILES_API Dimension(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CUSTOMERPROFILES_API Dimension& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const ProfileAttributes& GetProfileAttributes() const { return m_profileAttributes; }
49 inline bool ProfileAttributesHasBeenSet() const { return m_profileAttributesHasBeenSet; }
50 template<typename ProfileAttributesT = ProfileAttributes>
51 void SetProfileAttributes(ProfileAttributesT&& value) { m_profileAttributesHasBeenSet = true; m_profileAttributes = std::forward<ProfileAttributesT>(value); }
52 template<typename ProfileAttributesT = ProfileAttributes>
53 Dimension& WithProfileAttributes(ProfileAttributesT&& value) { SetProfileAttributes(std::forward<ProfileAttributesT>(value)); return *this;}
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) { m_calculatedAttributesHasBeenSet = true; m_calculatedAttributes = std::forward<CalculatedAttributesT>(value); }
64 template<typename CalculatedAttributesT = Aws::Map<Aws::String, CalculatedAttributeDimension>>
65 Dimension& WithCalculatedAttributes(CalculatedAttributesT&& value) { SetCalculatedAttributes(std::forward<CalculatedAttributesT>(value)); return *this;}
66 template<typename CalculatedAttributesKeyT = Aws::String, typename CalculatedAttributesValueT = CalculatedAttributeDimension>
67 Dimension& AddCalculatedAttributes(CalculatedAttributesKeyT&& key, CalculatedAttributesValueT&& value) {
68 m_calculatedAttributesHasBeenSet = true; m_calculatedAttributes.emplace(std::forward<CalculatedAttributesKeyT>(key), std::forward<CalculatedAttributesValueT>(value)); return *this;
69 }
71 private:
72
73 ProfileAttributes m_profileAttributes;
74 bool m_profileAttributesHasBeenSet = false;
75
77 bool m_calculatedAttributesHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace CustomerProfiles
82} // namespace Aws
void SetProfileAttributes(ProfileAttributesT &&value)
Definition Dimension.h:51
Dimension & AddCalculatedAttributes(CalculatedAttributesKeyT &&key, CalculatedAttributesValueT &&value)
Definition Dimension.h:67
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:48
Dimension & WithProfileAttributes(ProfileAttributesT &&value)
Definition Dimension.h:53
Dimension & WithCalculatedAttributes(CalculatedAttributesT &&value)
Definition Dimension.h:65
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