AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename ServicePrincipalT = Aws::String>
51 void SetServicePrincipal(ServicePrincipalT&& value) { m_servicePrincipalHasBeenSet = true; m_servicePrincipal = std::forward<ServicePrincipalT>(value); }
52 template<typename ServicePrincipalT = Aws::String>
53 EnabledServicePrincipal& WithServicePrincipal(ServicePrincipalT&& value) { SetServicePrincipal(std::forward<ServicePrincipalT>(value)); return *this;}
55
57
61 inline const Aws::Utils::DateTime& GetDateEnabled() const { return m_dateEnabled; }
62 inline bool DateEnabledHasBeenSet() const { return m_dateEnabledHasBeenSet; }
63 template<typename DateEnabledT = Aws::Utils::DateTime>
64 void SetDateEnabled(DateEnabledT&& value) { m_dateEnabledHasBeenSet = true; m_dateEnabled = std::forward<DateEnabledT>(value); }
65 template<typename DateEnabledT = Aws::Utils::DateTime>
66 EnabledServicePrincipal& WithDateEnabled(DateEnabledT&& value) { SetDateEnabled(std::forward<DateEnabledT>(value)); return *this;}
68 private:
69
70 Aws::String m_servicePrincipal;
71 bool m_servicePrincipalHasBeenSet = false;
72
73 Aws::Utils::DateTime m_dateEnabled{};
74 bool m_dateEnabledHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace Organizations
79} // namespace Aws
EnabledServicePrincipal & WithDateEnabled(DateEnabledT &&value)
AWS_ORGANIZATIONS_API EnabledServicePrincipal & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ORGANIZATIONS_API EnabledServicePrincipal(Aws::Utils::Json::JsonView jsonValue)
EnabledServicePrincipal & WithServicePrincipal(ServicePrincipalT &&value)
AWS_ORGANIZATIONS_API EnabledServicePrincipal()=default
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