AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
SortAttribute.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
9#include <aws/customer-profiles/model/SegmentSortDataType.h>
10#include <aws/customer-profiles/model/SegmentSortOrder.h>
11#include <aws/customer-profiles/model/SortAttributeType.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
32 public:
33 AWS_CUSTOMERPROFILES_API SortAttribute() = default;
34 AWS_CUSTOMERPROFILES_API SortAttribute(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CUSTOMERPROFILES_API SortAttribute& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
50 SortAttribute& WithName(NameT&& value) {
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
60 inline SegmentSortDataType GetDataType() const { return m_dataType; }
61 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
62 inline void SetDataType(SegmentSortDataType value) {
63 m_dataTypeHasBeenSet = true;
64 m_dataType = value;
65 }
67 SetDataType(value);
68 return *this;
69 }
71
73
76 inline SegmentSortOrder GetOrder() const { return m_order; }
77 inline bool OrderHasBeenSet() const { return m_orderHasBeenSet; }
78 inline void SetOrder(SegmentSortOrder value) {
79 m_orderHasBeenSet = true;
80 m_order = value;
81 }
83 SetOrder(value);
84 return *this;
85 }
87
89
92 inline SortAttributeType GetType() const { return m_type; }
93 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
94 inline void SetType(SortAttributeType value) {
95 m_typeHasBeenSet = true;
96 m_type = value;
97 }
99 SetType(value);
100 return *this;
101 }
103 private:
104 Aws::String m_name;
105
107
109
111 bool m_nameHasBeenSet = false;
112 bool m_dataTypeHasBeenSet = false;
113 bool m_orderHasBeenSet = false;
114 bool m_typeHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace CustomerProfiles
119} // namespace Aws
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
SortAttribute & WithType(SortAttributeType value)
SortAttribute & WithName(NameT &&value)
AWS_CUSTOMERPROFILES_API SortAttribute()=default
SortAttribute & WithOrder(SegmentSortOrder value)
SortAttribute & WithDataType(SegmentSortDataType value)
AWS_CUSTOMERPROFILES_API SortAttribute & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CUSTOMERPROFILES_API SortAttribute(Aws::Utils::Json::JsonView jsonValue)
void SetDataType(SegmentSortDataType value)
SegmentSortDataType GetDataType() const
void SetType(SortAttributeType value)
void SetOrder(SegmentSortOrder value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue