/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace MedicalImaging { namespace Model { /** */ class CreateDatastoreRequest : public MedicalImagingRequest { public: AWS_MEDICALIMAGING_API CreateDatastoreRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateDatastore"; } AWS_MEDICALIMAGING_API Aws::String SerializePayload() const override; /** *

The data store name.

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

The data store name.

*/ inline bool DatastoreNameHasBeenSet() const { return m_datastoreNameHasBeenSet; } /** *

The data store name.

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

The data store name.

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

The data store name.

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

The data store name.

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

The data store name.

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

The data store name.

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

A unique identifier for API idempotency.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

A unique identifier for API idempotency.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

A unique identifier for API idempotency.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

A unique identifier for API idempotency.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

A unique identifier for API idempotency.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

A unique identifier for API idempotency.

*/ inline CreateDatastoreRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

A unique identifier for API idempotency.

*/ inline CreateDatastoreRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

A unique identifier for API idempotency.

*/ inline CreateDatastoreRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

The tags provided when creating a data store.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

The tags provided when creating a data store.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags provided when creating a data store.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tags provided when creating a data store.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tags provided when creating a data store.

*/ inline CreateDatastoreRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

The tags provided when creating a data store.

*/ inline CreateDatastoreRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

The tags provided when creating a data store.

*/ inline CreateDatastoreRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The tags provided when creating a data store.

*/ inline CreateDatastoreRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags provided when creating a data store.

*/ inline CreateDatastoreRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags provided when creating a data store.

*/ inline CreateDatastoreRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The tags provided when creating a data store.

*/ inline CreateDatastoreRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags provided when creating a data store.

*/ inline CreateDatastoreRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags provided when creating a data store.

*/ inline CreateDatastoreRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The Amazon Resource Name (ARN) assigned to the AWS Key Management Service * (AWS KMS) key for accessing encrypted data.

*/ inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; } /** *

The Amazon Resource Name (ARN) assigned to the AWS Key Management Service * (AWS KMS) key for accessing encrypted data.

*/ inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) assigned to the AWS Key Management Service * (AWS KMS) key for accessing encrypted data.

*/ inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = value; } /** *

The Amazon Resource Name (ARN) assigned to the AWS Key Management Service * (AWS KMS) key for accessing encrypted data.

*/ inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::move(value); } /** *

The Amazon Resource Name (ARN) assigned to the AWS Key Management Service * (AWS KMS) key for accessing encrypted data.

*/ inline void SetKmsKeyArn(const char* value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn.assign(value); } /** *

The Amazon Resource Name (ARN) assigned to the AWS Key Management Service * (AWS KMS) key for accessing encrypted data.

*/ inline CreateDatastoreRequest& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;} /** *

The Amazon Resource Name (ARN) assigned to the AWS Key Management Service * (AWS KMS) key for accessing encrypted data.

*/ inline CreateDatastoreRequest& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) assigned to the AWS Key Management Service * (AWS KMS) key for accessing encrypted data.

*/ inline CreateDatastoreRequest& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;} private: Aws::String m_datastoreName; bool m_datastoreNameHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; Aws::String m_kmsKeyArn; bool m_kmsKeyArnHasBeenSet = false; }; } // namespace Model } // namespace MedicalImaging } // namespace Aws