AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CustomLineItemChargeDetails.h
1
6#pragma once
7#include <aws/billingconductor/BillingConductor_EXPORTS.h>
8#include <aws/billingconductor/model/CustomLineItemFlatChargeDetails.h>
9#include <aws/billingconductor/model/CustomLineItemPercentageChargeDetails.h>
10#include <aws/billingconductor/model/CustomLineItemType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/billingconductor/model/LineItemFilter.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace BillingConductor
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_BILLINGCONDUCTOR_API CustomLineItemChargeDetails() = default;
40 AWS_BILLINGCONDUCTOR_API CustomLineItemChargeDetails(Aws::Utils::Json::JsonView jsonValue);
42 AWS_BILLINGCONDUCTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const CustomLineItemFlatChargeDetails& GetFlat() const { return m_flat; }
51 inline bool FlatHasBeenSet() const { return m_flatHasBeenSet; }
52 template<typename FlatT = CustomLineItemFlatChargeDetails>
53 void SetFlat(FlatT&& value) { m_flatHasBeenSet = true; m_flat = std::forward<FlatT>(value); }
54 template<typename FlatT = CustomLineItemFlatChargeDetails>
55 CustomLineItemChargeDetails& WithFlat(FlatT&& value) { SetFlat(std::forward<FlatT>(value)); return *this;}
57
59
63 inline const CustomLineItemPercentageChargeDetails& GetPercentage() const { return m_percentage; }
64 inline bool PercentageHasBeenSet() const { return m_percentageHasBeenSet; }
65 template<typename PercentageT = CustomLineItemPercentageChargeDetails>
66 void SetPercentage(PercentageT&& value) { m_percentageHasBeenSet = true; m_percentage = std::forward<PercentageT>(value); }
67 template<typename PercentageT = CustomLineItemPercentageChargeDetails>
68 CustomLineItemChargeDetails& WithPercentage(PercentageT&& value) { SetPercentage(std::forward<PercentageT>(value)); return *this;}
70
72
76 inline CustomLineItemType GetType() const { return m_type; }
77 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
78 inline void SetType(CustomLineItemType value) { m_typeHasBeenSet = true; m_type = value; }
79 inline CustomLineItemChargeDetails& WithType(CustomLineItemType value) { SetType(value); return *this;}
81
83
86 inline const Aws::Vector<LineItemFilter>& GetLineItemFilters() const { return m_lineItemFilters; }
87 inline bool LineItemFiltersHasBeenSet() const { return m_lineItemFiltersHasBeenSet; }
88 template<typename LineItemFiltersT = Aws::Vector<LineItemFilter>>
89 void SetLineItemFilters(LineItemFiltersT&& value) { m_lineItemFiltersHasBeenSet = true; m_lineItemFilters = std::forward<LineItemFiltersT>(value); }
90 template<typename LineItemFiltersT = Aws::Vector<LineItemFilter>>
91 CustomLineItemChargeDetails& WithLineItemFilters(LineItemFiltersT&& value) { SetLineItemFilters(std::forward<LineItemFiltersT>(value)); return *this;}
92 template<typename LineItemFiltersT = LineItemFilter>
93 CustomLineItemChargeDetails& AddLineItemFilters(LineItemFiltersT&& value) { m_lineItemFiltersHasBeenSet = true; m_lineItemFilters.emplace_back(std::forward<LineItemFiltersT>(value)); return *this; }
95 private:
96
98 bool m_flatHasBeenSet = false;
99
101 bool m_percentageHasBeenSet = false;
102
104 bool m_typeHasBeenSet = false;
105
106 Aws::Vector<LineItemFilter> m_lineItemFilters;
107 bool m_lineItemFiltersHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace BillingConductor
112} // namespace Aws
AWS_BILLINGCONDUCTOR_API CustomLineItemChargeDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_BILLINGCONDUCTOR_API CustomLineItemChargeDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
CustomLineItemChargeDetails & AddLineItemFilters(LineItemFiltersT &&value)
AWS_BILLINGCONDUCTOR_API CustomLineItemChargeDetails()=default
const Aws::Vector< LineItemFilter > & GetLineItemFilters() const
const CustomLineItemFlatChargeDetails & GetFlat() const
AWS_BILLINGCONDUCTOR_API Aws::Utils::Json::JsonValue Jsonize() const
const CustomLineItemPercentageChargeDetails & GetPercentage() const
CustomLineItemChargeDetails & WithType(CustomLineItemType value)
CustomLineItemChargeDetails & WithPercentage(PercentageT &&value)
CustomLineItemChargeDetails & WithLineItemFilters(LineItemFiltersT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue