AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
SourceAwsOrgConfiguration.h
1
6#pragma once
7#include <aws/devops-agent/DevOpsAgent_EXPORTS.h>
8#include <aws/devops-agent/model/OrgSourceDeploymentState.h>
9#include <aws/devops-agent/model/SourceAccountType.h>
10#include <aws/devops-agent/model/SourceAwsOrgUnit.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DevOpsAgent {
22namespace Model {
23
33 public:
34 AWS_DEVOPSAGENT_API SourceAwsOrgConfiguration() = default;
37 AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline SourceAccountType GetAccountType() const { return m_accountType; }
45 inline bool AccountTypeHasBeenSet() const { return m_accountTypeHasBeenSet; }
46 inline void SetAccountType(SourceAccountType value) {
47 m_accountTypeHasBeenSet = true;
48 m_accountType = value;
49 }
51 SetAccountType(value);
52 return *this;
53 }
55
57
61 inline const SourceAwsOrgUnit& GetOrganizationalUnit() const { return m_organizationalUnit; }
62 inline bool OrganizationalUnitHasBeenSet() const { return m_organizationalUnitHasBeenSet; }
63 template <typename OrganizationalUnitT = SourceAwsOrgUnit>
64 void SetOrganizationalUnit(OrganizationalUnitT&& value) {
65 m_organizationalUnitHasBeenSet = true;
66 m_organizationalUnit = std::forward<OrganizationalUnitT>(value);
67 }
68 template <typename OrganizationalUnitT = SourceAwsOrgUnit>
69 SourceAwsOrgConfiguration& WithOrganizationalUnit(OrganizationalUnitT&& value) {
70 SetOrganizationalUnit(std::forward<OrganizationalUnitT>(value));
71 return *this;
72 }
74
76
80 inline const OrgSourceDeploymentState& GetDeploymentState() const { return m_deploymentState; }
81 inline bool DeploymentStateHasBeenSet() const { return m_deploymentStateHasBeenSet; }
82 template <typename DeploymentStateT = OrgSourceDeploymentState>
83 void SetDeploymentState(DeploymentStateT&& value) {
84 m_deploymentStateHasBeenSet = true;
85 m_deploymentState = std::forward<DeploymentStateT>(value);
86 }
87 template <typename DeploymentStateT = OrgSourceDeploymentState>
89 SetDeploymentState(std::forward<DeploymentStateT>(value));
90 return *this;
91 }
93 private:
95
96 SourceAwsOrgUnit m_organizationalUnit;
97
98 OrgSourceDeploymentState m_deploymentState;
99 bool m_accountTypeHasBeenSet = false;
100 bool m_organizationalUnitHasBeenSet = false;
101 bool m_deploymentStateHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace DevOpsAgent
106} // namespace Aws
AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DEVOPSAGENT_API SourceAwsOrgConfiguration()=default
AWS_DEVOPSAGENT_API SourceAwsOrgConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
const OrgSourceDeploymentState & GetDeploymentState() const
SourceAwsOrgConfiguration & WithDeploymentState(DeploymentStateT &&value)
AWS_DEVOPSAGENT_API SourceAwsOrgConfiguration(Aws::Utils::Json::JsonView jsonValue)
SourceAwsOrgConfiguration & WithOrganizationalUnit(OrganizationalUnitT &&value)
SourceAwsOrgConfiguration & WithAccountType(SourceAccountType value)
Aws::Utils::Json::JsonValue JsonValue