AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
SourceAwsOrgUnit.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/devops-agent/DevOpsAgent_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DevOpsAgent {
21namespace Model {
22
30 public:
31 AWS_DEVOPSAGENT_API SourceAwsOrgUnit() = default;
32 AWS_DEVOPSAGENT_API SourceAwsOrgUnit(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DEVOPSAGENT_API SourceAwsOrgUnit& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetOrganizationalUnitId() const { return m_organizationalUnitId; }
41 inline bool OrganizationalUnitIdHasBeenSet() const { return m_organizationalUnitIdHasBeenSet; }
42 template <typename OrganizationalUnitIdT = Aws::String>
43 void SetOrganizationalUnitId(OrganizationalUnitIdT&& value) {
44 m_organizationalUnitIdHasBeenSet = true;
45 m_organizationalUnitId = std::forward<OrganizationalUnitIdT>(value);
46 }
47 template <typename OrganizationalUnitIdT = Aws::String>
48 SourceAwsOrgUnit& WithOrganizationalUnitId(OrganizationalUnitIdT&& value) {
49 SetOrganizationalUnitId(std::forward<OrganizationalUnitIdT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::Vector<Aws::String>& GetAccountIds() const { return m_accountIds; }
60 inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; }
61 template <typename AccountIdsT = Aws::Vector<Aws::String>>
62 void SetAccountIds(AccountIdsT&& value) {
63 m_accountIdsHasBeenSet = true;
64 m_accountIds = std::forward<AccountIdsT>(value);
65 }
66 template <typename AccountIdsT = Aws::Vector<Aws::String>>
67 SourceAwsOrgUnit& WithAccountIds(AccountIdsT&& value) {
68 SetAccountIds(std::forward<AccountIdsT>(value));
69 return *this;
70 }
71 template <typename AccountIdsT = Aws::String>
72 SourceAwsOrgUnit& AddAccountIds(AccountIdsT&& value) {
73 m_accountIdsHasBeenSet = true;
74 m_accountIds.emplace_back(std::forward<AccountIdsT>(value));
75 return *this;
76 }
78 private:
79 Aws::String m_organizationalUnitId;
80
81 Aws::Vector<Aws::String> m_accountIds;
82 bool m_organizationalUnitIdHasBeenSet = false;
83 bool m_accountIdsHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace DevOpsAgent
88} // namespace Aws
AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetOrganizationalUnitId() const
AWS_DEVOPSAGENT_API SourceAwsOrgUnit(Aws::Utils::Json::JsonView jsonValue)
SourceAwsOrgUnit & WithAccountIds(AccountIdsT &&value)
SourceAwsOrgUnit & AddAccountIds(AccountIdsT &&value)
AWS_DEVOPSAGENT_API SourceAwsOrgUnit()=default
void SetOrganizationalUnitId(OrganizationalUnitIdT &&value)
AWS_DEVOPSAGENT_API SourceAwsOrgUnit & operator=(Aws::Utils::Json::JsonView jsonValue)
SourceAwsOrgUnit & WithOrganizationalUnitId(OrganizationalUnitIdT &&value)
const Aws::Vector< Aws::String > & GetAccountIds() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue