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

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

namespace Aws {
namespace Utils {
namespace Xml {
class XmlNode;
}  // namespace Xml
}  // namespace Utils
namespace SimpleDB {
namespace Model {

/**
 * <p>Too many attributes exist in a single call.</p><p><h3>See Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/sdb-2009-04-15/NumberSubmittedAttributesExceeded">AWS
 * API Reference</a></p>
 */
class NumberSubmittedAttributesExceeded {
 public:
  AWS_SIMPLEDB_API NumberSubmittedAttributesExceeded() = default;
  AWS_SIMPLEDB_API NumberSubmittedAttributesExceeded(const Aws::Utils::Xml::XmlNode& xmlNode);
  AWS_SIMPLEDB_API NumberSubmittedAttributesExceeded& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);

  AWS_SIMPLEDB_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
  AWS_SIMPLEDB_API void OutputToStream(Aws::OStream& oStream, const char* location) const;

  ///@{

  inline double GetBoxUsage() const { return m_boxUsage; }
  inline bool BoxUsageHasBeenSet() const { return m_boxUsageHasBeenSet; }
  inline void SetBoxUsage(double value) {
    m_boxUsageHasBeenSet = true;
    m_boxUsage = value;
  }
  inline NumberSubmittedAttributesExceeded& WithBoxUsage(double value) {
    SetBoxUsage(value);
    return *this;
  }
  ///@}
 private:
  double m_boxUsage{0.0};
  bool m_boxUsageHasBeenSet = false;
};

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