AWS SDK for C++

AWS SDK for C++ Version 1.11.770

Loading...
Searching...
No Matches
DelegatedService.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/organizations/Organizations_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Organizations {
21namespace Model {
22
30 public:
31 AWS_ORGANIZATIONS_API DelegatedService() = default;
32 AWS_ORGANIZATIONS_API DelegatedService(Aws::Utils::Json::JsonView jsonValue);
33 AWS_ORGANIZATIONS_API DelegatedService& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 inline const Aws::String& GetServicePrincipal() const { return m_servicePrincipal; }
43 inline bool ServicePrincipalHasBeenSet() const { return m_servicePrincipalHasBeenSet; }
44 template <typename ServicePrincipalT = Aws::String>
45 void SetServicePrincipal(ServicePrincipalT&& value) {
46 m_servicePrincipalHasBeenSet = true;
47 m_servicePrincipal = std::forward<ServicePrincipalT>(value);
48 }
49 template <typename ServicePrincipalT = Aws::String>
50 DelegatedService& WithServicePrincipal(ServicePrincipalT&& value) {
51 SetServicePrincipal(std::forward<ServicePrincipalT>(value));
52 return *this;
53 }
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) {
65 m_delegationEnabledDateHasBeenSet = true;
66 m_delegationEnabledDate = std::forward<DelegationEnabledDateT>(value);
67 }
68 template <typename DelegationEnabledDateT = Aws::Utils::DateTime>
69 DelegatedService& WithDelegationEnabledDate(DelegationEnabledDateT&& value) {
70 SetDelegationEnabledDate(std::forward<DelegationEnabledDateT>(value));
71 return *this;
72 }
74 private:
75 Aws::String m_servicePrincipal;
76
77 Aws::Utils::DateTime m_delegationEnabledDate{};
78 bool m_servicePrincipalHasBeenSet = false;
79 bool m_delegationEnabledDateHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace Organizations
84} // 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