AWS SDK for C++

AWS SDK for C++ Version 1.11.798

Loading...
Searching...
No Matches
SegmentSort.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/SortAttribute.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CustomerProfiles {
21namespace Model {
22
30 public:
31 AWS_CUSTOMERPROFILES_API SegmentSort() = default;
32 AWS_CUSTOMERPROFILES_API SegmentSort(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CUSTOMERPROFILES_API SegmentSort& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::Vector<SortAttribute>& GetAttributes() const { return m_attributes; }
42 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
43 template <typename AttributesT = Aws::Vector<SortAttribute>>
44 void SetAttributes(AttributesT&& value) {
45 m_attributesHasBeenSet = true;
46 m_attributes = std::forward<AttributesT>(value);
47 }
48 template <typename AttributesT = Aws::Vector<SortAttribute>>
49 SegmentSort& WithAttributes(AttributesT&& value) {
50 SetAttributes(std::forward<AttributesT>(value));
51 return *this;
52 }
53 template <typename AttributesT = SortAttribute>
54 SegmentSort& AddAttributes(AttributesT&& value) {
55 m_attributesHasBeenSet = true;
56 m_attributes.emplace_back(std::forward<AttributesT>(value));
57 return *this;
58 }
60 private:
61 Aws::Vector<SortAttribute> m_attributes;
62 bool m_attributesHasBeenSet = false;
63};
64
65} // namespace Model
66} // namespace CustomerProfiles
67} // namespace Aws
AWS_CUSTOMERPROFILES_API SegmentSort(Aws::Utils::Json::JsonView jsonValue)
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAttributes(AttributesT &&value)
Definition SegmentSort.h:44
AWS_CUSTOMERPROFILES_API SegmentSort()=default
SegmentSort & WithAttributes(AttributesT &&value)
Definition SegmentSort.h:49
SegmentSort & AddAttributes(AttributesT &&value)
Definition SegmentSort.h:54
AWS_CUSTOMERPROFILES_API SegmentSort & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< SortAttribute > & GetAttributes() const
Definition SegmentSort.h:41
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue