AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
Group.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
9#include <aws/customer-profiles/model/Dimension.h>
10#include <aws/customer-profiles/model/IncludeOptions.h>
11#include <aws/customer-profiles/model/SourceSegment.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 Group {
32 public:
33 AWS_CUSTOMERPROFILES_API Group() = default;
34 AWS_CUSTOMERPROFILES_API Group(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CUSTOMERPROFILES_API Group& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::Vector<Dimension>& GetDimensions() const { return m_dimensions; }
43 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
44 template <typename DimensionsT = Aws::Vector<Dimension>>
45 void SetDimensions(DimensionsT&& value) {
46 m_dimensionsHasBeenSet = true;
47 m_dimensions = std::forward<DimensionsT>(value);
48 }
49 template <typename DimensionsT = Aws::Vector<Dimension>>
50 Group& WithDimensions(DimensionsT&& value) {
51 SetDimensions(std::forward<DimensionsT>(value));
52 return *this;
53 }
54 template <typename DimensionsT = Dimension>
55 Group& AddDimensions(DimensionsT&& value) {
56 m_dimensionsHasBeenSet = true;
57 m_dimensions.emplace_back(std::forward<DimensionsT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::Vector<SourceSegment>& GetSourceSegments() const { return m_sourceSegments; }
67 inline bool SourceSegmentsHasBeenSet() const { return m_sourceSegmentsHasBeenSet; }
68 template <typename SourceSegmentsT = Aws::Vector<SourceSegment>>
69 void SetSourceSegments(SourceSegmentsT&& value) {
70 m_sourceSegmentsHasBeenSet = true;
71 m_sourceSegments = std::forward<SourceSegmentsT>(value);
72 }
73 template <typename SourceSegmentsT = Aws::Vector<SourceSegment>>
74 Group& WithSourceSegments(SourceSegmentsT&& value) {
75 SetSourceSegments(std::forward<SourceSegmentsT>(value));
76 return *this;
77 }
78 template <typename SourceSegmentsT = SourceSegment>
79 Group& AddSourceSegments(SourceSegmentsT&& value) {
80 m_sourceSegmentsHasBeenSet = true;
81 m_sourceSegments.emplace_back(std::forward<SourceSegmentsT>(value));
82 return *this;
83 }
85
87
90 inline IncludeOptions GetSourceType() const { return m_sourceType; }
91 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
92 inline void SetSourceType(IncludeOptions value) {
93 m_sourceTypeHasBeenSet = true;
94 m_sourceType = value;
95 }
97 SetSourceType(value);
98 return *this;
99 }
101
103
106 inline IncludeOptions GetType() const { return m_type; }
107 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
108 inline void SetType(IncludeOptions value) {
109 m_typeHasBeenSet = true;
110 m_type = value;
111 }
113 SetType(value);
114 return *this;
115 }
117 private:
118 Aws::Vector<Dimension> m_dimensions;
119
120 Aws::Vector<SourceSegment> m_sourceSegments;
121
123
125 bool m_dimensionsHasBeenSet = false;
126 bool m_sourceSegmentsHasBeenSet = false;
127 bool m_sourceTypeHasBeenSet = false;
128 bool m_typeHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace CustomerProfiles
133} // namespace Aws
IncludeOptions GetSourceType() const
Definition Group.h:90
bool SourceSegmentsHasBeenSet() const
Definition Group.h:67
void SetSourceSegments(SourceSegmentsT &&value)
Definition Group.h:69
Group & AddSourceSegments(SourceSegmentsT &&value)
Definition Group.h:79
Group & WithSourceType(IncludeOptions value)
Definition Group.h:96
AWS_CUSTOMERPROFILES_API Group(Aws::Utils::Json::JsonView jsonValue)
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
IncludeOptions GetType() const
Definition Group.h:106
Group & WithDimensions(DimensionsT &&value)
Definition Group.h:50
void SetType(IncludeOptions value)
Definition Group.h:108
const Aws::Vector< SourceSegment > & GetSourceSegments() const
Definition Group.h:66
Group & WithSourceSegments(SourceSegmentsT &&value)
Definition Group.h:74
void SetSourceType(IncludeOptions value)
Definition Group.h:92
const Aws::Vector< Dimension > & GetDimensions() const
Definition Group.h:42
AWS_CUSTOMERPROFILES_API Group()=default
Group & AddDimensions(DimensionsT &&value)
Definition Group.h:55
void SetDimensions(DimensionsT &&value)
Definition Group.h:45
Group & WithType(IncludeOptions value)
Definition Group.h:112
AWS_CUSTOMERPROFILES_API Group & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue