AWS SDK for C++  1.8.186
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:
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
Aws::ApplicationDiscoveryService::Model::OrderByElement::GetSortOrder
const OrderString & GetSortOrder() const
Definition: OrderByElement.h:85
Aws::ApplicationDiscoveryService::Model::OrderByElement::OrderByElement
OrderByElement()
Aws::ApplicationDiscoveryService::Model::OrderByElement::SetFieldName
void SetFieldName(Aws::String &&value)
Definition: OrderByElement.h:59
Aws::ApplicationDiscoveryService::Model::OrderByElement::WithFieldName
OrderByElement & WithFieldName(Aws::String &&value)
Definition: OrderByElement.h:74
Aws::ApplicationDiscoveryService::Model::OrderByElement
Definition: OrderByElement.h:33
Aws::ApplicationDiscoveryService::Model::OrderByElement::WithFieldName
OrderByElement & WithFieldName(const Aws::String &value)
Definition: OrderByElement.h:69
Aws::ApplicationDiscoveryService::Model::OrderByElement::operator=
OrderByElement & operator=(Aws::Utils::Json::JsonView jsonValue)
ApplicationDiscoveryService_EXPORTS.h
Aws::ApplicationDiscoveryService::Model::OrderByElement::WithSortOrder
OrderByElement & WithSortOrder(OrderString &&value)
Definition: OrderByElement.h:110
Aws::ApplicationDiscoveryService::Model::OrderByElement::FieldNameHasBeenSet
bool FieldNameHasBeenSet() const
Definition: OrderByElement.h:49
Aws::ApplicationDiscoveryService::Model::OrderByElement::SetSortOrder
void SetSortOrder(OrderString &&value)
Definition: OrderByElement.h:100
Aws::ApplicationDiscoveryService::Model::OrderByElement::WithSortOrder
OrderByElement & WithSortOrder(const OrderString &value)
Definition: OrderByElement.h:105
Aws::ApplicationDiscoveryService::Model::OrderString
OrderString
Definition: OrderString.h:17
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::ApplicationDiscoveryService::Model::OrderByElement::SetFieldName
void SetFieldName(const Aws::String &value)
Definition: OrderByElement.h:54
OrderString.h
Aws::ApplicationDiscoveryService::Model::OrderByElement::SetFieldName
void SetFieldName(const char *value)
Definition: OrderByElement.h:64
Aws::ApplicationDiscoveryService::Model::OrderByElement::SortOrderHasBeenSet
bool SortOrderHasBeenSet() const
Definition: OrderByElement.h:90
Aws::ApplicationDiscoveryService::Model::OrderByElement::GetFieldName
const Aws::String & GetFieldName() const
Definition: OrderByElement.h:44
Aws::ApplicationDiscoveryService::Model::OrderByElement::WithFieldName
OrderByElement & WithFieldName(const char *value)
Definition: OrderByElement.h:79
Aws
Definition: AccessManagementClient.h:15
Aws::ApplicationDiscoveryService::Model::OrderByElement::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ApplicationDiscoveryService::Model::OrderByElement::SetSortOrder
void SetSortOrder(const OrderString &value)
Definition: OrderByElement.h:95
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ApplicationDiscoveryService::Model::OrderByElement::OrderByElement
OrderByElement(Aws::Utils::Json::JsonView jsonValue)
AWS_APPLICATIONDISCOVERYSERVICE_API
#define AWS_APPLICATIONDISCOVERYSERVICE_API
Definition: ApplicationDiscoveryService_EXPORTS.h:28