AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
StreamingAccessDetails.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/resource-explorer-2/ResourceExplorer2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ResourceExplorer2 {
21namespace Model {
22
31 public:
32 AWS_RESOURCEEXPLORER2_API StreamingAccessDetails() = default;
33 AWS_RESOURCEEXPLORER2_API StreamingAccessDetails(Aws::Utils::Json::JsonView jsonValue);
34 AWS_RESOURCEEXPLORER2_API StreamingAccessDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_RESOURCEEXPLORER2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
43 inline const Aws::String& GetServicePrincipal() const { return m_servicePrincipal; }
44 inline bool ServicePrincipalHasBeenSet() const { return m_servicePrincipalHasBeenSet; }
45 template <typename ServicePrincipalT = Aws::String>
46 void SetServicePrincipal(ServicePrincipalT&& value) {
47 m_servicePrincipalHasBeenSet = true;
48 m_servicePrincipal = std::forward<ServicePrincipalT>(value);
49 }
50 template <typename ServicePrincipalT = Aws::String>
51 StreamingAccessDetails& WithServicePrincipal(ServicePrincipalT&& value) {
52 SetServicePrincipal(std::forward<ServicePrincipalT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
63 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
64 template <typename CreatedAtT = Aws::Utils::DateTime>
65 void SetCreatedAt(CreatedAtT&& value) {
66 m_createdAtHasBeenSet = true;
67 m_createdAt = std::forward<CreatedAtT>(value);
68 }
69 template <typename CreatedAtT = Aws::Utils::DateTime>
71 SetCreatedAt(std::forward<CreatedAtT>(value));
72 return *this;
73 }
75 private:
76 Aws::String m_servicePrincipal;
77
78 Aws::Utils::DateTime m_createdAt{};
79 bool m_servicePrincipalHasBeenSet = false;
80 bool m_createdAtHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace ResourceExplorer2
85} // namespace Aws
AWS_RESOURCEEXPLORER2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_RESOURCEEXPLORER2_API StreamingAccessDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_RESOURCEEXPLORER2_API StreamingAccessDetails()=default
AWS_RESOURCEEXPLORER2_API StreamingAccessDetails(Aws::Utils::Json::JsonView jsonValue)
StreamingAccessDetails & WithCreatedAt(CreatedAtT &&value)
StreamingAccessDetails & WithServicePrincipal(ServicePrincipalT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue