AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
StartConfigurationPolicyAssociationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityhub/SecurityHubRequest.h>
9#include <aws/securityhub/SecurityHub_EXPORTS.h>
10#include <aws/securityhub/model/Target.h>
11
12#include <utility>
13
14namespace Aws {
15namespace SecurityHub {
16namespace Model {
17
21 public:
22 AWS_SECURITYHUB_API StartConfigurationPolicyAssociationRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "StartConfigurationPolicyAssociation"; }
29
30 AWS_SECURITYHUB_API Aws::String SerializePayload() const override;
31
33
38 inline const Aws::String& GetConfigurationPolicyIdentifier() const { return m_configurationPolicyIdentifier; }
39 inline bool ConfigurationPolicyIdentifierHasBeenSet() const { return m_configurationPolicyIdentifierHasBeenSet; }
40 template <typename ConfigurationPolicyIdentifierT = Aws::String>
41 void SetConfigurationPolicyIdentifier(ConfigurationPolicyIdentifierT&& value) {
42 m_configurationPolicyIdentifierHasBeenSet = true;
43 m_configurationPolicyIdentifier = std::forward<ConfigurationPolicyIdentifierT>(value);
44 }
45 template <typename ConfigurationPolicyIdentifierT = Aws::String>
47 SetConfigurationPolicyIdentifier(std::forward<ConfigurationPolicyIdentifierT>(value));
48 return *this;
49 }
51
53
57 inline const Target& GetTarget() const { return m_target; }
58 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
59 template <typename TargetT = Target>
60 void SetTarget(TargetT&& value) {
61 m_targetHasBeenSet = true;
62 m_target = std::forward<TargetT>(value);
63 }
64 template <typename TargetT = Target>
66 SetTarget(std::forward<TargetT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_configurationPolicyIdentifier;
72
73 Target m_target;
74 bool m_configurationPolicyIdentifierHasBeenSet = false;
75 bool m_targetHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace SecurityHub
80} // namespace Aws
AWS_SECURITYHUB_API Aws::String SerializePayload() const override
StartConfigurationPolicyAssociationRequest & WithConfigurationPolicyIdentifier(ConfigurationPolicyIdentifierT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String