AWS SDK for C++  1.9.129
AWS SDK for C++
UpdateOpsMetadataRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ssm/SSM_EXPORTS.h>
8 #include <aws/ssm/SSMRequest.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace SSM
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "UpdateOpsMetadata"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
43  inline const Aws::String& GetOpsMetadataArn() const{ return m_opsMetadataArn; }
44 
48  inline bool OpsMetadataArnHasBeenSet() const { return m_opsMetadataArnHasBeenSet; }
49 
53  inline void SetOpsMetadataArn(const Aws::String& value) { m_opsMetadataArnHasBeenSet = true; m_opsMetadataArn = value; }
54 
58  inline void SetOpsMetadataArn(Aws::String&& value) { m_opsMetadataArnHasBeenSet = true; m_opsMetadataArn = std::move(value); }
59 
63  inline void SetOpsMetadataArn(const char* value) { m_opsMetadataArnHasBeenSet = true; m_opsMetadataArn.assign(value); }
64 
68  inline UpdateOpsMetadataRequest& WithOpsMetadataArn(const Aws::String& value) { SetOpsMetadataArn(value); return *this;}
69 
73  inline UpdateOpsMetadataRequest& WithOpsMetadataArn(Aws::String&& value) { SetOpsMetadataArn(std::move(value)); return *this;}
74 
78  inline UpdateOpsMetadataRequest& WithOpsMetadataArn(const char* value) { SetOpsMetadataArn(value); return *this;}
79 
80 
84  inline const Aws::Map<Aws::String, MetadataValue>& GetMetadataToUpdate() const{ return m_metadataToUpdate; }
85 
89  inline bool MetadataToUpdateHasBeenSet() const { return m_metadataToUpdateHasBeenSet; }
90 
94  inline void SetMetadataToUpdate(const Aws::Map<Aws::String, MetadataValue>& value) { m_metadataToUpdateHasBeenSet = true; m_metadataToUpdate = value; }
95 
99  inline void SetMetadataToUpdate(Aws::Map<Aws::String, MetadataValue>&& value) { m_metadataToUpdateHasBeenSet = true; m_metadataToUpdate = std::move(value); }
100 
104  inline UpdateOpsMetadataRequest& WithMetadataToUpdate(const Aws::Map<Aws::String, MetadataValue>& value) { SetMetadataToUpdate(value); return *this;}
105 
109  inline UpdateOpsMetadataRequest& WithMetadataToUpdate(Aws::Map<Aws::String, MetadataValue>&& value) { SetMetadataToUpdate(std::move(value)); return *this;}
110 
114  inline UpdateOpsMetadataRequest& AddMetadataToUpdate(const Aws::String& key, const MetadataValue& value) { m_metadataToUpdateHasBeenSet = true; m_metadataToUpdate.emplace(key, value); return *this; }
115 
119  inline UpdateOpsMetadataRequest& AddMetadataToUpdate(Aws::String&& key, const MetadataValue& value) { m_metadataToUpdateHasBeenSet = true; m_metadataToUpdate.emplace(std::move(key), value); return *this; }
120 
124  inline UpdateOpsMetadataRequest& AddMetadataToUpdate(const Aws::String& key, MetadataValue&& value) { m_metadataToUpdateHasBeenSet = true; m_metadataToUpdate.emplace(key, std::move(value)); return *this; }
125 
129  inline UpdateOpsMetadataRequest& AddMetadataToUpdate(Aws::String&& key, MetadataValue&& value) { m_metadataToUpdateHasBeenSet = true; m_metadataToUpdate.emplace(std::move(key), std::move(value)); return *this; }
130 
134  inline UpdateOpsMetadataRequest& AddMetadataToUpdate(const char* key, MetadataValue&& value) { m_metadataToUpdateHasBeenSet = true; m_metadataToUpdate.emplace(key, std::move(value)); return *this; }
135 
139  inline UpdateOpsMetadataRequest& AddMetadataToUpdate(const char* key, const MetadataValue& value) { m_metadataToUpdateHasBeenSet = true; m_metadataToUpdate.emplace(key, value); return *this; }
140 
141 
145  inline const Aws::Vector<Aws::String>& GetKeysToDelete() const{ return m_keysToDelete; }
146 
150  inline bool KeysToDeleteHasBeenSet() const { return m_keysToDeleteHasBeenSet; }
151 
155  inline void SetKeysToDelete(const Aws::Vector<Aws::String>& value) { m_keysToDeleteHasBeenSet = true; m_keysToDelete = value; }
156 
160  inline void SetKeysToDelete(Aws::Vector<Aws::String>&& value) { m_keysToDeleteHasBeenSet = true; m_keysToDelete = std::move(value); }
161 
165  inline UpdateOpsMetadataRequest& WithKeysToDelete(const Aws::Vector<Aws::String>& value) { SetKeysToDelete(value); return *this;}
166 
170  inline UpdateOpsMetadataRequest& WithKeysToDelete(Aws::Vector<Aws::String>&& value) { SetKeysToDelete(std::move(value)); return *this;}
171 
175  inline UpdateOpsMetadataRequest& AddKeysToDelete(const Aws::String& value) { m_keysToDeleteHasBeenSet = true; m_keysToDelete.push_back(value); return *this; }
176 
180  inline UpdateOpsMetadataRequest& AddKeysToDelete(Aws::String&& value) { m_keysToDeleteHasBeenSet = true; m_keysToDelete.push_back(std::move(value)); return *this; }
181 
185  inline UpdateOpsMetadataRequest& AddKeysToDelete(const char* value) { m_keysToDeleteHasBeenSet = true; m_keysToDelete.push_back(value); return *this; }
186 
187  private:
188 
189  Aws::String m_opsMetadataArn;
190  bool m_opsMetadataArnHasBeenSet;
191 
192  Aws::Map<Aws::String, MetadataValue> m_metadataToUpdate;
193  bool m_metadataToUpdateHasBeenSet;
194 
195  Aws::Vector<Aws::String> m_keysToDelete;
196  bool m_keysToDeleteHasBeenSet;
197  };
198 
199 } // namespace Model
200 } // namespace SSM
201 } // namespace Aws
Aws::SSM::Model::UpdateOpsMetadataRequest::SetKeysToDelete
void SetKeysToDelete(const Aws::Vector< Aws::String > &value)
Definition: UpdateOpsMetadataRequest.h:155
Aws::SSM::Model::UpdateOpsMetadataRequest::UpdateOpsMetadataRequest
UpdateOpsMetadataRequest()
Aws::SSM::Model::UpdateOpsMetadataRequest::KeysToDeleteHasBeenSet
bool KeysToDeleteHasBeenSet() const
Definition: UpdateOpsMetadataRequest.h:150
MetadataValue.h
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SSM::Model::UpdateOpsMetadataRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SSM::Model::UpdateOpsMetadataRequest::SetKeysToDelete
void SetKeysToDelete(Aws::Vector< Aws::String > &&value)
Definition: UpdateOpsMetadataRequest.h:160
AWS_SSM_API
#define AWS_SSM_API
Definition: SSM_EXPORTS.h:28
Aws::SSM::Model::UpdateOpsMetadataRequest::SetMetadataToUpdate
void SetMetadataToUpdate(Aws::Map< Aws::String, MetadataValue > &&value)
Definition: UpdateOpsMetadataRequest.h:99
Aws::SSM::Model::UpdateOpsMetadataRequest::AddMetadataToUpdate
UpdateOpsMetadataRequest & AddMetadataToUpdate(Aws::String &&key, MetadataValue &&value)
Definition: UpdateOpsMetadataRequest.h:129
Aws::SSM::Model::MetadataValue
Definition: MetadataValue.h:33
Aws::SSM::Model::UpdateOpsMetadataRequest::AddKeysToDelete
UpdateOpsMetadataRequest & AddKeysToDelete(Aws::String &&value)
Definition: UpdateOpsMetadataRequest.h:180
Aws::SSM::Model::UpdateOpsMetadataRequest::AddMetadataToUpdate
UpdateOpsMetadataRequest & AddMetadataToUpdate(Aws::String &&key, const MetadataValue &value)
Definition: UpdateOpsMetadataRequest.h:119
Aws::SSM::Model::UpdateOpsMetadataRequest::AddMetadataToUpdate
UpdateOpsMetadataRequest & AddMetadataToUpdate(const Aws::String &key, MetadataValue &&value)
Definition: UpdateOpsMetadataRequest.h:124
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
SSM_EXPORTS.h
Aws::SSM::Model::UpdateOpsMetadataRequest::AddKeysToDelete
UpdateOpsMetadataRequest & AddKeysToDelete(const Aws::String &value)
Definition: UpdateOpsMetadataRequest.h:175
AWSVector.h
Aws::SSM::Model::UpdateOpsMetadataRequest::WithOpsMetadataArn
UpdateOpsMetadataRequest & WithOpsMetadataArn(const char *value)
Definition: UpdateOpsMetadataRequest.h:78
Aws::SSM::Model::UpdateOpsMetadataRequest::SetMetadataToUpdate
void SetMetadataToUpdate(const Aws::Map< Aws::String, MetadataValue > &value)
Definition: UpdateOpsMetadataRequest.h:94
Aws::SSM::Model::UpdateOpsMetadataRequest::SetOpsMetadataArn
void SetOpsMetadataArn(Aws::String &&value)
Definition: UpdateOpsMetadataRequest.h:58
Aws::SSM::Model::UpdateOpsMetadataRequest::WithMetadataToUpdate
UpdateOpsMetadataRequest & WithMetadataToUpdate(const Aws::Map< Aws::String, MetadataValue > &value)
Definition: UpdateOpsMetadataRequest.h:104
Aws::SSM::Model::UpdateOpsMetadataRequest::AddKeysToDelete
UpdateOpsMetadataRequest & AddKeysToDelete(const char *value)
Definition: UpdateOpsMetadataRequest.h:185
Aws::SSM::Model::UpdateOpsMetadataRequest::WithOpsMetadataArn
UpdateOpsMetadataRequest & WithOpsMetadataArn(const Aws::String &value)
Definition: UpdateOpsMetadataRequest.h:68
Aws::SSM::Model::UpdateOpsMetadataRequest::AddMetadataToUpdate
UpdateOpsMetadataRequest & AddMetadataToUpdate(const Aws::String &key, const MetadataValue &value)
Definition: UpdateOpsMetadataRequest.h:114
Aws::SSM::Model::UpdateOpsMetadataRequest::OpsMetadataArnHasBeenSet
bool OpsMetadataArnHasBeenSet() const
Definition: UpdateOpsMetadataRequest.h:48
AWSString.h
Aws::SMS::Model::AppValidationStrategy::NOT_SET
@ NOT_SET
Aws::SSM::Model::UpdateOpsMetadataRequest::WithOpsMetadataArn
UpdateOpsMetadataRequest & WithOpsMetadataArn(Aws::String &&value)
Definition: UpdateOpsMetadataRequest.h:73
Aws::SSM::Model::UpdateOpsMetadataRequest::WithKeysToDelete
UpdateOpsMetadataRequest & WithKeysToDelete(Aws::Vector< Aws::String > &&value)
Definition: UpdateOpsMetadataRequest.h:170
Aws::SSM::Model::UpdateOpsMetadataRequest::GetMetadataToUpdate
const Aws::Map< Aws::String, MetadataValue > & GetMetadataToUpdate() const
Definition: UpdateOpsMetadataRequest.h:84
Aws::SSM::Model::UpdateOpsMetadataRequest::AddMetadataToUpdate
UpdateOpsMetadataRequest & AddMetadataToUpdate(const char *key, MetadataValue &&value)
Definition: UpdateOpsMetadataRequest.h:134
Aws::SSM::Model::UpdateOpsMetadataRequest::MetadataToUpdateHasBeenSet
bool MetadataToUpdateHasBeenSet() const
Definition: UpdateOpsMetadataRequest.h:89
Aws::SSM::Model::UpdateOpsMetadataRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws
Definition: AccessManagementClient.h:15
Aws::SSM::Model::UpdateOpsMetadataRequest::WithMetadataToUpdate
UpdateOpsMetadataRequest & WithMetadataToUpdate(Aws::Map< Aws::String, MetadataValue > &&value)
Definition: UpdateOpsMetadataRequest.h:109
Aws::SSM::Model::UpdateOpsMetadataRequest::GetKeysToDelete
const Aws::Vector< Aws::String > & GetKeysToDelete() const
Definition: UpdateOpsMetadataRequest.h:145
Aws::SSM::Model::UpdateOpsMetadataRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateOpsMetadataRequest.h:33
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SSM::Model::UpdateOpsMetadataRequest::SetOpsMetadataArn
void SetOpsMetadataArn(const Aws::String &value)
Definition: UpdateOpsMetadataRequest.h:53
Aws::SSM::Model::UpdateOpsMetadataRequest::GetOpsMetadataArn
const Aws::String & GetOpsMetadataArn() const
Definition: UpdateOpsMetadataRequest.h:43
Aws::SSM::Model::UpdateOpsMetadataRequest::SetOpsMetadataArn
void SetOpsMetadataArn(const char *value)
Definition: UpdateOpsMetadataRequest.h:63
AWSMap.h
Aws::SSM::SSMRequest
Definition: SSMRequest.h:17
Aws::SSM::Model::UpdateOpsMetadataRequest::AddMetadataToUpdate
UpdateOpsMetadataRequest & AddMetadataToUpdate(const char *key, const MetadataValue &value)
Definition: UpdateOpsMetadataRequest.h:139
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
SSMRequest.h
Aws::SSM::Model::UpdateOpsMetadataRequest::WithKeysToDelete
UpdateOpsMetadataRequest & WithKeysToDelete(const Aws::Vector< Aws::String > &value)
Definition: UpdateOpsMetadataRequest.h:165
Aws::SSM::Model::UpdateOpsMetadataRequest
Definition: UpdateOpsMetadataRequest.h:25