AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateDatastoreRequest.h
1
6#pragma once
7#include <aws/medical-imaging/MedicalImaging_EXPORTS.h>
8#include <aws/medical-imaging/MedicalImagingRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace MedicalImaging
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_MEDICALIMAGING_API CreateDatastoreRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateDatastore"; }
33
34 AWS_MEDICALIMAGING_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetDatastoreName() const{ return m_datastoreName; }
42 inline bool DatastoreNameHasBeenSet() const { return m_datastoreNameHasBeenSet; }
43 inline void SetDatastoreName(const Aws::String& value) { m_datastoreNameHasBeenSet = true; m_datastoreName = value; }
44 inline void SetDatastoreName(Aws::String&& value) { m_datastoreNameHasBeenSet = true; m_datastoreName = std::move(value); }
45 inline void SetDatastoreName(const char* value) { m_datastoreNameHasBeenSet = true; m_datastoreName.assign(value); }
46 inline CreateDatastoreRequest& WithDatastoreName(const Aws::String& value) { SetDatastoreName(value); return *this;}
47 inline CreateDatastoreRequest& WithDatastoreName(Aws::String&& value) { SetDatastoreName(std::move(value)); return *this;}
48 inline CreateDatastoreRequest& WithDatastoreName(const char* value) { SetDatastoreName(value); return *this;}
50
52
55 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
56 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
57 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
58 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
59 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
60 inline CreateDatastoreRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
61 inline CreateDatastoreRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
62 inline CreateDatastoreRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
64
66
69 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
70 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
71 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
72 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
73 inline CreateDatastoreRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
74 inline CreateDatastoreRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
75 inline CreateDatastoreRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
76 inline CreateDatastoreRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
77 inline CreateDatastoreRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
78 inline CreateDatastoreRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
79 inline CreateDatastoreRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
80 inline CreateDatastoreRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
81 inline CreateDatastoreRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
83
85
89 inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; }
90 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
91 inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = value; }
92 inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::move(value); }
93 inline void SetKmsKeyArn(const char* value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn.assign(value); }
94 inline CreateDatastoreRequest& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;}
95 inline CreateDatastoreRequest& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;}
96 inline CreateDatastoreRequest& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;}
98 private:
99
100 Aws::String m_datastoreName;
101 bool m_datastoreNameHasBeenSet = false;
102
103 Aws::String m_clientToken;
104 bool m_clientTokenHasBeenSet = false;
105
107 bool m_tagsHasBeenSet = false;
108
109 Aws::String m_kmsKeyArn;
110 bool m_kmsKeyArnHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace MedicalImaging
115} // namespace Aws
CreateDatastoreRequest & AddTags(Aws::String &&key, const char *value)
CreateDatastoreRequest & WithKmsKeyArn(const char *value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
AWS_MEDICALIMAGING_API Aws::String SerializePayload() const override
CreateDatastoreRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateDatastoreRequest & WithClientToken(Aws::String &&value)
CreateDatastoreRequest & WithDatastoreName(const char *value)
CreateDatastoreRequest & WithClientToken(const char *value)
CreateDatastoreRequest & WithDatastoreName(Aws::String &&value)
CreateDatastoreRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateDatastoreRequest & WithClientToken(const Aws::String &value)
CreateDatastoreRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateDatastoreRequest & WithKmsKeyArn(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateDatastoreRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateDatastoreRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateDatastoreRequest & WithDatastoreName(const Aws::String &value)
CreateDatastoreRequest & AddTags(const char *key, const char *value)
CreateDatastoreRequest & WithKmsKeyArn(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateDatastoreRequest & AddTags(const char *key, Aws::String &&value)
CreateDatastoreRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String