232 lines
8.1 KiB
C++
232 lines
8.1 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/cognito-sync/CognitoSync_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/core/utils/DateTime.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace CognitoSync
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* Usage information for the identity.<p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/IdentityUsage">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_COGNITOSYNC_API IdentityUsage
|
|
{
|
|
public:
|
|
IdentityUsage();
|
|
IdentityUsage(Aws::Utils::Json::JsonView jsonValue);
|
|
IdentityUsage& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE)
|
|
* created by Amazon Cognito. GUID generation is unique within a region.
|
|
*/
|
|
inline const Aws::String& GetIdentityId() const{ return m_identityId; }
|
|
|
|
/**
|
|
* A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE)
|
|
* created by Amazon Cognito. GUID generation is unique within a region.
|
|
*/
|
|
inline bool IdentityIdHasBeenSet() const { return m_identityIdHasBeenSet; }
|
|
|
|
/**
|
|
* A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE)
|
|
* created by Amazon Cognito. GUID generation is unique within a region.
|
|
*/
|
|
inline void SetIdentityId(const Aws::String& value) { m_identityIdHasBeenSet = true; m_identityId = value; }
|
|
|
|
/**
|
|
* A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE)
|
|
* created by Amazon Cognito. GUID generation is unique within a region.
|
|
*/
|
|
inline void SetIdentityId(Aws::String&& value) { m_identityIdHasBeenSet = true; m_identityId = std::move(value); }
|
|
|
|
/**
|
|
* A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE)
|
|
* created by Amazon Cognito. GUID generation is unique within a region.
|
|
*/
|
|
inline void SetIdentityId(const char* value) { m_identityIdHasBeenSet = true; m_identityId.assign(value); }
|
|
|
|
/**
|
|
* A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE)
|
|
* created by Amazon Cognito. GUID generation is unique within a region.
|
|
*/
|
|
inline IdentityUsage& WithIdentityId(const Aws::String& value) { SetIdentityId(value); return *this;}
|
|
|
|
/**
|
|
* A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE)
|
|
* created by Amazon Cognito. GUID generation is unique within a region.
|
|
*/
|
|
inline IdentityUsage& WithIdentityId(Aws::String&& value) { SetIdentityId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE)
|
|
* created by Amazon Cognito. GUID generation is unique within a region.
|
|
*/
|
|
inline IdentityUsage& WithIdentityId(const char* value) { SetIdentityId(value); return *this;}
|
|
|
|
|
|
/**
|
|
* A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE)
|
|
* created by Amazon Cognito. GUID generation is unique within a region.
|
|
*/
|
|
inline const Aws::String& GetIdentityPoolId() const{ return m_identityPoolId; }
|
|
|
|
/**
|
|
* A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE)
|
|
* created by Amazon Cognito. GUID generation is unique within a region.
|
|
*/
|
|
inline bool IdentityPoolIdHasBeenSet() const { return m_identityPoolIdHasBeenSet; }
|
|
|
|
/**
|
|
* A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE)
|
|
* created by Amazon Cognito. GUID generation is unique within a region.
|
|
*/
|
|
inline void SetIdentityPoolId(const Aws::String& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = value; }
|
|
|
|
/**
|
|
* A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE)
|
|
* created by Amazon Cognito. GUID generation is unique within a region.
|
|
*/
|
|
inline void SetIdentityPoolId(Aws::String&& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = std::move(value); }
|
|
|
|
/**
|
|
* A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE)
|
|
* created by Amazon Cognito. GUID generation is unique within a region.
|
|
*/
|
|
inline void SetIdentityPoolId(const char* value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId.assign(value); }
|
|
|
|
/**
|
|
* A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE)
|
|
* created by Amazon Cognito. GUID generation is unique within a region.
|
|
*/
|
|
inline IdentityUsage& WithIdentityPoolId(const Aws::String& value) { SetIdentityPoolId(value); return *this;}
|
|
|
|
/**
|
|
* A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE)
|
|
* created by Amazon Cognito. GUID generation is unique within a region.
|
|
*/
|
|
inline IdentityUsage& WithIdentityPoolId(Aws::String&& value) { SetIdentityPoolId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE)
|
|
* created by Amazon Cognito. GUID generation is unique within a region.
|
|
*/
|
|
inline IdentityUsage& WithIdentityPoolId(const char* value) { SetIdentityPoolId(value); return *this;}
|
|
|
|
|
|
/**
|
|
* Date on which the identity was last modified.
|
|
*/
|
|
inline const Aws::Utils::DateTime& GetLastModifiedDate() const{ return m_lastModifiedDate; }
|
|
|
|
/**
|
|
* Date on which the identity was last modified.
|
|
*/
|
|
inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
|
|
|
|
/**
|
|
* Date on which the identity was last modified.
|
|
*/
|
|
inline void SetLastModifiedDate(const Aws::Utils::DateTime& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
|
|
|
|
/**
|
|
* Date on which the identity was last modified.
|
|
*/
|
|
inline void SetLastModifiedDate(Aws::Utils::DateTime&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::move(value); }
|
|
|
|
/**
|
|
* Date on which the identity was last modified.
|
|
*/
|
|
inline IdentityUsage& WithLastModifiedDate(const Aws::Utils::DateTime& value) { SetLastModifiedDate(value); return *this;}
|
|
|
|
/**
|
|
* Date on which the identity was last modified.
|
|
*/
|
|
inline IdentityUsage& WithLastModifiedDate(Aws::Utils::DateTime&& value) { SetLastModifiedDate(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* Number of datasets for the identity.
|
|
*/
|
|
inline int GetDatasetCount() const{ return m_datasetCount; }
|
|
|
|
/**
|
|
* Number of datasets for the identity.
|
|
*/
|
|
inline bool DatasetCountHasBeenSet() const { return m_datasetCountHasBeenSet; }
|
|
|
|
/**
|
|
* Number of datasets for the identity.
|
|
*/
|
|
inline void SetDatasetCount(int value) { m_datasetCountHasBeenSet = true; m_datasetCount = value; }
|
|
|
|
/**
|
|
* Number of datasets for the identity.
|
|
*/
|
|
inline IdentityUsage& WithDatasetCount(int value) { SetDatasetCount(value); return *this;}
|
|
|
|
|
|
/**
|
|
* Total data storage for this identity.
|
|
*/
|
|
inline long long GetDataStorage() const{ return m_dataStorage; }
|
|
|
|
/**
|
|
* Total data storage for this identity.
|
|
*/
|
|
inline bool DataStorageHasBeenSet() const { return m_dataStorageHasBeenSet; }
|
|
|
|
/**
|
|
* Total data storage for this identity.
|
|
*/
|
|
inline void SetDataStorage(long long value) { m_dataStorageHasBeenSet = true; m_dataStorage = value; }
|
|
|
|
/**
|
|
* Total data storage for this identity.
|
|
*/
|
|
inline IdentityUsage& WithDataStorage(long long value) { SetDataStorage(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_identityId;
|
|
bool m_identityIdHasBeenSet;
|
|
|
|
Aws::String m_identityPoolId;
|
|
bool m_identityPoolIdHasBeenSet;
|
|
|
|
Aws::Utils::DateTime m_lastModifiedDate;
|
|
bool m_lastModifiedDateHasBeenSet;
|
|
|
|
int m_datasetCount;
|
|
bool m_datasetCountHasBeenSet;
|
|
|
|
long long m_dataStorage;
|
|
bool m_dataStorageHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace CognitoSync
|
|
} // namespace Aws
|