AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
OrderByElement.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/discovery/ApplicationDiscoveryService_EXPORTS.h>
9#include <aws/discovery/model/OrderString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ApplicationDiscoveryService {
21namespace Model {
22
29 public:
30 AWS_APPLICATIONDISCOVERYSERVICE_API OrderByElement() = default;
31 AWS_APPLICATIONDISCOVERYSERVICE_API OrderByElement(Aws::Utils::Json::JsonView jsonValue);
32 AWS_APPLICATIONDISCOVERYSERVICE_API OrderByElement& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPLICATIONDISCOVERYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetFieldName() const { return m_fieldName; }
40 inline bool FieldNameHasBeenSet() const { return m_fieldNameHasBeenSet; }
41 template <typename FieldNameT = Aws::String>
42 void SetFieldName(FieldNameT&& value) {
43 m_fieldNameHasBeenSet = true;
44 m_fieldName = std::forward<FieldNameT>(value);
45 }
46 template <typename FieldNameT = Aws::String>
47 OrderByElement& WithFieldName(FieldNameT&& value) {
48 SetFieldName(std::forward<FieldNameT>(value));
49 return *this;
50 }
52
54
57 inline OrderString GetSortOrder() const { return m_sortOrder; }
58 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
59 inline void SetSortOrder(OrderString value) {
60 m_sortOrderHasBeenSet = true;
61 m_sortOrder = value;
62 }
64 SetSortOrder(value);
65 return *this;
66 }
68 private:
69 Aws::String m_fieldName;
70
72 bool m_fieldNameHasBeenSet = false;
73 bool m_sortOrderHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace ApplicationDiscoveryService
78} // namespace Aws
AWS_APPLICATIONDISCOVERYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPLICATIONDISCOVERYSERVICE_API OrderByElement()=default
OrderByElement & WithSortOrder(OrderString value)
OrderByElement & WithFieldName(FieldNameT &&value)
AWS_APPLICATIONDISCOVERYSERVICE_API OrderByElement(Aws::Utils::Json::JsonView jsonValue)
AWS_APPLICATIONDISCOVERYSERVICE_API OrderByElement & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue