AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
PutConfigRuleRequest.h
1
6#pragma once
7#include <aws/config/ConfigServiceRequest.h>
8#include <aws/config/ConfigService_EXPORTS.h>
9#include <aws/config/model/ConfigRule.h>
10#include <aws/config/model/Tag.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ConfigService {
17namespace Model {
18
22 public:
23 AWS_CONFIGSERVICE_API PutConfigRuleRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "PutConfigRule"; }
30
31 AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override;
32
33 AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
39 inline const ConfigRule& GetConfigRule() const { return m_configRule; }
40 inline bool ConfigRuleHasBeenSet() const { return m_configRuleHasBeenSet; }
41 template <typename ConfigRuleT = ConfigRule>
42 void SetConfigRule(ConfigRuleT&& value) {
43 m_configRuleHasBeenSet = true;
44 m_configRule = std::forward<ConfigRuleT>(value);
45 }
46 template <typename ConfigRuleT = ConfigRule>
47 PutConfigRuleRequest& WithConfigRule(ConfigRuleT&& value) {
48 SetConfigRule(std::forward<ConfigRuleT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
58 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
59 template <typename TagsT = Aws::Vector<Tag>>
60 void SetTags(TagsT&& value) {
61 m_tagsHasBeenSet = true;
62 m_tags = std::forward<TagsT>(value);
63 }
64 template <typename TagsT = Aws::Vector<Tag>>
66 SetTags(std::forward<TagsT>(value));
67 return *this;
68 }
69 template <typename TagsT = Tag>
70 PutConfigRuleRequest& AddTags(TagsT&& value) {
71 m_tagsHasBeenSet = true;
72 m_tags.emplace_back(std::forward<TagsT>(value));
73 return *this;
74 }
76 private:
77 ConfigRule m_configRule;
78
79 Aws::Vector<Tag> m_tags;
80 bool m_configRuleHasBeenSet = false;
81 bool m_tagsHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace ConfigService
86} // namespace Aws
AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override
AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutConfigRuleRequest & AddTags(TagsT &&value)
PutConfigRuleRequest & WithTags(TagsT &&value)
AWS_CONFIGSERVICE_API PutConfigRuleRequest()=default
virtual const char * GetServiceRequestName() const override
PutConfigRuleRequest & WithConfigRule(ConfigRuleT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector