AWS SDK for C++

AWS SDK for C++ Version 1.11.686

Loading...
Searching...
No Matches
ConsolidatedPolicyV1.h
1
6#pragma once
7#include <aws/cleanrooms/CleanRooms_EXPORTS.h>
8#include <aws/cleanrooms/model/ConsolidatedPolicyAggregation.h>
9#include <aws/cleanrooms/model/ConsolidatedPolicyCustom.h>
10#include <aws/cleanrooms/model/ConsolidatedPolicyList.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CleanRooms {
22namespace Model {
23
31 public:
32 AWS_CLEANROOMS_API ConsolidatedPolicyV1() = default;
33 AWS_CLEANROOMS_API ConsolidatedPolicyV1(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CLEANROOMS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const ConsolidatedPolicyList& GetList() const { return m_list; }
42 inline bool ListHasBeenSet() const { return m_listHasBeenSet; }
43 template <typename ListT = ConsolidatedPolicyList>
44 void SetList(ListT&& value) {
45 m_listHasBeenSet = true;
46 m_list = std::forward<ListT>(value);
47 }
48 template <typename ListT = ConsolidatedPolicyList>
50 SetList(std::forward<ListT>(value));
51 return *this;
52 }
54
56
59 inline const ConsolidatedPolicyAggregation& GetAggregation() const { return m_aggregation; }
60 inline bool AggregationHasBeenSet() const { return m_aggregationHasBeenSet; }
61 template <typename AggregationT = ConsolidatedPolicyAggregation>
62 void SetAggregation(AggregationT&& value) {
63 m_aggregationHasBeenSet = true;
64 m_aggregation = std::forward<AggregationT>(value);
65 }
66 template <typename AggregationT = ConsolidatedPolicyAggregation>
67 ConsolidatedPolicyV1& WithAggregation(AggregationT&& value) {
68 SetAggregation(std::forward<AggregationT>(value));
69 return *this;
70 }
72
74
77 inline const ConsolidatedPolicyCustom& GetCustom() const { return m_custom; }
78 inline bool CustomHasBeenSet() const { return m_customHasBeenSet; }
79 template <typename CustomT = ConsolidatedPolicyCustom>
80 void SetCustom(CustomT&& value) {
81 m_customHasBeenSet = true;
82 m_custom = std::forward<CustomT>(value);
83 }
84 template <typename CustomT = ConsolidatedPolicyCustom>
85 ConsolidatedPolicyV1& WithCustom(CustomT&& value) {
86 SetCustom(std::forward<CustomT>(value));
87 return *this;
88 }
90 private:
92 bool m_listHasBeenSet = false;
93
95 bool m_aggregationHasBeenSet = false;
96
98 bool m_customHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace CleanRooms
103} // namespace Aws
AWS_CLEANROOMS_API ConsolidatedPolicyV1 & operator=(Aws::Utils::Json::JsonView jsonValue)
const ConsolidatedPolicyCustom & GetCustom() const
ConsolidatedPolicyV1 & WithList(ListT &&value)
AWS_CLEANROOMS_API ConsolidatedPolicyV1()=default
ConsolidatedPolicyV1 & WithCustom(CustomT &&value)
ConsolidatedPolicyV1 & WithAggregation(AggregationT &&value)
const ConsolidatedPolicyList & GetList() const
const ConsolidatedPolicyAggregation & GetAggregation() const
AWS_CLEANROOMS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CLEANROOMS_API ConsolidatedPolicyV1(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue