AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
AccountGrouping.h
1
6#pragma once
7#include <aws/billingconductor/BillingConductor_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BillingConductor {
21namespace Model {
22
31 public:
32 AWS_BILLINGCONDUCTOR_API AccountGrouping() = default;
33 AWS_BILLINGCONDUCTOR_API AccountGrouping(Aws::Utils::Json::JsonView jsonValue);
34 AWS_BILLINGCONDUCTOR_API AccountGrouping& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_BILLINGCONDUCTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
43 inline const Aws::Vector<Aws::String>& GetLinkedAccountIds() const { return m_linkedAccountIds; }
44 inline bool LinkedAccountIdsHasBeenSet() const { return m_linkedAccountIdsHasBeenSet; }
45 template <typename LinkedAccountIdsT = Aws::Vector<Aws::String>>
46 void SetLinkedAccountIds(LinkedAccountIdsT&& value) {
47 m_linkedAccountIdsHasBeenSet = true;
48 m_linkedAccountIds = std::forward<LinkedAccountIdsT>(value);
49 }
50 template <typename LinkedAccountIdsT = Aws::Vector<Aws::String>>
51 AccountGrouping& WithLinkedAccountIds(LinkedAccountIdsT&& value) {
52 SetLinkedAccountIds(std::forward<LinkedAccountIdsT>(value));
53 return *this;
54 }
55 template <typename LinkedAccountIdsT = Aws::String>
56 AccountGrouping& AddLinkedAccountIds(LinkedAccountIdsT&& value) {
57 m_linkedAccountIdsHasBeenSet = true;
58 m_linkedAccountIds.emplace_back(std::forward<LinkedAccountIdsT>(value));
59 return *this;
60 }
62
64
68 inline bool GetAutoAssociate() const { return m_autoAssociate; }
69 inline bool AutoAssociateHasBeenSet() const { return m_autoAssociateHasBeenSet; }
70 inline void SetAutoAssociate(bool value) {
71 m_autoAssociateHasBeenSet = true;
72 m_autoAssociate = value;
73 }
74 inline AccountGrouping& WithAutoAssociate(bool value) {
75 SetAutoAssociate(value);
76 return *this;
77 }
79
81
86 inline const Aws::String& GetResponsibilityTransferArn() const { return m_responsibilityTransferArn; }
87 inline bool ResponsibilityTransferArnHasBeenSet() const { return m_responsibilityTransferArnHasBeenSet; }
88 template <typename ResponsibilityTransferArnT = Aws::String>
89 void SetResponsibilityTransferArn(ResponsibilityTransferArnT&& value) {
90 m_responsibilityTransferArnHasBeenSet = true;
91 m_responsibilityTransferArn = std::forward<ResponsibilityTransferArnT>(value);
92 }
93 template <typename ResponsibilityTransferArnT = Aws::String>
94 AccountGrouping& WithResponsibilityTransferArn(ResponsibilityTransferArnT&& value) {
95 SetResponsibilityTransferArn(std::forward<ResponsibilityTransferArnT>(value));
96 return *this;
97 }
99 private:
100 Aws::Vector<Aws::String> m_linkedAccountIds;
101
102 bool m_autoAssociate{false};
103
104 Aws::String m_responsibilityTransferArn;
105 bool m_linkedAccountIdsHasBeenSet = false;
106 bool m_autoAssociateHasBeenSet = false;
107 bool m_responsibilityTransferArnHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace BillingConductor
112} // namespace Aws
const Aws::Vector< Aws::String > & GetLinkedAccountIds() const
const Aws::String & GetResponsibilityTransferArn() const
void SetLinkedAccountIds(LinkedAccountIdsT &&value)
AccountGrouping & WithAutoAssociate(bool value)
void SetResponsibilityTransferArn(ResponsibilityTransferArnT &&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
AccountGrouping & WithResponsibilityTransferArn(ResponsibilityTransferArnT &&value)
AWS_BILLINGCONDUCTOR_API AccountGrouping()=default
AccountGrouping & AddLinkedAccountIds(LinkedAccountIdsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue