AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
IdentityPoolUsage.h
1
6#pragma once
7#include <aws/cognito-sync/CognitoSync_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CognitoSync {
21namespace Model {
22
29 public:
30 AWS_COGNITOSYNC_API IdentityPoolUsage() = default;
31 AWS_COGNITOSYNC_API IdentityPoolUsage(Aws::Utils::Json::JsonView jsonValue);
33 AWS_COGNITOSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetIdentityPoolId() const { return m_identityPoolId; }
41 inline bool IdentityPoolIdHasBeenSet() const { return m_identityPoolIdHasBeenSet; }
42 template <typename IdentityPoolIdT = Aws::String>
43 void SetIdentityPoolId(IdentityPoolIdT&& value) {
44 m_identityPoolIdHasBeenSet = true;
45 m_identityPoolId = std::forward<IdentityPoolIdT>(value);
46 }
47 template <typename IdentityPoolIdT = Aws::String>
48 IdentityPoolUsage& WithIdentityPoolId(IdentityPoolIdT&& value) {
49 SetIdentityPoolId(std::forward<IdentityPoolIdT>(value));
50 return *this;
51 }
53
55
58 inline long long GetSyncSessionsCount() const { return m_syncSessionsCount; }
59 inline bool SyncSessionsCountHasBeenSet() const { return m_syncSessionsCountHasBeenSet; }
60 inline void SetSyncSessionsCount(long long value) {
61 m_syncSessionsCountHasBeenSet = true;
62 m_syncSessionsCount = value;
63 }
64 inline IdentityPoolUsage& WithSyncSessionsCount(long long value) {
66 return *this;
67 }
69
71
74 inline long long GetDataStorage() const { return m_dataStorage; }
75 inline bool DataStorageHasBeenSet() const { return m_dataStorageHasBeenSet; }
76 inline void SetDataStorage(long long value) {
77 m_dataStorageHasBeenSet = true;
78 m_dataStorage = value;
79 }
80 inline IdentityPoolUsage& WithDataStorage(long long value) {
81 SetDataStorage(value);
82 return *this;
83 }
85
87
90 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
91 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
92 template <typename LastModifiedDateT = Aws::Utils::DateTime>
93 void SetLastModifiedDate(LastModifiedDateT&& value) {
94 m_lastModifiedDateHasBeenSet = true;
95 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
96 }
97 template <typename LastModifiedDateT = Aws::Utils::DateTime>
98 IdentityPoolUsage& WithLastModifiedDate(LastModifiedDateT&& value) {
99 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
100 return *this;
101 }
103 private:
104 Aws::String m_identityPoolId;
105
106 long long m_syncSessionsCount{0};
107
108 long long m_dataStorage{0};
109
110 Aws::Utils::DateTime m_lastModifiedDate{};
111 bool m_identityPoolIdHasBeenSet = false;
112 bool m_syncSessionsCountHasBeenSet = false;
113 bool m_dataStorageHasBeenSet = false;
114 bool m_lastModifiedDateHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace CognitoSync
119} // namespace Aws
AWS_COGNITOSYNC_API IdentityPoolUsage & operator=(Aws::Utils::Json::JsonView jsonValue)
IdentityPoolUsage & WithSyncSessionsCount(long long value)
const Aws::String & GetIdentityPoolId() const
IdentityPoolUsage & WithIdentityPoolId(IdentityPoolIdT &&value)
AWS_COGNITOSYNC_API IdentityPoolUsage(Aws::Utils::Json::JsonView jsonValue)
IdentityPoolUsage & WithLastModifiedDate(LastModifiedDateT &&value)
AWS_COGNITOSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
void SetIdentityPoolId(IdentityPoolIdT &&value)
IdentityPoolUsage & WithDataStorage(long long value)
AWS_COGNITOSYNC_API IdentityPoolUsage()=default
const Aws::Utils::DateTime & GetLastModifiedDate() const
void SetLastModifiedDate(LastModifiedDateT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue