AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateOpsMetadataRequest.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/ssm/SSMRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ssm/model/MetadataValue.h>
13#include <utility>
14
15namespace Aws
16{
17namespace SSM
18{
19namespace 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_SSM_API Aws::String SerializePayload() const override;
36
38
39
41
44 inline const Aws::String& GetOpsMetadataArn() const{ return m_opsMetadataArn; }
45 inline bool OpsMetadataArnHasBeenSet() const { return m_opsMetadataArnHasBeenSet; }
46 inline void SetOpsMetadataArn(const Aws::String& value) { m_opsMetadataArnHasBeenSet = true; m_opsMetadataArn = value; }
47 inline void SetOpsMetadataArn(Aws::String&& value) { m_opsMetadataArnHasBeenSet = true; m_opsMetadataArn = std::move(value); }
48 inline void SetOpsMetadataArn(const char* value) { m_opsMetadataArnHasBeenSet = true; m_opsMetadataArn.assign(value); }
49 inline UpdateOpsMetadataRequest& WithOpsMetadataArn(const Aws::String& value) { SetOpsMetadataArn(value); return *this;}
50 inline UpdateOpsMetadataRequest& WithOpsMetadataArn(Aws::String&& value) { SetOpsMetadataArn(std::move(value)); return *this;}
51 inline UpdateOpsMetadataRequest& WithOpsMetadataArn(const char* value) { SetOpsMetadataArn(value); return *this;}
53
55
58 inline const Aws::Map<Aws::String, MetadataValue>& GetMetadataToUpdate() const{ return m_metadataToUpdate; }
59 inline bool MetadataToUpdateHasBeenSet() const { return m_metadataToUpdateHasBeenSet; }
60 inline void SetMetadataToUpdate(const Aws::Map<Aws::String, MetadataValue>& value) { m_metadataToUpdateHasBeenSet = true; m_metadataToUpdate = value; }
61 inline void SetMetadataToUpdate(Aws::Map<Aws::String, MetadataValue>&& value) { m_metadataToUpdateHasBeenSet = true; m_metadataToUpdate = std::move(value); }
64 inline UpdateOpsMetadataRequest& AddMetadataToUpdate(const Aws::String& key, const MetadataValue& value) { m_metadataToUpdateHasBeenSet = true; m_metadataToUpdate.emplace(key, value); return *this; }
65 inline UpdateOpsMetadataRequest& AddMetadataToUpdate(Aws::String&& key, const MetadataValue& value) { m_metadataToUpdateHasBeenSet = true; m_metadataToUpdate.emplace(std::move(key), value); return *this; }
66 inline UpdateOpsMetadataRequest& AddMetadataToUpdate(const Aws::String& key, MetadataValue&& value) { m_metadataToUpdateHasBeenSet = true; m_metadataToUpdate.emplace(key, std::move(value)); return *this; }
67 inline UpdateOpsMetadataRequest& AddMetadataToUpdate(Aws::String&& key, MetadataValue&& value) { m_metadataToUpdateHasBeenSet = true; m_metadataToUpdate.emplace(std::move(key), std::move(value)); return *this; }
68 inline UpdateOpsMetadataRequest& AddMetadataToUpdate(const char* key, MetadataValue&& value) { m_metadataToUpdateHasBeenSet = true; m_metadataToUpdate.emplace(key, std::move(value)); return *this; }
69 inline UpdateOpsMetadataRequest& AddMetadataToUpdate(const char* key, const MetadataValue& value) { m_metadataToUpdateHasBeenSet = true; m_metadataToUpdate.emplace(key, value); return *this; }
71
73
76 inline const Aws::Vector<Aws::String>& GetKeysToDelete() const{ return m_keysToDelete; }
77 inline bool KeysToDeleteHasBeenSet() const { return m_keysToDeleteHasBeenSet; }
78 inline void SetKeysToDelete(const Aws::Vector<Aws::String>& value) { m_keysToDeleteHasBeenSet = true; m_keysToDelete = value; }
79 inline void SetKeysToDelete(Aws::Vector<Aws::String>&& value) { m_keysToDeleteHasBeenSet = true; m_keysToDelete = std::move(value); }
81 inline UpdateOpsMetadataRequest& WithKeysToDelete(Aws::Vector<Aws::String>&& value) { SetKeysToDelete(std::move(value)); return *this;}
82 inline UpdateOpsMetadataRequest& AddKeysToDelete(const Aws::String& value) { m_keysToDeleteHasBeenSet = true; m_keysToDelete.push_back(value); return *this; }
83 inline UpdateOpsMetadataRequest& AddKeysToDelete(Aws::String&& value) { m_keysToDeleteHasBeenSet = true; m_keysToDelete.push_back(std::move(value)); return *this; }
84 inline UpdateOpsMetadataRequest& AddKeysToDelete(const char* value) { m_keysToDeleteHasBeenSet = true; m_keysToDelete.push_back(value); return *this; }
86 private:
87
88 Aws::String m_opsMetadataArn;
89 bool m_opsMetadataArnHasBeenSet = false;
90
91 Aws::Map<Aws::String, MetadataValue> m_metadataToUpdate;
92 bool m_metadataToUpdateHasBeenSet = false;
93
94 Aws::Vector<Aws::String> m_keysToDelete;
95 bool m_keysToDeleteHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace SSM
100} // namespace Aws
void SetKeysToDelete(const Aws::Vector< Aws::String > &value)
UpdateOpsMetadataRequest & WithOpsMetadataArn(Aws::String &&value)
UpdateOpsMetadataRequest & AddMetadataToUpdate(const Aws::String &key, const MetadataValue &value)
UpdateOpsMetadataRequest & AddKeysToDelete(Aws::String &&value)
const Aws::Map< Aws::String, MetadataValue > & GetMetadataToUpdate() const
UpdateOpsMetadataRequest & WithKeysToDelete(Aws::Vector< Aws::String > &&value)
UpdateOpsMetadataRequest & WithOpsMetadataArn(const char *value)
UpdateOpsMetadataRequest & AddMetadataToUpdate(const char *key, const MetadataValue &value)
UpdateOpsMetadataRequest & WithMetadataToUpdate(const Aws::Map< Aws::String, MetadataValue > &value)
virtual const char * GetServiceRequestName() const override
UpdateOpsMetadataRequest & WithOpsMetadataArn(const Aws::String &value)
UpdateOpsMetadataRequest & AddMetadataToUpdate(const Aws::String &key, MetadataValue &&value)
AWS_SSM_API Aws::String SerializePayload() const override
void SetKeysToDelete(Aws::Vector< Aws::String > &&value)
void SetMetadataToUpdate(Aws::Map< Aws::String, MetadataValue > &&value)
UpdateOpsMetadataRequest & WithMetadataToUpdate(Aws::Map< Aws::String, MetadataValue > &&value)
UpdateOpsMetadataRequest & AddMetadataToUpdate(Aws::String &&key, const MetadataValue &value)
UpdateOpsMetadataRequest & AddMetadataToUpdate(const char *key, MetadataValue &&value)
UpdateOpsMetadataRequest & AddKeysToDelete(const Aws::String &value)
UpdateOpsMetadataRequest & WithKeysToDelete(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetKeysToDelete() const
UpdateOpsMetadataRequest & AddMetadataToUpdate(Aws::String &&key, MetadataValue &&value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetMetadataToUpdate(const Aws::Map< Aws::String, MetadataValue > &value)
UpdateOpsMetadataRequest & AddKeysToDelete(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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
std::vector< T, Aws::Allocator< T > > Vector