91 lines
2.6 KiB
C++
91 lines
2.6 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/cloudsearchdomain/CloudSearchDomain_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <aws/cloudsearchdomain/model/Bucket.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace CloudSearchDomain
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>A container for the calculated facet values and counts.</p><p><h3>See
|
|
* Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearchdomain-2013-01-01/BucketInfo">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_CLOUDSEARCHDOMAIN_API BucketInfo
|
|
{
|
|
public:
|
|
BucketInfo();
|
|
BucketInfo(Aws::Utils::Json::JsonView jsonValue);
|
|
BucketInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>A list of the calculated facet values and counts.</p>
|
|
*/
|
|
inline const Aws::Vector<Bucket>& GetBuckets() const{ return m_buckets; }
|
|
|
|
/**
|
|
* <p>A list of the calculated facet values and counts.</p>
|
|
*/
|
|
inline bool BucketsHasBeenSet() const { return m_bucketsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>A list of the calculated facet values and counts.</p>
|
|
*/
|
|
inline void SetBuckets(const Aws::Vector<Bucket>& value) { m_bucketsHasBeenSet = true; m_buckets = value; }
|
|
|
|
/**
|
|
* <p>A list of the calculated facet values and counts.</p>
|
|
*/
|
|
inline void SetBuckets(Aws::Vector<Bucket>&& value) { m_bucketsHasBeenSet = true; m_buckets = std::move(value); }
|
|
|
|
/**
|
|
* <p>A list of the calculated facet values and counts.</p>
|
|
*/
|
|
inline BucketInfo& WithBuckets(const Aws::Vector<Bucket>& value) { SetBuckets(value); return *this;}
|
|
|
|
/**
|
|
* <p>A list of the calculated facet values and counts.</p>
|
|
*/
|
|
inline BucketInfo& WithBuckets(Aws::Vector<Bucket>&& value) { SetBuckets(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>A list of the calculated facet values and counts.</p>
|
|
*/
|
|
inline BucketInfo& AddBuckets(const Bucket& value) { m_bucketsHasBeenSet = true; m_buckets.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>A list of the calculated facet values and counts.</p>
|
|
*/
|
|
inline BucketInfo& AddBuckets(Bucket&& value) { m_bucketsHasBeenSet = true; m_buckets.push_back(std::move(value)); return *this; }
|
|
|
|
private:
|
|
|
|
Aws::Vector<Bucket> m_buckets;
|
|
bool m_bucketsHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace CloudSearchDomain
|
|
} // namespace Aws
|