/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace IoTAnalytics { namespace Model { class CreateDatastoreResult { public: AWS_IOTANALYTICS_API CreateDatastoreResult(); AWS_IOTANALYTICS_API CreateDatastoreResult(const Aws::AmazonWebServiceResult& result); AWS_IOTANALYTICS_API CreateDatastoreResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The name of the data store.

*/ inline const Aws::String& GetDatastoreName() const{ return m_datastoreName; } /** *

The name of the data store.

*/ inline void SetDatastoreName(const Aws::String& value) { m_datastoreName = value; } /** *

The name of the data store.

*/ inline void SetDatastoreName(Aws::String&& value) { m_datastoreName = std::move(value); } /** *

The name of the data store.

*/ inline void SetDatastoreName(const char* value) { m_datastoreName.assign(value); } /** *

The name of the data store.

*/ inline CreateDatastoreResult& WithDatastoreName(const Aws::String& value) { SetDatastoreName(value); return *this;} /** *

The name of the data store.

*/ inline CreateDatastoreResult& WithDatastoreName(Aws::String&& value) { SetDatastoreName(std::move(value)); return *this;} /** *

The name of the data store.

*/ inline CreateDatastoreResult& WithDatastoreName(const char* value) { SetDatastoreName(value); return *this;} /** *

The ARN of the data store.

*/ inline const Aws::String& GetDatastoreArn() const{ return m_datastoreArn; } /** *

The ARN of the data store.

*/ inline void SetDatastoreArn(const Aws::String& value) { m_datastoreArn = value; } /** *

The ARN of the data store.

*/ inline void SetDatastoreArn(Aws::String&& value) { m_datastoreArn = std::move(value); } /** *

The ARN of the data store.

*/ inline void SetDatastoreArn(const char* value) { m_datastoreArn.assign(value); } /** *

The ARN of the data store.

*/ inline CreateDatastoreResult& WithDatastoreArn(const Aws::String& value) { SetDatastoreArn(value); return *this;} /** *

The ARN of the data store.

*/ inline CreateDatastoreResult& WithDatastoreArn(Aws::String&& value) { SetDatastoreArn(std::move(value)); return *this;} /** *

The ARN of the data store.

*/ inline CreateDatastoreResult& WithDatastoreArn(const char* value) { SetDatastoreArn(value); return *this;} /** *

How long, in days, message data is kept for the data store.

*/ inline const RetentionPeriod& GetRetentionPeriod() const{ return m_retentionPeriod; } /** *

How long, in days, message data is kept for the data store.

*/ inline void SetRetentionPeriod(const RetentionPeriod& value) { m_retentionPeriod = value; } /** *

How long, in days, message data is kept for the data store.

*/ inline void SetRetentionPeriod(RetentionPeriod&& value) { m_retentionPeriod = std::move(value); } /** *

How long, in days, message data is kept for the data store.

*/ inline CreateDatastoreResult& WithRetentionPeriod(const RetentionPeriod& value) { SetRetentionPeriod(value); return *this;} /** *

How long, in days, message data is kept for the data store.

*/ inline CreateDatastoreResult& WithRetentionPeriod(RetentionPeriod&& value) { SetRetentionPeriod(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline CreateDatastoreResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateDatastoreResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateDatastoreResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_datastoreName; Aws::String m_datastoreArn; RetentionPeriod m_retentionPeriod; Aws::String m_requestId; }; } // namespace Model } // namespace IoTAnalytics } // namespace Aws