AWS SDK for C++  1.9.104
AWS SDK for C++
EnabledServicePrincipal.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 
35  {
36  public:
41 
42 
47  inline const Aws::String& GetServicePrincipal() const{ return m_servicePrincipal; }
48 
53  inline bool ServicePrincipalHasBeenSet() const { return m_servicePrincipalHasBeenSet; }
54 
59  inline void SetServicePrincipal(const Aws::String& value) { m_servicePrincipalHasBeenSet = true; m_servicePrincipal = value; }
60 
65  inline void SetServicePrincipal(Aws::String&& value) { m_servicePrincipalHasBeenSet = true; m_servicePrincipal = std::move(value); }
66 
71  inline void SetServicePrincipal(const char* value) { m_servicePrincipalHasBeenSet = true; m_servicePrincipal.assign(value); }
72 
77  inline EnabledServicePrincipal& WithServicePrincipal(const Aws::String& value) { SetServicePrincipal(value); return *this;}
78 
83  inline EnabledServicePrincipal& WithServicePrincipal(Aws::String&& value) { SetServicePrincipal(std::move(value)); return *this;}
84 
89  inline EnabledServicePrincipal& WithServicePrincipal(const char* value) { SetServicePrincipal(value); return *this;}
90 
91 
96  inline const Aws::Utils::DateTime& GetDateEnabled() const{ return m_dateEnabled; }
97 
102  inline bool DateEnabledHasBeenSet() const { return m_dateEnabledHasBeenSet; }
103 
108  inline void SetDateEnabled(const Aws::Utils::DateTime& value) { m_dateEnabledHasBeenSet = true; m_dateEnabled = value; }
109 
114  inline void SetDateEnabled(Aws::Utils::DateTime&& value) { m_dateEnabledHasBeenSet = true; m_dateEnabled = std::move(value); }
115 
120  inline EnabledServicePrincipal& WithDateEnabled(const Aws::Utils::DateTime& value) { SetDateEnabled(value); return *this;}
121 
126  inline EnabledServicePrincipal& WithDateEnabled(Aws::Utils::DateTime&& value) { SetDateEnabled(std::move(value)); return *this;}
127 
128  private:
129 
130  Aws::String m_servicePrincipal;
131  bool m_servicePrincipalHasBeenSet;
132 
133  Aws::Utils::DateTime m_dateEnabled;
134  bool m_dateEnabledHasBeenSet;
135  };
136 
137 } // namespace Model
138 } // namespace Organizations
139 } // namespace Aws
Aws::Organizations::Model::EnabledServicePrincipal::EnabledServicePrincipal
EnabledServicePrincipal()
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Organizations::Model::EnabledServicePrincipal::SetDateEnabled
void SetDateEnabled(const Aws::Utils::DateTime &value)
Definition: EnabledServicePrincipal.h:108
Aws::Organizations::Model::EnabledServicePrincipal::SetServicePrincipal
void SetServicePrincipal(Aws::String &&value)
Definition: EnabledServicePrincipal.h:65
Aws::Organizations::Model::EnabledServicePrincipal::WithServicePrincipal
EnabledServicePrincipal & WithServicePrincipal(const Aws::String &value)
Definition: EnabledServicePrincipal.h:77
Aws::Organizations::Model::EnabledServicePrincipal::SetServicePrincipal
void SetServicePrincipal(const Aws::String &value)
Definition: EnabledServicePrincipal.h:59
DateTime.h
Aws::Organizations::Model::EnabledServicePrincipal::SetDateEnabled
void SetDateEnabled(Aws::Utils::DateTime &&value)
Definition: EnabledServicePrincipal.h:114
Aws::Organizations::Model::EnabledServicePrincipal::WithServicePrincipal
EnabledServicePrincipal & WithServicePrincipal(const char *value)
Definition: EnabledServicePrincipal.h:89
Aws::Organizations::Model::EnabledServicePrincipal::EnabledServicePrincipal
EnabledServicePrincipal(Aws::Utils::Json::JsonView jsonValue)
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::EnabledServicePrincipal::WithDateEnabled
EnabledServicePrincipal & WithDateEnabled(Aws::Utils::DateTime &&value)
Definition: EnabledServicePrincipal.h:126
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Organizations::Model::EnabledServicePrincipal
Definition: EnabledServicePrincipal.h:35
Aws::Organizations::Model::EnabledServicePrincipal::SetServicePrincipal
void SetServicePrincipal(const char *value)
Definition: EnabledServicePrincipal.h:71
Aws::Organizations::Model::EnabledServicePrincipal::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Organizations::Model::EnabledServicePrincipal::WithServicePrincipal
EnabledServicePrincipal & WithServicePrincipal(Aws::String &&value)
Definition: EnabledServicePrincipal.h:83
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Organizations_EXPORTS.h
Aws::Organizations::Model::EnabledServicePrincipal::GetServicePrincipal
const Aws::String & GetServicePrincipal() const
Definition: EnabledServicePrincipal.h:47
Aws::Organizations::Model::EnabledServicePrincipal::GetDateEnabled
const Aws::Utils::DateTime & GetDateEnabled() const
Definition: EnabledServicePrincipal.h:96
Aws::Organizations::Model::EnabledServicePrincipal::ServicePrincipalHasBeenSet
bool ServicePrincipalHasBeenSet() const
Definition: EnabledServicePrincipal.h:53
Aws::Organizations::Model::EnabledServicePrincipal::WithDateEnabled
EnabledServicePrincipal & WithDateEnabled(const Aws::Utils::DateTime &value)
Definition: EnabledServicePrincipal.h:120
Aws::Organizations::Model::EnabledServicePrincipal::operator=
EnabledServicePrincipal & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Organizations::Model::EnabledServicePrincipal::DateEnabledHasBeenSet
bool DateEnabledHasBeenSet() const
Definition: EnabledServicePrincipal.h:102