AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
SearchResultItem.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/datazone/model/AssetListingItem.h>
9#include <aws/datazone/model/DataProductListingItem.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DataZone {
21namespace Model {
22
30 public:
31 AWS_DATAZONE_API SearchResultItem() = default;
32 AWS_DATAZONE_API SearchResultItem(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const AssetListingItem& GetAssetListing() const { return m_assetListing; }
42 inline bool AssetListingHasBeenSet() const { return m_assetListingHasBeenSet; }
43 template <typename AssetListingT = AssetListingItem>
44 void SetAssetListing(AssetListingT&& value) {
45 m_assetListingHasBeenSet = true;
46 m_assetListing = std::forward<AssetListingT>(value);
47 }
48 template <typename AssetListingT = AssetListingItem>
49 SearchResultItem& WithAssetListing(AssetListingT&& value) {
50 SetAssetListing(std::forward<AssetListingT>(value));
51 return *this;
52 }
54
56
59 inline const DataProductListingItem& GetDataProductListing() const { return m_dataProductListing; }
60 inline bool DataProductListingHasBeenSet() const { return m_dataProductListingHasBeenSet; }
61 template <typename DataProductListingT = DataProductListingItem>
62 void SetDataProductListing(DataProductListingT&& value) {
63 m_dataProductListingHasBeenSet = true;
64 m_dataProductListing = std::forward<DataProductListingT>(value);
65 }
66 template <typename DataProductListingT = DataProductListingItem>
67 SearchResultItem& WithDataProductListing(DataProductListingT&& value) {
68 SetDataProductListing(std::forward<DataProductListingT>(value));
69 return *this;
70 }
72 private:
73 AssetListingItem m_assetListing;
74
75 DataProductListingItem m_dataProductListing;
76 bool m_assetListingHasBeenSet = false;
77 bool m_dataProductListingHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace DataZone
82} // namespace Aws
void SetAssetListing(AssetListingT &&value)
AWS_DATAZONE_API SearchResultItem & operator=(Aws::Utils::Json::JsonView jsonValue)
const DataProductListingItem & GetDataProductListing() const
SearchResultItem & WithDataProductListing(DataProductListingT &&value)
const AssetListingItem & GetAssetListing() const
AWS_DATAZONE_API SearchResultItem(Aws::Utils::Json::JsonView jsonValue)
SearchResultItem & WithAssetListing(AssetListingT &&value)
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DATAZONE_API SearchResultItem()=default
void SetDataProductListing(DataProductListingT &&value)
Aws::Utils::Json::JsonValue JsonValue