AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StartRemediationExecutionRequest.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/config/ConfigServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/config/model/ResourceKey.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ConfigService
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CONFIGSERVICE_API StartRemediationExecutionRequest();
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 "StartRemediationExecution"; }
33
34 AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override;
35
36 AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
44 inline const Aws::String& GetConfigRuleName() const{ return m_configRuleName; }
45 inline bool ConfigRuleNameHasBeenSet() const { return m_configRuleNameHasBeenSet; }
46 inline void SetConfigRuleName(const Aws::String& value) { m_configRuleNameHasBeenSet = true; m_configRuleName = value; }
47 inline void SetConfigRuleName(Aws::String&& value) { m_configRuleNameHasBeenSet = true; m_configRuleName = std::move(value); }
48 inline void SetConfigRuleName(const char* value) { m_configRuleNameHasBeenSet = true; m_configRuleName.assign(value); }
50 inline StartRemediationExecutionRequest& WithConfigRuleName(Aws::String&& value) { SetConfigRuleName(std::move(value)); return *this;}
51 inline StartRemediationExecutionRequest& WithConfigRuleName(const char* value) { SetConfigRuleName(value); return *this;}
53
55
59 inline const Aws::Vector<ResourceKey>& GetResourceKeys() const{ return m_resourceKeys; }
60 inline bool ResourceKeysHasBeenSet() const { return m_resourceKeysHasBeenSet; }
61 inline void SetResourceKeys(const Aws::Vector<ResourceKey>& value) { m_resourceKeysHasBeenSet = true; m_resourceKeys = value; }
62 inline void SetResourceKeys(Aws::Vector<ResourceKey>&& value) { m_resourceKeysHasBeenSet = true; m_resourceKeys = std::move(value); }
65 inline StartRemediationExecutionRequest& AddResourceKeys(const ResourceKey& value) { m_resourceKeysHasBeenSet = true; m_resourceKeys.push_back(value); return *this; }
66 inline StartRemediationExecutionRequest& AddResourceKeys(ResourceKey&& value) { m_resourceKeysHasBeenSet = true; m_resourceKeys.push_back(std::move(value)); return *this; }
68 private:
69
70 Aws::String m_configRuleName;
71 bool m_configRuleNameHasBeenSet = false;
72
73 Aws::Vector<ResourceKey> m_resourceKeys;
74 bool m_resourceKeysHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace ConfigService
79} // namespace Aws
StartRemediationExecutionRequest & WithResourceKeys(const Aws::Vector< ResourceKey > &value)
StartRemediationExecutionRequest & WithResourceKeys(Aws::Vector< ResourceKey > &&value)
AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override
StartRemediationExecutionRequest & AddResourceKeys(ResourceKey &&value)
StartRemediationExecutionRequest & WithConfigRuleName(const Aws::String &value)
StartRemediationExecutionRequest & WithConfigRuleName(Aws::String &&value)
StartRemediationExecutionRequest & WithConfigRuleName(const char *value)
StartRemediationExecutionRequest & AddResourceKeys(const ResourceKey &value)
AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() 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