AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
Group.h
1
6#pragma once
7#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/customer-profiles/model/IncludeOptions.h>
10#include <aws/customer-profiles/model/Dimension.h>
11#include <aws/customer-profiles/model/SourceSegment.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
35 class Group
36 {
37 public:
38 AWS_CUSTOMERPROFILES_API Group() = default;
39 AWS_CUSTOMERPROFILES_API Group(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CUSTOMERPROFILES_API Group& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Vector<Dimension>& GetDimensions() const { return m_dimensions; }
49 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
50 template<typename DimensionsT = Aws::Vector<Dimension>>
51 void SetDimensions(DimensionsT&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::forward<DimensionsT>(value); }
52 template<typename DimensionsT = Aws::Vector<Dimension>>
53 Group& WithDimensions(DimensionsT&& value) { SetDimensions(std::forward<DimensionsT>(value)); return *this;}
54 template<typename DimensionsT = Dimension>
55 Group& AddDimensions(DimensionsT&& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace_back(std::forward<DimensionsT>(value)); return *this; }
57
59
62 inline const Aws::Vector<SourceSegment>& GetSourceSegments() const { return m_sourceSegments; }
63 inline bool SourceSegmentsHasBeenSet() const { return m_sourceSegmentsHasBeenSet; }
64 template<typename SourceSegmentsT = Aws::Vector<SourceSegment>>
65 void SetSourceSegments(SourceSegmentsT&& value) { m_sourceSegmentsHasBeenSet = true; m_sourceSegments = std::forward<SourceSegmentsT>(value); }
66 template<typename SourceSegmentsT = Aws::Vector<SourceSegment>>
67 Group& WithSourceSegments(SourceSegmentsT&& value) { SetSourceSegments(std::forward<SourceSegmentsT>(value)); return *this;}
68 template<typename SourceSegmentsT = SourceSegment>
69 Group& AddSourceSegments(SourceSegmentsT&& value) { m_sourceSegmentsHasBeenSet = true; m_sourceSegments.emplace_back(std::forward<SourceSegmentsT>(value)); return *this; }
71
73
76 inline IncludeOptions GetSourceType() const { return m_sourceType; }
77 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
78 inline void SetSourceType(IncludeOptions value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
79 inline Group& WithSourceType(IncludeOptions value) { SetSourceType(value); return *this;}
81
83
86 inline IncludeOptions GetType() const { return m_type; }
87 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
88 inline void SetType(IncludeOptions value) { m_typeHasBeenSet = true; m_type = value; }
89 inline Group& WithType(IncludeOptions value) { SetType(value); return *this;}
91 private:
92
93 Aws::Vector<Dimension> m_dimensions;
94 bool m_dimensionsHasBeenSet = false;
95
96 Aws::Vector<SourceSegment> m_sourceSegments;
97 bool m_sourceSegmentsHasBeenSet = false;
98
100 bool m_sourceTypeHasBeenSet = false;
101
103 bool m_typeHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace CustomerProfiles
108} // namespace Aws
IncludeOptions GetSourceType() const
Definition Group.h:76
bool SourceSegmentsHasBeenSet() const
Definition Group.h:63
void SetSourceSegments(SourceSegmentsT &&value)
Definition Group.h:65
Group & AddSourceSegments(SourceSegmentsT &&value)
Definition Group.h:69
Group & WithSourceType(IncludeOptions value)
Definition Group.h:79
AWS_CUSTOMERPROFILES_API Group(Aws::Utils::Json::JsonView jsonValue)
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
IncludeOptions GetType() const
Definition Group.h:86
Group & WithDimensions(DimensionsT &&value)
Definition Group.h:53
void SetType(IncludeOptions value)
Definition Group.h:88
const Aws::Vector< SourceSegment > & GetSourceSegments() const
Definition Group.h:62
Group & WithSourceSegments(SourceSegmentsT &&value)
Definition Group.h:67
void SetSourceType(IncludeOptions value)
Definition Group.h:78
const Aws::Vector< Dimension > & GetDimensions() const
Definition Group.h:48
AWS_CUSTOMERPROFILES_API Group()=default
Group & AddDimensions(DimensionsT &&value)
Definition Group.h:55
void SetDimensions(DimensionsT &&value)
Definition Group.h:51
Group & WithType(IncludeOptions value)
Definition Group.h:89
AWS_CUSTOMERPROFILES_API Group & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue