AWS SDK for C++  0.14.3
AWS SDK for C++
IdentityUsage.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace CognitoSync
30 {
31 namespace Model
32 {
33 
38  {
39  public:
40  IdentityUsage();
42  IdentityUsage& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
49  inline const Aws::String& GetIdentityId() const{ return m_identityId; }
50 
55  inline void SetIdentityId(const Aws::String& value) { m_identityIdHasBeenSet = true; m_identityId = value; }
56 
61  inline void SetIdentityId(Aws::String&& value) { m_identityIdHasBeenSet = true; m_identityId = value; }
62 
67  inline void SetIdentityId(const char* value) { m_identityIdHasBeenSet = true; m_identityId.assign(value); }
68 
73  inline IdentityUsage& WithIdentityId(const Aws::String& value) { SetIdentityId(value); return *this;}
74 
79  inline IdentityUsage& WithIdentityId(Aws::String&& value) { SetIdentityId(value); return *this;}
80 
85  inline IdentityUsage& WithIdentityId(const char* value) { SetIdentityId(value); return *this;}
86 
91  inline const Aws::String& GetIdentityPoolId() const{ return m_identityPoolId; }
92 
97  inline void SetIdentityPoolId(const Aws::String& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = value; }
98 
103  inline void SetIdentityPoolId(Aws::String&& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = value; }
104 
109  inline void SetIdentityPoolId(const char* value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId.assign(value); }
110 
115  inline IdentityUsage& WithIdentityPoolId(const Aws::String& value) { SetIdentityPoolId(value); return *this;}
116 
121  inline IdentityUsage& WithIdentityPoolId(Aws::String&& value) { SetIdentityPoolId(value); return *this;}
122 
127  inline IdentityUsage& WithIdentityPoolId(const char* value) { SetIdentityPoolId(value); return *this;}
128 
132  inline const Aws::Utils::DateTime& GetLastModifiedDate() const{ return m_lastModifiedDate; }
133 
137  inline void SetLastModifiedDate(const Aws::Utils::DateTime& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
138 
142  inline void SetLastModifiedDate(Aws::Utils::DateTime&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
143 
147  inline IdentityUsage& WithLastModifiedDate(const Aws::Utils::DateTime& value) { SetLastModifiedDate(value); return *this;}
148 
152  inline IdentityUsage& WithLastModifiedDate(Aws::Utils::DateTime&& value) { SetLastModifiedDate(value); return *this;}
153 
157  inline int GetDatasetCount() const{ return m_datasetCount; }
158 
162  inline void SetDatasetCount(int value) { m_datasetCountHasBeenSet = true; m_datasetCount = value; }
163 
167  inline IdentityUsage& WithDatasetCount(int value) { SetDatasetCount(value); return *this;}
168 
172  inline long long GetDataStorage() const{ return m_dataStorage; }
173 
177  inline void SetDataStorage(long long value) { m_dataStorageHasBeenSet = true; m_dataStorage = value; }
178 
182  inline IdentityUsage& WithDataStorage(long long value) { SetDataStorage(value); return *this;}
183 
184  private:
185  Aws::String m_identityId;
186  bool m_identityIdHasBeenSet;
187  Aws::String m_identityPoolId;
188  bool m_identityPoolIdHasBeenSet;
189  Aws::Utils::DateTime m_lastModifiedDate;
190  bool m_lastModifiedDateHasBeenSet;
191  int m_datasetCount;
192  bool m_datasetCountHasBeenSet;
193  long long m_dataStorage;
194  bool m_dataStorageHasBeenSet;
195  };
196 
197 } // namespace Model
198 } // namespace CognitoSync
199 } // namespace Aws
IdentityUsage & WithIdentityId(const char *value)
Definition: IdentityUsage.h:85
IdentityUsage & WithLastModifiedDate(const Aws::Utils::DateTime &value)
IdentityUsage & WithDataStorage(long long value)
void SetIdentityId(Aws::String &&value)
Definition: IdentityUsage.h:61
IdentityUsage & WithIdentityId(const Aws::String &value)
Definition: IdentityUsage.h:73
const Aws::String & GetIdentityPoolId() const
Definition: IdentityUsage.h:91
void SetIdentityPoolId(Aws::String &&value)
IdentityUsage & WithLastModifiedDate(Aws::Utils::DateTime &&value)
void SetIdentityId(const Aws::String &value)
Definition: IdentityUsage.h:55
void SetLastModifiedDate(const Aws::Utils::DateTime &value)
void SetIdentityPoolId(const char *value)
void SetIdentityId(const char *value)
Definition: IdentityUsage.h:67
const Aws::String & GetIdentityId() const
Definition: IdentityUsage.h:49
IdentityUsage & WithIdentityPoolId(const char *value)
IdentityUsage & WithDatasetCount(int value)
void SetLastModifiedDate(Aws::Utils::DateTime &&value)
IdentityUsage & WithIdentityPoolId(const Aws::String &value)
void SetIdentityPoolId(const Aws::String &value)
Definition: IdentityUsage.h:97
const Aws::Utils::DateTime & GetLastModifiedDate() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
IdentityUsage & WithIdentityPoolId(Aws::String &&value)
#define AWS_COGNITOSYNC_API
IdentityUsage & WithIdentityId(Aws::String &&value)
Definition: IdentityUsage.h:79
JSON (JavaScript Object Notation).