AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateOpsMetadataRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ssm/SSMRequest.h>
11#include <aws/ssm/SSM_EXPORTS.h>
12#include <aws/ssm/model/MetadataValue.h>
13#include <aws/ssm/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace SSM {
19namespace Model {
20
24 public:
25 AWS_SSM_API CreateOpsMetadataRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateOpsMetadata"; }
32
33 AWS_SSM_API Aws::String SerializePayload() const override;
34
36
38
41 inline const Aws::String& GetResourceId() const { return m_resourceId; }
42 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
43 template <typename ResourceIdT = Aws::String>
44 void SetResourceId(ResourceIdT&& value) {
45 m_resourceIdHasBeenSet = true;
46 m_resourceId = std::forward<ResourceIdT>(value);
47 }
48 template <typename ResourceIdT = Aws::String>
50 SetResourceId(std::forward<ResourceIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Map<Aws::String, MetadataValue>& GetMetadata() const { return m_metadata; }
60 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
61 template <typename MetadataT = Aws::Map<Aws::String, MetadataValue>>
62 void SetMetadata(MetadataT&& value) {
63 m_metadataHasBeenSet = true;
64 m_metadata = std::forward<MetadataT>(value);
65 }
66 template <typename MetadataT = Aws::Map<Aws::String, MetadataValue>>
68 SetMetadata(std::forward<MetadataT>(value));
69 return *this;
70 }
71 template <typename MetadataKeyT = Aws::String, typename MetadataValueT = MetadataValue>
72 CreateOpsMetadataRequest& AddMetadata(MetadataKeyT&& key, MetadataValueT&& value) {
73 m_metadataHasBeenSet = true;
74 m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value));
75 return *this;
76 }
78
80
89 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
90 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
91 template <typename TagsT = Aws::Vector<Tag>>
92 void SetTags(TagsT&& value) {
93 m_tagsHasBeenSet = true;
94 m_tags = std::forward<TagsT>(value);
95 }
96 template <typename TagsT = Aws::Vector<Tag>>
98 SetTags(std::forward<TagsT>(value));
99 return *this;
100 }
101 template <typename TagsT = Tag>
103 m_tagsHasBeenSet = true;
104 m_tags.emplace_back(std::forward<TagsT>(value));
105 return *this;
106 }
108 private:
109 Aws::String m_resourceId;
110
112
113 Aws::Vector<Tag> m_tags;
114 bool m_resourceIdHasBeenSet = false;
115 bool m_metadataHasBeenSet = false;
116 bool m_tagsHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace SSM
121} // 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