AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
IdentityPoolUsage.h
1
6#pragma once
7#include <aws/cognito-sync/CognitoSync_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 CognitoSync
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_COGNITOSYNC_API IdentityPoolUsage() = default;
36 AWS_COGNITOSYNC_API IdentityPoolUsage(Aws::Utils::Json::JsonView jsonValue);
38 AWS_COGNITOSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetIdentityPoolId() const { return m_identityPoolId; }
47 inline bool IdentityPoolIdHasBeenSet() const { return m_identityPoolIdHasBeenSet; }
48 template<typename IdentityPoolIdT = Aws::String>
49 void SetIdentityPoolId(IdentityPoolIdT&& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = std::forward<IdentityPoolIdT>(value); }
50 template<typename IdentityPoolIdT = Aws::String>
51 IdentityPoolUsage& WithIdentityPoolId(IdentityPoolIdT&& value) { SetIdentityPoolId(std::forward<IdentityPoolIdT>(value)); return *this;}
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) { m_syncSessionsCountHasBeenSet = true; m_syncSessionsCount = value; }
61 inline IdentityPoolUsage& WithSyncSessionsCount(long long value) { SetSyncSessionsCount(value); return *this;}
63
65
68 inline long long GetDataStorage() const { return m_dataStorage; }
69 inline bool DataStorageHasBeenSet() const { return m_dataStorageHasBeenSet; }
70 inline void SetDataStorage(long long value) { m_dataStorageHasBeenSet = true; m_dataStorage = value; }
71 inline IdentityPoolUsage& WithDataStorage(long long value) { SetDataStorage(value); return *this;}
73
75
78 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
79 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
80 template<typename LastModifiedDateT = Aws::Utils::DateTime>
81 void SetLastModifiedDate(LastModifiedDateT&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::forward<LastModifiedDateT>(value); }
82 template<typename LastModifiedDateT = Aws::Utils::DateTime>
83 IdentityPoolUsage& WithLastModifiedDate(LastModifiedDateT&& value) { SetLastModifiedDate(std::forward<LastModifiedDateT>(value)); return *this;}
85 private:
86
87 Aws::String m_identityPoolId;
88 bool m_identityPoolIdHasBeenSet = false;
89
90 long long m_syncSessionsCount{0};
91 bool m_syncSessionsCountHasBeenSet = false;
92
93 long long m_dataStorage{0};
94 bool m_dataStorageHasBeenSet = false;
95
96 Aws::Utils::DateTime m_lastModifiedDate{};
97 bool m_lastModifiedDateHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace CognitoSync
102} // 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