AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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