AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
MembershipDatasources.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/detective/Detective_EXPORTS.h>
10#include <aws/detective/model/DatasourcePackage.h>
11#include <aws/detective/model/DatasourcePackageIngestState.h>
12#include <aws/detective/model/TimestampForCollection.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Detective {
24namespace Model {
25
33 public:
34 AWS_DETECTIVE_API MembershipDatasources() = default;
37 AWS_DETECTIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetAccountId() const { return m_accountId; }
44 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
45 template <typename AccountIdT = Aws::String>
46 void SetAccountId(AccountIdT&& value) {
47 m_accountIdHasBeenSet = true;
48 m_accountId = std::forward<AccountIdT>(value);
49 }
50 template <typename AccountIdT = Aws::String>
51 MembershipDatasources& WithAccountId(AccountIdT&& value) {
52 SetAccountId(std::forward<AccountIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetGraphArn() const { return m_graphArn; }
62 inline bool GraphArnHasBeenSet() const { return m_graphArnHasBeenSet; }
63 template <typename GraphArnT = Aws::String>
64 void SetGraphArn(GraphArnT&& value) {
65 m_graphArnHasBeenSet = true;
66 m_graphArn = std::forward<GraphArnT>(value);
67 }
68 template <typename GraphArnT = Aws::String>
69 MembershipDatasources& WithGraphArn(GraphArnT&& value) {
70 SetGraphArn(std::forward<GraphArnT>(value));
71 return *this;
72 }
74
76
81 return m_datasourcePackageIngestHistory;
82 }
83 inline bool DatasourcePackageIngestHistoryHasBeenSet() const { return m_datasourcePackageIngestHistoryHasBeenSet; }
84 template <typename DatasourcePackageIngestHistoryT =
86 void SetDatasourcePackageIngestHistory(DatasourcePackageIngestHistoryT&& value) {
87 m_datasourcePackageIngestHistoryHasBeenSet = true;
88 m_datasourcePackageIngestHistory = std::forward<DatasourcePackageIngestHistoryT>(value);
89 }
90 template <typename DatasourcePackageIngestHistoryT =
92 MembershipDatasources& WithDatasourcePackageIngestHistory(DatasourcePackageIngestHistoryT&& value) {
93 SetDatasourcePackageIngestHistory(std::forward<DatasourcePackageIngestHistoryT>(value));
94 return *this;
95 }
98 m_datasourcePackageIngestHistoryHasBeenSet = true;
99 m_datasourcePackageIngestHistory.emplace(key, value);
100 return *this;
101 }
103 private:
104 Aws::String m_accountId;
105
106 Aws::String m_graphArn;
107
109 bool m_accountIdHasBeenSet = false;
110 bool m_graphArnHasBeenSet = false;
111 bool m_datasourcePackageIngestHistoryHasBeenSet = false;
112};
113
114} // namespace Model
115} // namespace Detective
116} // namespace Aws
void SetDatasourcePackageIngestHistory(DatasourcePackageIngestHistoryT &&value)
AWS_DETECTIVE_API MembershipDatasources & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< DatasourcePackage, Aws::Map< DatasourcePackageIngestState, TimestampForCollection > > & GetDatasourcePackageIngestHistory() const
AWS_DETECTIVE_API Aws::Utils::Json::JsonValue Jsonize() const
MembershipDatasources & WithGraphArn(GraphArnT &&value)
AWS_DETECTIVE_API MembershipDatasources(Aws::Utils::Json::JsonView jsonValue)
MembershipDatasources & WithDatasourcePackageIngestHistory(DatasourcePackageIngestHistoryT &&value)
MembershipDatasources & AddDatasourcePackageIngestHistory(DatasourcePackage key, Aws::Map< DatasourcePackageIngestState, TimestampForCollection > value)
AWS_DETECTIVE_API MembershipDatasources()=default
MembershipDatasources & WithAccountId(AccountIdT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue