AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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