AWS SDK for C++  1.9.108
AWS SDK for C++
DelegatedService.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Organizations
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
47  inline const Aws::String& GetServicePrincipal() const{ return m_servicePrincipal; }
48 
54  inline bool ServicePrincipalHasBeenSet() const { return m_servicePrincipalHasBeenSet; }
55 
61  inline void SetServicePrincipal(const Aws::String& value) { m_servicePrincipalHasBeenSet = true; m_servicePrincipal = value; }
62 
68  inline void SetServicePrincipal(Aws::String&& value) { m_servicePrincipalHasBeenSet = true; m_servicePrincipal = std::move(value); }
69 
75  inline void SetServicePrincipal(const char* value) { m_servicePrincipalHasBeenSet = true; m_servicePrincipal.assign(value); }
76 
82  inline DelegatedService& WithServicePrincipal(const Aws::String& value) { SetServicePrincipal(value); return *this;}
83 
89  inline DelegatedService& WithServicePrincipal(Aws::String&& value) { SetServicePrincipal(std::move(value)); return *this;}
90 
96  inline DelegatedService& WithServicePrincipal(const char* value) { SetServicePrincipal(value); return *this;}
97 
98 
103  inline const Aws::Utils::DateTime& GetDelegationEnabledDate() const{ return m_delegationEnabledDate; }
104 
109  inline bool DelegationEnabledDateHasBeenSet() const { return m_delegationEnabledDateHasBeenSet; }
110 
115  inline void SetDelegationEnabledDate(const Aws::Utils::DateTime& value) { m_delegationEnabledDateHasBeenSet = true; m_delegationEnabledDate = value; }
116 
121  inline void SetDelegationEnabledDate(Aws::Utils::DateTime&& value) { m_delegationEnabledDateHasBeenSet = true; m_delegationEnabledDate = std::move(value); }
122 
127  inline DelegatedService& WithDelegationEnabledDate(const Aws::Utils::DateTime& value) { SetDelegationEnabledDate(value); return *this;}
128 
133  inline DelegatedService& WithDelegationEnabledDate(Aws::Utils::DateTime&& value) { SetDelegationEnabledDate(std::move(value)); return *this;}
134 
135  private:
136 
137  Aws::String m_servicePrincipal;
138  bool m_servicePrincipalHasBeenSet;
139 
140  Aws::Utils::DateTime m_delegationEnabledDate;
141  bool m_delegationEnabledDateHasBeenSet;
142  };
143 
144 } // namespace Model
145 } // namespace Organizations
146 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Organizations::Model::DelegatedService::GetDelegationEnabledDate
const Aws::Utils::DateTime & GetDelegationEnabledDate() const
Definition: DelegatedService.h:103
Aws::Organizations::Model::DelegatedService::WithServicePrincipal
DelegatedService & WithServicePrincipal(const char *value)
Definition: DelegatedService.h:96
Aws::Organizations::Model::DelegatedService::DelegationEnabledDateHasBeenSet
bool DelegationEnabledDateHasBeenSet() const
Definition: DelegatedService.h:109
DateTime.h
Aws::Organizations::Model::DelegatedService::SetServicePrincipal
void SetServicePrincipal(Aws::String &&value)
Definition: DelegatedService.h:68
Aws::Organizations::Model::DelegatedService::SetServicePrincipal
void SetServicePrincipal(const Aws::String &value)
Definition: DelegatedService.h:61
Aws::Organizations::Model::DelegatedService::WithServicePrincipal
DelegatedService & WithServicePrincipal(const Aws::String &value)
Definition: DelegatedService.h:82
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::DelegatedService::SetDelegationEnabledDate
void SetDelegationEnabledDate(Aws::Utils::DateTime &&value)
Definition: DelegatedService.h:121
Aws::Organizations::Model::DelegatedService::DelegatedService
DelegatedService()
Aws::Organizations::Model::DelegatedService::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Organizations::Model::DelegatedService::SetServicePrincipal
void SetServicePrincipal(const char *value)
Definition: DelegatedService.h:75
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Organizations::Model::DelegatedService::DelegatedService
DelegatedService(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::DelegatedService::GetServicePrincipal
const Aws::String & GetServicePrincipal() const
Definition: DelegatedService.h:47
Aws::Organizations::Model::DelegatedService::operator=
DelegatedService & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Organizations::Model::DelegatedService::WithDelegationEnabledDate
DelegatedService & WithDelegationEnabledDate(Aws::Utils::DateTime &&value)
Definition: DelegatedService.h:133
Organizations_EXPORTS.h
Aws::Organizations::Model::DelegatedService
Definition: DelegatedService.h:34
Aws::Organizations::Model::DelegatedService::SetDelegationEnabledDate
void SetDelegationEnabledDate(const Aws::Utils::DateTime &value)
Definition: DelegatedService.h:115
Aws::Organizations::Model::DelegatedService::WithDelegationEnabledDate
DelegatedService & WithDelegationEnabledDate(const Aws::Utils::DateTime &value)
Definition: DelegatedService.h:127
Aws::Organizations::Model::DelegatedService::WithServicePrincipal
DelegatedService & WithServicePrincipal(Aws::String &&value)
Definition: DelegatedService.h:89
Aws::Organizations::Model::DelegatedService::ServicePrincipalHasBeenSet
bool ServicePrincipalHasBeenSet() const
Definition: DelegatedService.h:54