AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AccountGrouping.h
1
6#pragma once
7#include <aws/billingconductor/BillingConductor_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 BillingConductor
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_BILLINGCONDUCTOR_API AccountGrouping() = default;
38 AWS_BILLINGCONDUCTOR_API AccountGrouping(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BILLINGCONDUCTOR_API AccountGrouping& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BILLINGCONDUCTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
49 inline const Aws::Vector<Aws::String>& GetLinkedAccountIds() const { return m_linkedAccountIds; }
50 inline bool LinkedAccountIdsHasBeenSet() const { return m_linkedAccountIdsHasBeenSet; }
51 template<typename LinkedAccountIdsT = Aws::Vector<Aws::String>>
52 void SetLinkedAccountIds(LinkedAccountIdsT&& value) { m_linkedAccountIdsHasBeenSet = true; m_linkedAccountIds = std::forward<LinkedAccountIdsT>(value); }
53 template<typename LinkedAccountIdsT = Aws::Vector<Aws::String>>
54 AccountGrouping& WithLinkedAccountIds(LinkedAccountIdsT&& value) { SetLinkedAccountIds(std::forward<LinkedAccountIdsT>(value)); return *this;}
55 template<typename LinkedAccountIdsT = Aws::String>
56 AccountGrouping& AddLinkedAccountIds(LinkedAccountIdsT&& value) { m_linkedAccountIdsHasBeenSet = true; m_linkedAccountIds.emplace_back(std::forward<LinkedAccountIdsT>(value)); return *this; }
58
60
64 inline bool GetAutoAssociate() const { return m_autoAssociate; }
65 inline bool AutoAssociateHasBeenSet() const { return m_autoAssociateHasBeenSet; }
66 inline void SetAutoAssociate(bool value) { m_autoAssociateHasBeenSet = true; m_autoAssociate = value; }
67 inline AccountGrouping& WithAutoAssociate(bool value) { SetAutoAssociate(value); return *this;}
69 private:
70
71 Aws::Vector<Aws::String> m_linkedAccountIds;
72 bool m_linkedAccountIdsHasBeenSet = false;
73
74 bool m_autoAssociate{false};
75 bool m_autoAssociateHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace BillingConductor
80} // namespace Aws
const Aws::Vector< Aws::String > & GetLinkedAccountIds() const
void SetLinkedAccountIds(LinkedAccountIdsT &&value)
AccountGrouping & WithAutoAssociate(bool value)
AccountGrouping & WithLinkedAccountIds(LinkedAccountIdsT &&value)
AWS_BILLINGCONDUCTOR_API AccountGrouping(Aws::Utils::Json::JsonView jsonValue)
AWS_BILLINGCONDUCTOR_API AccountGrouping & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BILLINGCONDUCTOR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BILLINGCONDUCTOR_API AccountGrouping()=default
AccountGrouping & AddLinkedAccountIds(LinkedAccountIdsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue