AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetConfigRule(const ConfigRule& value) { m_configRuleHasBeenSet = true; m_configRule = value; }
46 inline void SetConfigRule(ConfigRule&& value) { m_configRuleHasBeenSet = true; m_configRule = std::move(value); }
47 inline PutConfigRuleRequest& WithConfigRule(const ConfigRule& value) { SetConfigRule(value); return *this;}
48 inline PutConfigRuleRequest& WithConfigRule(ConfigRule&& value) { SetConfigRule(std::move(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 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
58 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
59 inline PutConfigRuleRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
60 inline PutConfigRuleRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
61 inline PutConfigRuleRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
62 inline PutConfigRuleRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(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(const Tag &value)
PutConfigRuleRequest & AddTags(Tag &&value)
PutConfigRuleRequest & WithConfigRule(ConfigRule &&value)
void SetTags(const Aws::Vector< Tag > &value)
PutConfigRuleRequest & WithTags(Aws::Vector< Tag > &&value)
PutConfigRuleRequest & WithTags(const Aws::Vector< Tag > &value)
PutConfigRuleRequest & WithConfigRule(const ConfigRule &value)
virtual const char * GetServiceRequestName() const override
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