AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SegmentGroup.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/pinpoint/model/SourceType.h>
10#include <aws/pinpoint/model/Type.h>
11#include <aws/pinpoint/model/SegmentDimensions.h>
12#include <aws/pinpoint/model/SegmentReference.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Pinpoint
26{
27namespace Model
28{
29
38 {
39 public:
40 AWS_PINPOINT_API SegmentGroup();
41 AWS_PINPOINT_API SegmentGroup(Aws::Utils::Json::JsonView jsonValue);
43 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::Vector<SegmentDimensions>& GetDimensions() const{ return m_dimensions; }
51 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
52 inline void SetDimensions(const Aws::Vector<SegmentDimensions>& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; }
53 inline void SetDimensions(Aws::Vector<SegmentDimensions>&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::move(value); }
54 inline SegmentGroup& WithDimensions(const Aws::Vector<SegmentDimensions>& value) { SetDimensions(value); return *this;}
55 inline SegmentGroup& WithDimensions(Aws::Vector<SegmentDimensions>&& value) { SetDimensions(std::move(value)); return *this;}
56 inline SegmentGroup& AddDimensions(const SegmentDimensions& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(value); return *this; }
57 inline SegmentGroup& AddDimensions(SegmentDimensions&& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(std::move(value)); return *this; }
59
61
71 inline const Aws::Vector<SegmentReference>& GetSourceSegments() const{ return m_sourceSegments; }
72 inline bool SourceSegmentsHasBeenSet() const { return m_sourceSegmentsHasBeenSet; }
73 inline void SetSourceSegments(const Aws::Vector<SegmentReference>& value) { m_sourceSegmentsHasBeenSet = true; m_sourceSegments = value; }
74 inline void SetSourceSegments(Aws::Vector<SegmentReference>&& value) { m_sourceSegmentsHasBeenSet = true; m_sourceSegments = std::move(value); }
76 inline SegmentGroup& WithSourceSegments(Aws::Vector<SegmentReference>&& value) { SetSourceSegments(std::move(value)); return *this;}
77 inline SegmentGroup& AddSourceSegments(const SegmentReference& value) { m_sourceSegmentsHasBeenSet = true; m_sourceSegments.push_back(value); return *this; }
78 inline SegmentGroup& AddSourceSegments(SegmentReference&& value) { m_sourceSegmentsHasBeenSet = true; m_sourceSegments.push_back(std::move(value)); return *this; }
80
82
87 inline const SourceType& GetSourceType() const{ return m_sourceType; }
88 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
89 inline void SetSourceType(const SourceType& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
90 inline void SetSourceType(SourceType&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
91 inline SegmentGroup& WithSourceType(const SourceType& value) { SetSourceType(value); return *this;}
92 inline SegmentGroup& WithSourceType(SourceType&& value) { SetSourceType(std::move(value)); return *this;}
94
96
101 inline const Type& GetType() const{ return m_type; }
102 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
103 inline void SetType(const Type& value) { m_typeHasBeenSet = true; m_type = value; }
104 inline void SetType(Type&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
105 inline SegmentGroup& WithType(const Type& value) { SetType(value); return *this;}
106 inline SegmentGroup& WithType(Type&& value) { SetType(std::move(value)); return *this;}
108 private:
109
111 bool m_dimensionsHasBeenSet = false;
112
113 Aws::Vector<SegmentReference> m_sourceSegments;
114 bool m_sourceSegmentsHasBeenSet = false;
115
116 SourceType m_sourceType;
117 bool m_sourceTypeHasBeenSet = false;
118
119 Type m_type;
120 bool m_typeHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace Pinpoint
125} // namespace Aws
void SetSourceSegments(const Aws::Vector< SegmentReference > &value)
void SetSourceType(SourceType &&value)
const Aws::Vector< SegmentReference > & GetSourceSegments() const
SegmentGroup & AddSourceSegments(const SegmentReference &value)
SegmentGroup & WithSourceType(const SourceType &value)
const SourceType & GetSourceType() const
SegmentGroup & WithDimensions(const Aws::Vector< SegmentDimensions > &value)
void SetSourceSegments(Aws::Vector< SegmentReference > &&value)
SegmentGroup & AddDimensions(SegmentDimensions &&value)
SegmentGroup & AddDimensions(const SegmentDimensions &value)
SegmentGroup & WithType(const Type &value)
AWS_PINPOINT_API SegmentGroup(Aws::Utils::Json::JsonView jsonValue)
SegmentGroup & AddSourceSegments(SegmentReference &&value)
void SetDimensions(const Aws::Vector< SegmentDimensions > &value)
AWS_PINPOINT_API SegmentGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< SegmentDimensions > & GetDimensions() const
void SetDimensions(Aws::Vector< SegmentDimensions > &&value)
SegmentGroup & WithType(Type &&value)
SegmentGroup & WithDimensions(Aws::Vector< SegmentDimensions > &&value)
void SetSourceType(const SourceType &value)
SegmentGroup & WithSourceSegments(const Aws::Vector< SegmentReference > &value)
void SetType(const Type &value)
SegmentGroup & WithSourceType(SourceType &&value)
SegmentGroup & WithSourceSegments(Aws::Vector< SegmentReference > &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue