AWS SDK for C++

AWS SDK for C++ Version 1.11.769

Loading...
Searching...
No Matches
EnabledServicePrincipal.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/organizations/Organizations_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Organizations {
21namespace Model {
22
31 public:
32 AWS_ORGANIZATIONS_API EnabledServicePrincipal() = default;
33 AWS_ORGANIZATIONS_API EnabledServicePrincipal(Aws::Utils::Json::JsonView jsonValue);
35 AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetServicePrincipal() const { return m_servicePrincipal; }
43 inline bool ServicePrincipalHasBeenSet() const { return m_servicePrincipalHasBeenSet; }
44 template <typename ServicePrincipalT = Aws::String>
45 void SetServicePrincipal(ServicePrincipalT&& value) {
46 m_servicePrincipalHasBeenSet = true;
47 m_servicePrincipal = std::forward<ServicePrincipalT>(value);
48 }
49 template <typename ServicePrincipalT = Aws::String>
50 EnabledServicePrincipal& WithServicePrincipal(ServicePrincipalT&& value) {
51 SetServicePrincipal(std::forward<ServicePrincipalT>(value));
52 return *this;
53 }
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) {
65 m_dateEnabledHasBeenSet = true;
66 m_dateEnabled = std::forward<DateEnabledT>(value);
67 }
68 template <typename DateEnabledT = Aws::Utils::DateTime>
70 SetDateEnabled(std::forward<DateEnabledT>(value));
71 return *this;
72 }
74 private:
75 Aws::String m_servicePrincipal;
76
77 Aws::Utils::DateTime m_dateEnabled{};
78 bool m_servicePrincipalHasBeenSet = false;
79 bool m_dateEnabledHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace Organizations
84} // 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