AWS SDK for C++  1.8.95
AWS SDK for C++
OrderByElement.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace ApplicationDiscoveryService
23 {
24 namespace Model
25 {
26 
33  {
34  public:
37  OrderByElement& operator=(Aws::Utils::Json::JsonView jsonValue);
38  Aws::Utils::Json::JsonValue Jsonize() const;
39 
40 
44  inline const Aws::String& GetFieldName() const{ return m_fieldName; }
45 
49  inline bool FieldNameHasBeenSet() const { return m_fieldNameHasBeenSet; }
50 
54  inline void SetFieldName(const Aws::String& value) { m_fieldNameHasBeenSet = true; m_fieldName = value; }
55 
59  inline void SetFieldName(Aws::String&& value) { m_fieldNameHasBeenSet = true; m_fieldName = std::move(value); }
60 
64  inline void SetFieldName(const char* value) { m_fieldNameHasBeenSet = true; m_fieldName.assign(value); }
65 
69  inline OrderByElement& WithFieldName(const Aws::String& value) { SetFieldName(value); return *this;}
70 
74  inline OrderByElement& WithFieldName(Aws::String&& value) { SetFieldName(std::move(value)); return *this;}
75 
79  inline OrderByElement& WithFieldName(const char* value) { SetFieldName(value); return *this;}
80 
81 
85  inline const OrderString& GetSortOrder() const{ return m_sortOrder; }
86 
90  inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
91 
95  inline void SetSortOrder(const OrderString& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
96 
100  inline void SetSortOrder(OrderString&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
101 
105  inline OrderByElement& WithSortOrder(const OrderString& value) { SetSortOrder(value); return *this;}
106 
110  inline OrderByElement& WithSortOrder(OrderString&& value) { SetSortOrder(std::move(value)); return *this;}
111 
112  private:
113 
114  Aws::String m_fieldName;
115  bool m_fieldNameHasBeenSet;
116 
117  OrderString m_sortOrder;
118  bool m_sortOrderHasBeenSet;
119  };
120 
121 } // namespace Model
122 } // namespace ApplicationDiscoveryService
123 } // namespace Aws
OrderByElement & WithFieldName(Aws::String &&value)
#define AWS_APPLICATIONDISCOVERYSERVICE_API
OrderByElement & WithSortOrder(OrderString &&value)
OrderByElement & WithFieldName(const char *value)
OrderByElement & WithFieldName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
OrderByElement & WithSortOrder(const OrderString &value)