AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
DelegatedService.h
1
6#pragma once
7#include <aws/organizations/Organizations_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.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 Organizations
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_ORGANIZATIONS_API DelegatedService() = default;
37 AWS_ORGANIZATIONS_API DelegatedService(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ORGANIZATIONS_API DelegatedService& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
48 inline const Aws::String& GetServicePrincipal() const { return m_servicePrincipal; }
49 inline bool ServicePrincipalHasBeenSet() const { return m_servicePrincipalHasBeenSet; }
50 template<typename ServicePrincipalT = Aws::String>
51 void SetServicePrincipal(ServicePrincipalT&& value) { m_servicePrincipalHasBeenSet = true; m_servicePrincipal = std::forward<ServicePrincipalT>(value); }
52 template<typename ServicePrincipalT = Aws::String>
53 DelegatedService& WithServicePrincipal(ServicePrincipalT&& value) { SetServicePrincipal(std::forward<ServicePrincipalT>(value)); return *this;}
55
57
61 inline const Aws::Utils::DateTime& GetDelegationEnabledDate() const { return m_delegationEnabledDate; }
62 inline bool DelegationEnabledDateHasBeenSet() const { return m_delegationEnabledDateHasBeenSet; }
63 template<typename DelegationEnabledDateT = Aws::Utils::DateTime>
64 void SetDelegationEnabledDate(DelegationEnabledDateT&& value) { m_delegationEnabledDateHasBeenSet = true; m_delegationEnabledDate = std::forward<DelegationEnabledDateT>(value); }
65 template<typename DelegationEnabledDateT = Aws::Utils::DateTime>
66 DelegatedService& WithDelegationEnabledDate(DelegationEnabledDateT&& value) { SetDelegationEnabledDate(std::forward<DelegationEnabledDateT>(value)); return *this;}
68 private:
69
70 Aws::String m_servicePrincipal;
71 bool m_servicePrincipalHasBeenSet = false;
72
73 Aws::Utils::DateTime m_delegationEnabledDate{};
74 bool m_delegationEnabledDateHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace Organizations
79} // namespace Aws
DelegatedService & WithDelegationEnabledDate(DelegationEnabledDateT &&value)
AWS_ORGANIZATIONS_API DelegatedService & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDelegationEnabledDate(DelegationEnabledDateT &&value)
void SetServicePrincipal(ServicePrincipalT &&value)
const Aws::String & GetServicePrincipal() const
const Aws::Utils::DateTime & GetDelegationEnabledDate() const
AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ORGANIZATIONS_API DelegatedService(Aws::Utils::Json::JsonView jsonValue)
DelegatedService & WithServicePrincipal(ServicePrincipalT &&value)
AWS_ORGANIZATIONS_API DelegatedService()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue