/**
 * 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/core/utils/memory/stl/AWSVector.h>
#include <aws/sdb/SimpleDB_EXPORTS.h>
#include <aws/sdb/model/ResponseMetadata.h>

#include <utility>

namespace Aws {
template <typename RESULT_TYPE>
class AmazonWebServiceResult;

namespace Utils {
namespace Xml {
class XmlDocument;
}  // namespace Xml
}  // namespace Utils
namespace SimpleDB {
namespace Model {
class ListDomainsResult {
 public:
  AWS_SIMPLEDB_API ListDomainsResult() = default;
  AWS_SIMPLEDB_API ListDomainsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Xml::XmlDocument>& result);
  AWS_SIMPLEDB_API ListDomainsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Xml::XmlDocument>& result);

  ///@{
  /**
   * A list of domain names that match the expression.
   */
  inline const Aws::Vector<Aws::String>& GetDomainNames() const { return m_domainNames; }
  template <typename DomainNamesT = Aws::Vector<Aws::String>>
  void SetDomainNames(DomainNamesT&& value) {
    m_domainNamesHasBeenSet = true;
    m_domainNames = std::forward<DomainNamesT>(value);
  }
  template <typename DomainNamesT = Aws::Vector<Aws::String>>
  ListDomainsResult& WithDomainNames(DomainNamesT&& value) {
    SetDomainNames(std::forward<DomainNamesT>(value));
    return *this;
  }
  template <typename DomainNamesT = Aws::String>
  ListDomainsResult& AddDomainNames(DomainNamesT&& value) {
    m_domainNamesHasBeenSet = true;
    m_domainNames.emplace_back(std::forward<DomainNamesT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * An opaque token indicating that there are more domains than the specified
   * <code>MaxNumberOfDomains</code> still available.
   */
  inline const Aws::String& GetNextToken() const { return m_nextToken; }
  template <typename NextTokenT = Aws::String>
  void SetNextToken(NextTokenT&& value) {
    m_nextTokenHasBeenSet = true;
    m_nextToken = std::forward<NextTokenT>(value);
  }
  template <typename NextTokenT = Aws::String>
  ListDomainsResult& WithNextToken(NextTokenT&& value) {
    SetNextToken(std::forward<NextTokenT>(value));
    return *this;
  }
  ///@}

  ///@{

  inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
  template <typename ResponseMetadataT = ResponseMetadata>
  void SetResponseMetadata(ResponseMetadataT&& value) {
    m_responseMetadataHasBeenSet = true;
    m_responseMetadata = std::forward<ResponseMetadataT>(value);
  }
  template <typename ResponseMetadataT = ResponseMetadata>
  ListDomainsResult& WithResponseMetadata(ResponseMetadataT&& value) {
    SetResponseMetadata(std::forward<ResponseMetadataT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::Vector<Aws::String> m_domainNames;

  Aws::String m_nextToken;

  ResponseMetadata m_responseMetadata;
  bool m_domainNamesHasBeenSet = false;
  bool m_nextTokenHasBeenSet = false;
  bool m_responseMetadataHasBeenSet = false;
};

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