AWS SDK for C++

AWS SDK for C++ Version 1.11.902

Loading...
Searching...
No Matches
AccountConstraint.h
1
6#pragma once
7#include <aws/launch-wizard/LaunchWizard_EXPORTS.h>
8#include <aws/launch-wizard/model/DelegatedAdminConstraint.h>
9#include <aws/launch-wizard/model/ManagementAccountConstraint.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace LaunchWizard {
21namespace Model {
22
30 public:
31 AWS_LAUNCHWIZARD_API AccountConstraint() = default;
32 AWS_LAUNCHWIZARD_API AccountConstraint(Aws::Utils::Json::JsonView jsonValue);
33 AWS_LAUNCHWIZARD_API AccountConstraint& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_LAUNCHWIZARD_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
38 inline const ManagementAccountConstraint& GetManagementAccount() const { return m_managementAccount; }
39 inline bool ManagementAccountHasBeenSet() const { return m_managementAccountHasBeenSet; }
40 template <typename ManagementAccountT = ManagementAccountConstraint>
41 void SetManagementAccount(ManagementAccountT&& value) {
42 m_managementAccountHasBeenSet = true;
43 m_managementAccount = std::forward<ManagementAccountT>(value);
44 }
45 template <typename ManagementAccountT = ManagementAccountConstraint>
46 AccountConstraint& WithManagementAccount(ManagementAccountT&& value) {
47 SetManagementAccount(std::forward<ManagementAccountT>(value));
48 return *this;
49 }
51
53
54 inline const DelegatedAdminConstraint& GetDelegatedAdmin() const { return m_delegatedAdmin; }
55 inline bool DelegatedAdminHasBeenSet() const { return m_delegatedAdminHasBeenSet; }
56 template <typename DelegatedAdminT = DelegatedAdminConstraint>
57 void SetDelegatedAdmin(DelegatedAdminT&& value) {
58 m_delegatedAdminHasBeenSet = true;
59 m_delegatedAdmin = std::forward<DelegatedAdminT>(value);
60 }
61 template <typename DelegatedAdminT = DelegatedAdminConstraint>
62 AccountConstraint& WithDelegatedAdmin(DelegatedAdminT&& value) {
63 SetDelegatedAdmin(std::forward<DelegatedAdminT>(value));
64 return *this;
65 }
67 private:
68 ManagementAccountConstraint m_managementAccount;
69
70 DelegatedAdminConstraint m_delegatedAdmin;
71 bool m_managementAccountHasBeenSet = false;
72 bool m_delegatedAdminHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace LaunchWizard
77} // namespace Aws
void SetManagementAccount(ManagementAccountT &&value)
const ManagementAccountConstraint & GetManagementAccount() const
AWS_LAUNCHWIZARD_API AccountConstraint()=default
void SetDelegatedAdmin(DelegatedAdminT &&value)
AccountConstraint & WithDelegatedAdmin(DelegatedAdminT &&value)
const DelegatedAdminConstraint & GetDelegatedAdmin() const
AccountConstraint & WithManagementAccount(ManagementAccountT &&value)
AWS_LAUNCHWIZARD_API AccountConstraint(Aws::Utils::Json::JsonView jsonValue)
AWS_LAUNCHWIZARD_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LAUNCHWIZARD_API AccountConstraint & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue