/**
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0.
 */

#pragma once
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/sdb/SimpleDBRequest.h>
#include <aws/sdb/SimpleDB_EXPORTS.h>

#include <utility>

namespace Aws {
namespace SimpleDB {
namespace Model {

/**
 */
class ListDomainsRequest : public SimpleDBRequest {
 public:
  AWS_SIMPLEDB_API ListDomainsRequest() = default;

  // Service request name is the Operation name which will send this request out,
  // each operation should has unique request name, so that we can get operation's name from this request.
  // Note: this is not true for response, multiple operations may have the same response name,
  // so we can not get operation's name from response.
  inline virtual const char* GetServiceRequestName() const override { return "ListDomains"; }

  AWS_SIMPLEDB_API Aws::String SerializePayload() const override;

 protected:
  AWS_SIMPLEDB_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;

 public:
  ///@{
  /**
   * The maximum number of domain names you want returned. The range is 1 to 100. The
   * default setting is 100.
   */
  inline int GetMaxNumberOfDomains() const { return m_maxNumberOfDomains; }
  inline bool MaxNumberOfDomainsHasBeenSet() const { return m_maxNumberOfDomainsHasBeenSet; }
  inline void SetMaxNumberOfDomains(int value) {
    m_maxNumberOfDomainsHasBeenSet = true;
    m_maxNumberOfDomains = value;
  }
  inline ListDomainsRequest& WithMaxNumberOfDomains(int value) {
    SetMaxNumberOfDomains(value);
    return *this;
  }
  ///@}

  ///@{
  /**
   * A string informing Amazon SimpleDB where to start the next list of domain names.
   */
  inline const Aws::String& GetNextToken() const { return m_nextToken; }
  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
  template <typename NextTokenT = Aws::String>
  void SetNextToken(NextTokenT&& value) {
    m_nextTokenHasBeenSet = true;
    m_nextToken = std::forward<NextTokenT>(value);
  }
  template <typename NextTokenT = Aws::String>
  ListDomainsRequest& WithNextToken(NextTokenT&& value) {
    SetNextToken(std::forward<NextTokenT>(value));
    return *this;
  }
  ///@}
 private:
  int m_maxNumberOfDomains{0};

  Aws::String m_nextToken;
  bool m_maxNumberOfDomainsHasBeenSet = false;
  bool m_nextTokenHasBeenSet = false;
};

}  // namespace Model
}  // namespace SimpleDB
}  // namespace Aws
