AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EnabledServicePrincipal.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
35 {
36 public:
37 AWS_ORGANIZATIONS_API EnabledServicePrincipal();
38 AWS_ORGANIZATIONS_API EnabledServicePrincipal(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
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 EnabledServicePrincipal& WithServicePrincipal(const Aws::String& value) { SetServicePrincipal(value); return *this;}
54 inline EnabledServicePrincipal& WithServicePrincipal(Aws::String&& value) { SetServicePrincipal(std::move(value)); return *this;}
55 inline EnabledServicePrincipal& WithServicePrincipal(const char* value) { SetServicePrincipal(value); return *this;}
57
59
63 inline const Aws::Utils::DateTime& GetDateEnabled() const{ return m_dateEnabled; }
64 inline bool DateEnabledHasBeenSet() const { return m_dateEnabledHasBeenSet; }
65 inline void SetDateEnabled(const Aws::Utils::DateTime& value) { m_dateEnabledHasBeenSet = true; m_dateEnabled = value; }
66 inline void SetDateEnabled(Aws::Utils::DateTime&& value) { m_dateEnabledHasBeenSet = true; m_dateEnabled = std::move(value); }
67 inline EnabledServicePrincipal& WithDateEnabled(const Aws::Utils::DateTime& value) { SetDateEnabled(value); return *this;}
68 inline EnabledServicePrincipal& WithDateEnabled(Aws::Utils::DateTime&& value) { SetDateEnabled(std::move(value)); return *this;}
70 private:
71
72 Aws::String m_servicePrincipal;
73 bool m_servicePrincipalHasBeenSet = false;
74
75 Aws::Utils::DateTime m_dateEnabled;
76 bool m_dateEnabledHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace Organizations
81} // namespace Aws
EnabledServicePrincipal & WithServicePrincipal(const Aws::String &value)
EnabledServicePrincipal & WithDateEnabled(const Aws::Utils::DateTime &value)
EnabledServicePrincipal & WithServicePrincipal(const char *value)
AWS_ORGANIZATIONS_API EnabledServicePrincipal & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ORGANIZATIONS_API EnabledServicePrincipal(Aws::Utils::Json::JsonView jsonValue)
EnabledServicePrincipal & WithDateEnabled(Aws::Utils::DateTime &&value)
void SetDateEnabled(const Aws::Utils::DateTime &value)
EnabledServicePrincipal & WithServicePrincipal(Aws::String &&value)
AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue