1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSString.h> 9 #include <aws/accessanalyzer/model/OrderBy.h> 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 AccessAnalyzer 23 { 24 namespace Model 25 { 26 27 /** 28 * <p>The criteria used to sort.</p><p><h3>See Also:</h3> <a 29 * href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/SortCriteria">AWS 30 * API Reference</a></p> 31 */ 32 class AWS_ACCESSANALYZER_API SortCriteria 33 { 34 public: 35 SortCriteria(); 36 SortCriteria(Aws::Utils::Json::JsonView jsonValue); 37 SortCriteria& operator=(Aws::Utils::Json::JsonView jsonValue); 38 Aws::Utils::Json::JsonValue Jsonize() const; 39 40 41 /** 42 * <p>The name of the attribute to sort on.</p> 43 */ GetAttributeName()44 inline const Aws::String& GetAttributeName() const{ return m_attributeName; } 45 46 /** 47 * <p>The name of the attribute to sort on.</p> 48 */ AttributeNameHasBeenSet()49 inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; } 50 51 /** 52 * <p>The name of the attribute to sort on.</p> 53 */ SetAttributeName(const Aws::String & value)54 inline void SetAttributeName(const Aws::String& value) { m_attributeNameHasBeenSet = true; m_attributeName = value; } 55 56 /** 57 * <p>The name of the attribute to sort on.</p> 58 */ SetAttributeName(Aws::String && value)59 inline void SetAttributeName(Aws::String&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::move(value); } 60 61 /** 62 * <p>The name of the attribute to sort on.</p> 63 */ SetAttributeName(const char * value)64 inline void SetAttributeName(const char* value) { m_attributeNameHasBeenSet = true; m_attributeName.assign(value); } 65 66 /** 67 * <p>The name of the attribute to sort on.</p> 68 */ WithAttributeName(const Aws::String & value)69 inline SortCriteria& WithAttributeName(const Aws::String& value) { SetAttributeName(value); return *this;} 70 71 /** 72 * <p>The name of the attribute to sort on.</p> 73 */ WithAttributeName(Aws::String && value)74 inline SortCriteria& WithAttributeName(Aws::String&& value) { SetAttributeName(std::move(value)); return *this;} 75 76 /** 77 * <p>The name of the attribute to sort on.</p> 78 */ WithAttributeName(const char * value)79 inline SortCriteria& WithAttributeName(const char* value) { SetAttributeName(value); return *this;} 80 81 82 /** 83 * <p>The sort order, ascending or descending.</p> 84 */ GetOrderBy()85 inline const OrderBy& GetOrderBy() const{ return m_orderBy; } 86 87 /** 88 * <p>The sort order, ascending or descending.</p> 89 */ OrderByHasBeenSet()90 inline bool OrderByHasBeenSet() const { return m_orderByHasBeenSet; } 91 92 /** 93 * <p>The sort order, ascending or descending.</p> 94 */ SetOrderBy(const OrderBy & value)95 inline void SetOrderBy(const OrderBy& value) { m_orderByHasBeenSet = true; m_orderBy = value; } 96 97 /** 98 * <p>The sort order, ascending or descending.</p> 99 */ SetOrderBy(OrderBy && value)100 inline void SetOrderBy(OrderBy&& value) { m_orderByHasBeenSet = true; m_orderBy = std::move(value); } 101 102 /** 103 * <p>The sort order, ascending or descending.</p> 104 */ WithOrderBy(const OrderBy & value)105 inline SortCriteria& WithOrderBy(const OrderBy& value) { SetOrderBy(value); return *this;} 106 107 /** 108 * <p>The sort order, ascending or descending.</p> 109 */ WithOrderBy(OrderBy && value)110 inline SortCriteria& WithOrderBy(OrderBy&& value) { SetOrderBy(std::move(value)); return *this;} 111 112 private: 113 114 Aws::String m_attributeName; 115 bool m_attributeNameHasBeenSet; 116 117 OrderBy m_orderBy; 118 bool m_orderByHasBeenSet; 119 }; 120 121 } // namespace Model 122 } // namespace AccessAnalyzer 123 } // namespace Aws 124