AWS SDK for C++

AWS SDK for C++ Version 1.11.552

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
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:
28 AWS_SSM_API CreateOpsMetadataRequest() = default;
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 template<typename ResourceIdT = Aws::String>
48 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
49 template<typename ResourceIdT = Aws::String>
50 CreateOpsMetadataRequest& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
52
54
57 inline const Aws::Map<Aws::String, MetadataValue>& GetMetadata() const { return m_metadata; }
58 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
59 template<typename MetadataT = Aws::Map<Aws::String, MetadataValue>>
60 void SetMetadata(MetadataT&& value) { m_metadataHasBeenSet = true; m_metadata = std::forward<MetadataT>(value); }
61 template<typename MetadataT = Aws::Map<Aws::String, MetadataValue>>
62 CreateOpsMetadataRequest& WithMetadata(MetadataT&& value) { SetMetadata(std::forward<MetadataT>(value)); return *this;}
63 template<typename MetadataKeyT = Aws::String, typename MetadataValueT = MetadataValue>
64 CreateOpsMetadataRequest& AddMetadata(MetadataKeyT&& key, MetadataValueT&& value) {
65 m_metadataHasBeenSet = true; m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value)); return *this;
66 }
68
70
79 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
80 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
81 template<typename TagsT = Aws::Vector<Tag>>
82 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
83 template<typename TagsT = Aws::Vector<Tag>>
84 CreateOpsMetadataRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
85 template<typename TagsT = Tag>
86 CreateOpsMetadataRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
88 private:
89
90 Aws::String m_resourceId;
91 bool m_resourceIdHasBeenSet = false;
92
94 bool m_metadataHasBeenSet = false;
95
96 Aws::Vector<Tag> m_tags;
97 bool m_tagsHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace SSM
102} // namespace Aws
CreateOpsMetadataRequest & WithResourceId(ResourceIdT &&value)
CreateOpsMetadataRequest & AddTags(TagsT &&value)
CreateOpsMetadataRequest & WithMetadata(MetadataT &&value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Map< Aws::String, MetadataValue > & GetMetadata() const
const Aws::Vector< Tag > & GetTags() const
AWS_SSM_API Aws::String SerializePayload() const override
CreateOpsMetadataRequest & WithTags(TagsT &&value)
CreateOpsMetadataRequest & AddMetadata(MetadataKeyT &&key, MetadataValueT &&value)
virtual const char * GetServiceRequestName() const override
AWS_SSM_API CreateOpsMetadataRequest()=default
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