AWS SDK for C++  0.14.3
AWS SDK for C++
IdentityPoolUsage.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:
42  IdentityPoolUsage& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
49  inline const Aws::String& GetIdentityPoolId() const{ return m_identityPoolId; }
50 
55  inline void SetIdentityPoolId(const Aws::String& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = value; }
56 
61  inline void SetIdentityPoolId(Aws::String&& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = value; }
62 
67  inline void SetIdentityPoolId(const char* value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId.assign(value); }
68 
73  inline IdentityPoolUsage& WithIdentityPoolId(const Aws::String& value) { SetIdentityPoolId(value); return *this;}
74 
79  inline IdentityPoolUsage& WithIdentityPoolId(Aws::String&& value) { SetIdentityPoolId(value); return *this;}
80 
85  inline IdentityPoolUsage& WithIdentityPoolId(const char* value) { SetIdentityPoolId(value); return *this;}
86 
90  inline long long GetSyncSessionsCount() const{ return m_syncSessionsCount; }
91 
95  inline void SetSyncSessionsCount(long long value) { m_syncSessionsCountHasBeenSet = true; m_syncSessionsCount = value; }
96 
100  inline IdentityPoolUsage& WithSyncSessionsCount(long long value) { SetSyncSessionsCount(value); return *this;}
101 
105  inline long long GetDataStorage() const{ return m_dataStorage; }
106 
110  inline void SetDataStorage(long long value) { m_dataStorageHasBeenSet = true; m_dataStorage = value; }
111 
115  inline IdentityPoolUsage& WithDataStorage(long long value) { SetDataStorage(value); return *this;}
116 
120  inline const Aws::Utils::DateTime& GetLastModifiedDate() const{ return m_lastModifiedDate; }
121 
125  inline void SetLastModifiedDate(const Aws::Utils::DateTime& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
126 
130  inline void SetLastModifiedDate(Aws::Utils::DateTime&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
131 
135  inline IdentityPoolUsage& WithLastModifiedDate(const Aws::Utils::DateTime& value) { SetLastModifiedDate(value); return *this;}
136 
140  inline IdentityPoolUsage& WithLastModifiedDate(Aws::Utils::DateTime&& value) { SetLastModifiedDate(value); return *this;}
141 
142  private:
143  Aws::String m_identityPoolId;
144  bool m_identityPoolIdHasBeenSet;
145  long long m_syncSessionsCount;
146  bool m_syncSessionsCountHasBeenSet;
147  long long m_dataStorage;
148  bool m_dataStorageHasBeenSet;
149  Aws::Utils::DateTime m_lastModifiedDate;
150  bool m_lastModifiedDateHasBeenSet;
151  };
152 
153 } // namespace Model
154 } // namespace CognitoSync
155 } // namespace Aws
IdentityPoolUsage & WithIdentityPoolId(Aws::String &&value)
void SetLastModifiedDate(Aws::Utils::DateTime &&value)
const Aws::String & GetIdentityPoolId() const
IdentityPoolUsage & WithIdentityPoolId(const char *value)
IdentityPoolUsage & WithSyncSessionsCount(long long value)
const Aws::Utils::DateTime & GetLastModifiedDate() const
IdentityPoolUsage & WithIdentityPoolId(const Aws::String &value)
IdentityPoolUsage & WithLastModifiedDate(Aws::Utils::DateTime &&value)
IdentityPoolUsage & WithLastModifiedDate(const Aws::Utils::DateTime &value)
void SetIdentityPoolId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_COGNITOSYNC_API
void SetLastModifiedDate(const Aws::Utils::DateTime &value)
JSON (JavaScript Object Notation).
IdentityPoolUsage & WithDataStorage(long long value)