AWS SDK for C++  0.12.9
AWS SDK for C++
Dataset.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 
42  {
43  public:
44  Dataset();
45  Dataset(const Aws::Utils::Json::JsonValue& jsonValue);
46  Dataset& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
47  Aws::Utils::Json::JsonValue Jsonize() const;
48 
53  inline const Aws::String& GetIdentityId() const{ return m_identityId; }
54 
59  inline void SetIdentityId(const Aws::String& value) { m_identityIdHasBeenSet = true; m_identityId = value; }
60 
65  inline void SetIdentityId(Aws::String&& value) { m_identityIdHasBeenSet = true; m_identityId = value; }
66 
71  inline void SetIdentityId(const char* value) { m_identityIdHasBeenSet = true; m_identityId.assign(value); }
72 
77  inline Dataset& WithIdentityId(const Aws::String& value) { SetIdentityId(value); return *this;}
78 
83  inline Dataset& WithIdentityId(Aws::String&& value) { SetIdentityId(value); return *this;}
84 
89  inline Dataset& WithIdentityId(const char* value) { SetIdentityId(value); return *this;}
90 
95  inline const Aws::String& GetDatasetName() const{ return m_datasetName; }
96 
101  inline void SetDatasetName(const Aws::String& value) { m_datasetNameHasBeenSet = true; m_datasetName = value; }
102 
107  inline void SetDatasetName(Aws::String&& value) { m_datasetNameHasBeenSet = true; m_datasetName = value; }
108 
113  inline void SetDatasetName(const char* value) { m_datasetNameHasBeenSet = true; m_datasetName.assign(value); }
114 
119  inline Dataset& WithDatasetName(const Aws::String& value) { SetDatasetName(value); return *this;}
120 
125  inline Dataset& WithDatasetName(Aws::String&& value) { SetDatasetName(value); return *this;}
126 
131  inline Dataset& WithDatasetName(const char* value) { SetDatasetName(value); return *this;}
132 
136  inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
137 
141  inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
142 
146  inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
147 
151  inline Dataset& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
152 
156  inline Dataset& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(value); return *this;}
157 
161  inline const Aws::Utils::DateTime& GetLastModifiedDate() const{ return m_lastModifiedDate; }
162 
166  inline void SetLastModifiedDate(const Aws::Utils::DateTime& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
167 
171  inline void SetLastModifiedDate(Aws::Utils::DateTime&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
172 
176  inline Dataset& WithLastModifiedDate(const Aws::Utils::DateTime& value) { SetLastModifiedDate(value); return *this;}
177 
181  inline Dataset& WithLastModifiedDate(Aws::Utils::DateTime&& value) { SetLastModifiedDate(value); return *this;}
182 
186  inline const Aws::String& GetLastModifiedBy() const{ return m_lastModifiedBy; }
187 
191  inline void SetLastModifiedBy(const Aws::String& value) { m_lastModifiedByHasBeenSet = true; m_lastModifiedBy = value; }
192 
196  inline void SetLastModifiedBy(Aws::String&& value) { m_lastModifiedByHasBeenSet = true; m_lastModifiedBy = value; }
197 
201  inline void SetLastModifiedBy(const char* value) { m_lastModifiedByHasBeenSet = true; m_lastModifiedBy.assign(value); }
202 
206  inline Dataset& WithLastModifiedBy(const Aws::String& value) { SetLastModifiedBy(value); return *this;}
207 
211  inline Dataset& WithLastModifiedBy(Aws::String&& value) { SetLastModifiedBy(value); return *this;}
212 
216  inline Dataset& WithLastModifiedBy(const char* value) { SetLastModifiedBy(value); return *this;}
217 
221  inline long long GetDataStorage() const{ return m_dataStorage; }
222 
226  inline void SetDataStorage(long long value) { m_dataStorageHasBeenSet = true; m_dataStorage = value; }
227 
231  inline Dataset& WithDataStorage(long long value) { SetDataStorage(value); return *this;}
232 
236  inline long long GetNumRecords() const{ return m_numRecords; }
237 
241  inline void SetNumRecords(long long value) { m_numRecordsHasBeenSet = true; m_numRecords = value; }
242 
246  inline Dataset& WithNumRecords(long long value) { SetNumRecords(value); return *this;}
247 
248  private:
249  Aws::String m_identityId;
250  bool m_identityIdHasBeenSet;
251  Aws::String m_datasetName;
252  bool m_datasetNameHasBeenSet;
253  Aws::Utils::DateTime m_creationDate;
254  bool m_creationDateHasBeenSet;
255  Aws::Utils::DateTime m_lastModifiedDate;
256  bool m_lastModifiedDateHasBeenSet;
257  Aws::String m_lastModifiedBy;
258  bool m_lastModifiedByHasBeenSet;
259  long long m_dataStorage;
260  bool m_dataStorageHasBeenSet;
261  long long m_numRecords;
262  bool m_numRecordsHasBeenSet;
263  };
264 
265 } // namespace Model
266 } // namespace CognitoSync
267 } // namespace Aws
void SetLastModifiedBy(Aws::String &&value)
Definition: Dataset.h:196
long long GetDataStorage() const
Definition: Dataset.h:221
Dataset & WithDatasetName(const Aws::String &value)
Definition: Dataset.h:119
const Aws::Utils::DateTime & GetLastModifiedDate() const
Definition: Dataset.h:161
Dataset & WithLastModifiedBy(const char *value)
Definition: Dataset.h:216
void SetIdentityId(const char *value)
Definition: Dataset.h:71
Dataset & WithIdentityId(const Aws::String &value)
Definition: Dataset.h:77
Dataset & WithLastModifiedDate(const Aws::Utils::DateTime &value)
Definition: Dataset.h:176
Dataset & WithLastModifiedBy(const Aws::String &value)
Definition: Dataset.h:206
Dataset & WithNumRecords(long long value)
Definition: Dataset.h:246
const Aws::Utils::DateTime & GetCreationDate() const
Definition: Dataset.h:136
void SetLastModifiedDate(Aws::Utils::DateTime &&value)
Definition: Dataset.h:171
Dataset & WithCreationDate(Aws::Utils::DateTime &&value)
Definition: Dataset.h:156
void SetDataStorage(long long value)
Definition: Dataset.h:226
void SetLastModifiedDate(const Aws::Utils::DateTime &value)
Definition: Dataset.h:166
const Aws::String & GetIdentityId() const
Definition: Dataset.h:53
void SetLastModifiedBy(const char *value)
Definition: Dataset.h:201
Dataset & WithIdentityId(const char *value)
Definition: Dataset.h:89
Dataset & WithDatasetName(const char *value)
Definition: Dataset.h:131
void SetCreationDate(const Aws::Utils::DateTime &value)
Definition: Dataset.h:141
Dataset & WithCreationDate(const Aws::Utils::DateTime &value)
Definition: Dataset.h:151
void SetDatasetName(const char *value)
Definition: Dataset.h:113
long long GetNumRecords() const
Definition: Dataset.h:236
void SetLastModifiedBy(const Aws::String &value)
Definition: Dataset.h:191
Dataset & WithLastModifiedBy(Aws::String &&value)
Definition: Dataset.h:211
void SetDatasetName(Aws::String &&value)
Definition: Dataset.h:107
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Dataset & WithDataStorage(long long value)
Definition: Dataset.h:231
void SetCreationDate(Aws::Utils::DateTime &&value)
Definition: Dataset.h:146
Dataset & WithDatasetName(Aws::String &&value)
Definition: Dataset.h:125
void SetNumRecords(long long value)
Definition: Dataset.h:241
#define AWS_COGNITOSYNC_API
const Aws::String & GetLastModifiedBy() const
Definition: Dataset.h:186
const Aws::String & GetDatasetName() const
Definition: Dataset.h:95
void SetDatasetName(const Aws::String &value)
Definition: Dataset.h:101
Dataset & WithIdentityId(Aws::String &&value)
Definition: Dataset.h:83
void SetIdentityId(const Aws::String &value)
Definition: Dataset.h:59
Dataset & WithLastModifiedDate(Aws::Utils::DateTime &&value)
Definition: Dataset.h:181
void SetIdentityId(Aws::String &&value)
Definition: Dataset.h:65
JSON (JavaScript Object Notation).