AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
IdentityUsage.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 IdentityUsage() = default;
31 AWS_COGNITOSYNC_API IdentityUsage(Aws::Utils::Json::JsonView jsonValue);
32 AWS_COGNITOSYNC_API IdentityUsage& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_COGNITOSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetIdentityId() const { return m_identityId; }
41 inline bool IdentityIdHasBeenSet() const { return m_identityIdHasBeenSet; }
42 template <typename IdentityIdT = Aws::String>
43 void SetIdentityId(IdentityIdT&& value) {
44 m_identityIdHasBeenSet = true;
45 m_identityId = std::forward<IdentityIdT>(value);
46 }
47 template <typename IdentityIdT = Aws::String>
48 IdentityUsage& WithIdentityId(IdentityIdT&& value) {
49 SetIdentityId(std::forward<IdentityIdT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetIdentityPoolId() const { return m_identityPoolId; }
60 inline bool IdentityPoolIdHasBeenSet() const { return m_identityPoolIdHasBeenSet; }
61 template <typename IdentityPoolIdT = Aws::String>
62 void SetIdentityPoolId(IdentityPoolIdT&& value) {
63 m_identityPoolIdHasBeenSet = true;
64 m_identityPoolId = std::forward<IdentityPoolIdT>(value);
65 }
66 template <typename IdentityPoolIdT = Aws::String>
67 IdentityUsage& WithIdentityPoolId(IdentityPoolIdT&& value) {
68 SetIdentityPoolId(std::forward<IdentityPoolIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
78 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
79 template <typename LastModifiedDateT = Aws::Utils::DateTime>
80 void SetLastModifiedDate(LastModifiedDateT&& value) {
81 m_lastModifiedDateHasBeenSet = true;
82 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
83 }
84 template <typename LastModifiedDateT = Aws::Utils::DateTime>
85 IdentityUsage& WithLastModifiedDate(LastModifiedDateT&& value) {
86 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
87 return *this;
88 }
90
92
95 inline int GetDatasetCount() const { return m_datasetCount; }
96 inline bool DatasetCountHasBeenSet() const { return m_datasetCountHasBeenSet; }
97 inline void SetDatasetCount(int value) {
98 m_datasetCountHasBeenSet = true;
99 m_datasetCount = value;
100 }
101 inline IdentityUsage& WithDatasetCount(int value) {
102 SetDatasetCount(value);
103 return *this;
104 }
106
108
111 inline long long GetDataStorage() const { return m_dataStorage; }
112 inline bool DataStorageHasBeenSet() const { return m_dataStorageHasBeenSet; }
113 inline void SetDataStorage(long long value) {
114 m_dataStorageHasBeenSet = true;
115 m_dataStorage = value;
116 }
117 inline IdentityUsage& WithDataStorage(long long value) {
118 SetDataStorage(value);
119 return *this;
120 }
122 private:
123 Aws::String m_identityId;
124
125 Aws::String m_identityPoolId;
126
127 Aws::Utils::DateTime m_lastModifiedDate{};
128
129 int m_datasetCount{0};
130
131 long long m_dataStorage{0};
132 bool m_identityIdHasBeenSet = false;
133 bool m_identityPoolIdHasBeenSet = false;
134 bool m_lastModifiedDateHasBeenSet = false;
135 bool m_datasetCountHasBeenSet = false;
136 bool m_dataStorageHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace CognitoSync
141} // namespace Aws
IdentityUsage & WithLastModifiedDate(LastModifiedDateT &&value)
AWS_COGNITOSYNC_API IdentityUsage & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetIdentityPoolId() const
const Aws::Utils::DateTime & GetLastModifiedDate() const
void SetIdentityPoolId(IdentityPoolIdT &&value)
IdentityUsage & WithIdentityPoolId(IdentityPoolIdT &&value)
IdentityUsage & WithIdentityId(IdentityIdT &&value)
IdentityUsage & WithDataStorage(long long value)
AWS_COGNITOSYNC_API IdentityUsage(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetIdentityId() const
void SetLastModifiedDate(LastModifiedDateT &&value)
void SetIdentityId(IdentityIdT &&value)
IdentityUsage & WithDatasetCount(int value)
AWS_COGNITOSYNC_API IdentityUsage()=default
AWS_COGNITOSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue