AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ContentRetrievalRule.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/qbusiness/model/EligibleDataSource.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace QBusiness
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_QBUSINESS_API ContentRetrievalRule() = default;
40 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::Vector<EligibleDataSource>& GetEligibleDataSources() const { return m_eligibleDataSources; }
49 inline bool EligibleDataSourcesHasBeenSet() const { return m_eligibleDataSourcesHasBeenSet; }
50 template<typename EligibleDataSourcesT = Aws::Vector<EligibleDataSource>>
51 void SetEligibleDataSources(EligibleDataSourcesT&& value) { m_eligibleDataSourcesHasBeenSet = true; m_eligibleDataSources = std::forward<EligibleDataSourcesT>(value); }
52 template<typename EligibleDataSourcesT = Aws::Vector<EligibleDataSource>>
53 ContentRetrievalRule& WithEligibleDataSources(EligibleDataSourcesT&& value) { SetEligibleDataSources(std::forward<EligibleDataSourcesT>(value)); return *this;}
54 template<typename EligibleDataSourcesT = EligibleDataSource>
55 ContentRetrievalRule& AddEligibleDataSources(EligibleDataSourcesT&& value) { m_eligibleDataSourcesHasBeenSet = true; m_eligibleDataSources.emplace_back(std::forward<EligibleDataSourcesT>(value)); return *this; }
57 private:
58
59 Aws::Vector<EligibleDataSource> m_eligibleDataSources;
60 bool m_eligibleDataSourcesHasBeenSet = false;
61 };
62
63} // namespace Model
64} // namespace QBusiness
65} // namespace Aws
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< EligibleDataSource > & GetEligibleDataSources() const
ContentRetrievalRule & WithEligibleDataSources(EligibleDataSourcesT &&value)
AWS_QBUSINESS_API ContentRetrievalRule()=default
ContentRetrievalRule & AddEligibleDataSources(EligibleDataSourcesT &&value)
AWS_QBUSINESS_API ContentRetrievalRule & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QBUSINESS_API ContentRetrievalRule(Aws::Utils::Json::JsonView jsonValue)
void SetEligibleDataSources(EligibleDataSourcesT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue