AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
InvoiceUnitRule.h
1
6#pragma once
7#include <aws/invoicing/Invoicing_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.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 Invoicing
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_INVOICING_API InvoiceUnitRule() = default;
38 AWS_INVOICING_API InvoiceUnitRule(Aws::Utils::Json::JsonView jsonValue);
40 AWS_INVOICING_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::Vector<Aws::String>& GetLinkedAccounts() const { return m_linkedAccounts; }
49 inline bool LinkedAccountsHasBeenSet() const { return m_linkedAccountsHasBeenSet; }
50 template<typename LinkedAccountsT = Aws::Vector<Aws::String>>
51 void SetLinkedAccounts(LinkedAccountsT&& value) { m_linkedAccountsHasBeenSet = true; m_linkedAccounts = std::forward<LinkedAccountsT>(value); }
52 template<typename LinkedAccountsT = Aws::Vector<Aws::String>>
53 InvoiceUnitRule& WithLinkedAccounts(LinkedAccountsT&& value) { SetLinkedAccounts(std::forward<LinkedAccountsT>(value)); return *this;}
54 template<typename LinkedAccountsT = Aws::String>
55 InvoiceUnitRule& AddLinkedAccounts(LinkedAccountsT&& value) { m_linkedAccountsHasBeenSet = true; m_linkedAccounts.emplace_back(std::forward<LinkedAccountsT>(value)); return *this; }
57 private:
58
59 Aws::Vector<Aws::String> m_linkedAccounts;
60 bool m_linkedAccountsHasBeenSet = false;
61 };
62
63} // namespace Model
64} // namespace Invoicing
65} // namespace Aws
const Aws::Vector< Aws::String > & GetLinkedAccounts() const
AWS_INVOICING_API InvoiceUnitRule(Aws::Utils::Json::JsonView jsonValue)
AWS_INVOICING_API Aws::Utils::Json::JsonValue Jsonize() const
InvoiceUnitRule & WithLinkedAccounts(LinkedAccountsT &&value)
AWS_INVOICING_API InvoiceUnitRule()=default
AWS_INVOICING_API InvoiceUnitRule & operator=(Aws::Utils::Json::JsonView jsonValue)
InvoiceUnitRule & AddLinkedAccounts(LinkedAccountsT &&value)
void SetLinkedAccounts(LinkedAccountsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue