/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Route53Domains { namespace Model { /** *

Information for sorting a list of domains.

See Also:

AWS * API Reference

*/ class SortCondition { public: AWS_ROUTE53DOMAINS_API SortCondition(); AWS_ROUTE53DOMAINS_API SortCondition(Aws::Utils::Json::JsonView jsonValue); AWS_ROUTE53DOMAINS_API SortCondition& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_ROUTE53DOMAINS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Field to be used for sorting the list of domains. It can be either the name * or the expiration for a domain. Note that if filterCondition is * used in the same ListDomains * call, the field used for sorting has to be the same as the field used for * filtering.

*/ inline const ListDomainsAttributeName& GetName() const{ return m_name; } /** *

Field to be used for sorting the list of domains. It can be either the name * or the expiration for a domain. Note that if filterCondition is * used in the same ListDomains * call, the field used for sorting has to be the same as the field used for * filtering.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

Field to be used for sorting the list of domains. It can be either the name * or the expiration for a domain. Note that if filterCondition is * used in the same ListDomains * call, the field used for sorting has to be the same as the field used for * filtering.

*/ inline void SetName(const ListDomainsAttributeName& value) { m_nameHasBeenSet = true; m_name = value; } /** *

Field to be used for sorting the list of domains. It can be either the name * or the expiration for a domain. Note that if filterCondition is * used in the same ListDomains * call, the field used for sorting has to be the same as the field used for * filtering.

*/ inline void SetName(ListDomainsAttributeName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

Field to be used for sorting the list of domains. It can be either the name * or the expiration for a domain. Note that if filterCondition is * used in the same ListDomains * call, the field used for sorting has to be the same as the field used for * filtering.

*/ inline SortCondition& WithName(const ListDomainsAttributeName& value) { SetName(value); return *this;} /** *

Field to be used for sorting the list of domains. It can be either the name * or the expiration for a domain. Note that if filterCondition is * used in the same ListDomains * call, the field used for sorting has to be the same as the field used for * filtering.

*/ inline SortCondition& WithName(ListDomainsAttributeName&& value) { SetName(std::move(value)); return *this;} /** *

The sort order for a list of domains. Either ascending (ASC) or descending * (DES).

*/ inline const SortOrder& GetSortOrder() const{ return m_sortOrder; } /** *

The sort order for a list of domains. Either ascending (ASC) or descending * (DES).

*/ inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; } /** *

The sort order for a list of domains. Either ascending (ASC) or descending * (DES).

*/ inline void SetSortOrder(const SortOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; } /** *

The sort order for a list of domains. Either ascending (ASC) or descending * (DES).

*/ inline void SetSortOrder(SortOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); } /** *

The sort order for a list of domains. Either ascending (ASC) or descending * (DES).

*/ inline SortCondition& WithSortOrder(const SortOrder& value) { SetSortOrder(value); return *this;} /** *

The sort order for a list of domains. Either ascending (ASC) or descending * (DES).

*/ inline SortCondition& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;} private: ListDomainsAttributeName m_name; bool m_nameHasBeenSet = false; SortOrder m_sortOrder; bool m_sortOrderHasBeenSet = false; }; } // namespace Model } // namespace Route53Domains } // namespace Aws