AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateInstanceRequest.h
1
6#pragma once
7#include <aws/supplychain/SupplyChain_EXPORTS.h>
8#include <aws/supplychain/SupplyChainRequest.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 SupplyChain
17{
18namespace Model
19{
20
27 {
28 public:
29 AWS_SUPPLYCHAIN_API CreateInstanceRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateInstance"; }
36
37 AWS_SUPPLYCHAIN_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::String& GetInstanceName() const{ return m_instanceName; }
45 inline bool InstanceNameHasBeenSet() const { return m_instanceNameHasBeenSet; }
46 inline void SetInstanceName(const Aws::String& value) { m_instanceNameHasBeenSet = true; m_instanceName = value; }
47 inline void SetInstanceName(Aws::String&& value) { m_instanceNameHasBeenSet = true; m_instanceName = std::move(value); }
48 inline void SetInstanceName(const char* value) { m_instanceNameHasBeenSet = true; m_instanceName.assign(value); }
49 inline CreateInstanceRequest& WithInstanceName(const Aws::String& value) { SetInstanceName(value); return *this;}
50 inline CreateInstanceRequest& WithInstanceName(Aws::String&& value) { SetInstanceName(std::move(value)); return *this;}
51 inline CreateInstanceRequest& WithInstanceName(const char* value) { SetInstanceName(value); return *this;}
53
55
58 inline const Aws::String& GetInstanceDescription() const{ return m_instanceDescription; }
59 inline bool InstanceDescriptionHasBeenSet() const { return m_instanceDescriptionHasBeenSet; }
60 inline void SetInstanceDescription(const Aws::String& value) { m_instanceDescriptionHasBeenSet = true; m_instanceDescription = value; }
61 inline void SetInstanceDescription(Aws::String&& value) { m_instanceDescriptionHasBeenSet = true; m_instanceDescription = std::move(value); }
62 inline void SetInstanceDescription(const char* value) { m_instanceDescriptionHasBeenSet = true; m_instanceDescription.assign(value); }
64 inline CreateInstanceRequest& WithInstanceDescription(Aws::String&& value) { SetInstanceDescription(std::move(value)); return *this;}
65 inline CreateInstanceRequest& WithInstanceDescription(const char* value) { SetInstanceDescription(value); return *this;}
67
69
75 inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; }
76 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
77 inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = value; }
78 inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::move(value); }
79 inline void SetKmsKeyArn(const char* value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn.assign(value); }
80 inline CreateInstanceRequest& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;}
81 inline CreateInstanceRequest& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;}
82 inline CreateInstanceRequest& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;}
84
86
89 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
90 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
91 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
92 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
93 inline CreateInstanceRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
94 inline CreateInstanceRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
95 inline CreateInstanceRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
96 inline CreateInstanceRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
97 inline CreateInstanceRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
98 inline CreateInstanceRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
99 inline CreateInstanceRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
100 inline CreateInstanceRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
101 inline CreateInstanceRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
103
105
108 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
109 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
110 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
111 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
112 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
113 inline CreateInstanceRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
114 inline CreateInstanceRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
115 inline CreateInstanceRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
117 private:
118
119 Aws::String m_instanceName;
120 bool m_instanceNameHasBeenSet = false;
121
122 Aws::String m_instanceDescription;
123 bool m_instanceDescriptionHasBeenSet = false;
124
125 Aws::String m_kmsKeyArn;
126 bool m_kmsKeyArnHasBeenSet = false;
127
129 bool m_tagsHasBeenSet = false;
130
131 Aws::String m_clientToken;
132 bool m_clientTokenHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace SupplyChain
137} // namespace Aws
CreateInstanceRequest & AddTags(const char *key, Aws::String &&value)
CreateInstanceRequest & AddTags(Aws::String &&key, const Aws::String &value)
AWS_SUPPLYCHAIN_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CreateInstanceRequest & WithInstanceName(const char *value)
CreateInstanceRequest & WithClientToken(const char *value)
CreateInstanceRequest & WithClientToken(const Aws::String &value)
CreateInstanceRequest & AddTags(Aws::String &&key, const char *value)
CreateInstanceRequest & WithInstanceDescription(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateInstanceRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateInstanceRequest & WithInstanceName(const Aws::String &value)
CreateInstanceRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateInstanceRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateInstanceRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateInstanceRequest & WithClientToken(Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateInstanceRequest & AddTags(const Aws::String &key, Aws::String &&value)
void SetInstanceDescription(const Aws::String &value)
CreateInstanceRequest & WithInstanceDescription(const char *value)
CreateInstanceRequest & AddTags(const char *key, const char *value)
CreateInstanceRequest & WithInstanceDescription(const Aws::String &value)
CreateInstanceRequest & WithKmsKeyArn(Aws::String &&value)
CreateInstanceRequest & WithKmsKeyArn(const Aws::String &value)
CreateInstanceRequest & WithInstanceName(Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateInstanceRequest & WithKmsKeyArn(const char *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