AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateOpsMetadataRequest.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 <aws/ssm/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace SSM
19{
20namespace Model
21{
22
26 {
27 public:
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateOpsMetadata"; }
35
36 AWS_SSM_API Aws::String SerializePayload() const override;
37
39
40
42
45 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
46 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
47 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
48 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
49 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
50 inline CreateOpsMetadataRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
51 inline CreateOpsMetadataRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
52 inline CreateOpsMetadataRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
54
56
59 inline const Aws::Map<Aws::String, MetadataValue>& GetMetadata() const{ return m_metadata; }
60 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
61 inline void SetMetadata(const Aws::Map<Aws::String, MetadataValue>& value) { m_metadataHasBeenSet = true; m_metadata = value; }
62 inline void SetMetadata(Aws::Map<Aws::String, MetadataValue>&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); }
65 inline CreateOpsMetadataRequest& AddMetadata(const Aws::String& key, const MetadataValue& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; }
66 inline CreateOpsMetadataRequest& AddMetadata(Aws::String&& key, const MetadataValue& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; }
67 inline CreateOpsMetadataRequest& AddMetadata(const Aws::String& key, MetadataValue&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; }
68 inline CreateOpsMetadataRequest& AddMetadata(Aws::String&& key, MetadataValue&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), std::move(value)); return *this; }
69 inline CreateOpsMetadataRequest& AddMetadata(const char* key, MetadataValue&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; }
70 inline CreateOpsMetadataRequest& AddMetadata(const char* key, const MetadataValue& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; }
72
74
83 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
84 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
85 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
86 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
87 inline CreateOpsMetadataRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
88 inline CreateOpsMetadataRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
89 inline CreateOpsMetadataRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
90 inline CreateOpsMetadataRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
92 private:
93
94 Aws::String m_resourceId;
95 bool m_resourceIdHasBeenSet = false;
96
98 bool m_metadataHasBeenSet = false;
99
100 Aws::Vector<Tag> m_tags;
101 bool m_tagsHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace SSM
106} // namespace Aws
CreateOpsMetadataRequest & WithResourceId(const Aws::String &value)
CreateOpsMetadataRequest & WithMetadata(Aws::Map< Aws::String, MetadataValue > &&value)
CreateOpsMetadataRequest & AddMetadata(Aws::String &&key, MetadataValue &&value)
CreateOpsMetadataRequest & AddMetadata(const char *key, MetadataValue &&value)
CreateOpsMetadataRequest & AddTags(const Tag &value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateOpsMetadataRequest & AddMetadata(const char *key, const MetadataValue &value)
void SetTags(const Aws::Vector< Tag > &value)
CreateOpsMetadataRequest & AddMetadata(const Aws::String &key, MetadataValue &&value)
CreateOpsMetadataRequest & AddMetadata(Aws::String &&key, const MetadataValue &value)
void SetMetadata(Aws::Map< Aws::String, MetadataValue > &&value)
CreateOpsMetadataRequest & WithTags(Aws::Vector< Tag > &&value)
CreateOpsMetadataRequest & WithTags(const Aws::Vector< Tag > &value)
CreateOpsMetadataRequest & AddTags(Tag &&value)
const Aws::Map< Aws::String, MetadataValue > & GetMetadata() const
const Aws::Vector< Tag > & GetTags() const
CreateOpsMetadataRequest & AddMetadata(const Aws::String &key, const MetadataValue &value)
AWS_SSM_API Aws::String SerializePayload() const override
CreateOpsMetadataRequest & WithResourceId(const char *value)
CreateOpsMetadataRequest & WithResourceId(Aws::String &&value)
void SetMetadata(const Aws::Map< Aws::String, MetadataValue > &value)
CreateOpsMetadataRequest & WithMetadata(const Aws::Map< Aws::String, MetadataValue > &value)
virtual const char * GetServiceRequestName() const override
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