AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetServicePrincipal(const Aws::String& value) { m_servicePrincipalHasBeenSet = true; m_servicePrincipal = value; }
51 inline void SetServicePrincipal(Aws::String&& value) { m_servicePrincipalHasBeenSet = true; m_servicePrincipal = std::move(value); }
52 inline void SetServicePrincipal(const char* value) { m_servicePrincipalHasBeenSet = true; m_servicePrincipal.assign(value); }
53 inline DelegatedService& WithServicePrincipal(const Aws::String& value) { SetServicePrincipal(value); return *this;}
54 inline DelegatedService& WithServicePrincipal(Aws::String&& value) { SetServicePrincipal(std::move(value)); return *this;}
55 inline DelegatedService& WithServicePrincipal(const char* value) { SetServicePrincipal(value); return *this;}
57
59
63 inline const Aws::Utils::DateTime& GetDelegationEnabledDate() const{ return m_delegationEnabledDate; }
64 inline bool DelegationEnabledDateHasBeenSet() const { return m_delegationEnabledDateHasBeenSet; }
65 inline void SetDelegationEnabledDate(const Aws::Utils::DateTime& value) { m_delegationEnabledDateHasBeenSet = true; m_delegationEnabledDate = value; }
66 inline void SetDelegationEnabledDate(Aws::Utils::DateTime&& value) { m_delegationEnabledDateHasBeenSet = true; m_delegationEnabledDate = std::move(value); }
70 private:
71
72 Aws::String m_servicePrincipal;
73 bool m_servicePrincipalHasBeenSet = false;
74
75 Aws::Utils::DateTime m_delegationEnabledDate;
76 bool m_delegationEnabledDateHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace Organizations
81} // namespace Aws
DelegatedService & WithDelegationEnabledDate(const Aws::Utils::DateTime &value)
void SetServicePrincipal(const Aws::String &value)
AWS_ORGANIZATIONS_API DelegatedService & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDelegationEnabledDate(const Aws::Utils::DateTime &value)
void SetDelegationEnabledDate(Aws::Utils::DateTime &&value)
DelegatedService & WithServicePrincipal(Aws::String &&value)
DelegatedService & WithServicePrincipal(const char *value)
const Aws::String & GetServicePrincipal() const
DelegatedService & WithDelegationEnabledDate(Aws::Utils::DateTime &&value)
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(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue