AWS SDK for C++  1.9.40
AWS SDK for C++
EnableSecurityHubRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace SecurityHub
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "EnableSecurityHub"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
39  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
40 
44  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
45 
49  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
50 
54  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
55 
59  inline EnableSecurityHubRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
60 
64  inline EnableSecurityHubRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
65 
69  inline EnableSecurityHubRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
70 
74  inline EnableSecurityHubRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
75 
79  inline EnableSecurityHubRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
80 
84  inline EnableSecurityHubRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
85 
89  inline EnableSecurityHubRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
90 
94  inline EnableSecurityHubRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
95 
99  inline EnableSecurityHubRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
100 
101 
109  inline bool GetEnableDefaultStandards() const{ return m_enableDefaultStandards; }
110 
118  inline bool EnableDefaultStandardsHasBeenSet() const { return m_enableDefaultStandardsHasBeenSet; }
119 
127  inline void SetEnableDefaultStandards(bool value) { m_enableDefaultStandardsHasBeenSet = true; m_enableDefaultStandards = value; }
128 
136  inline EnableSecurityHubRequest& WithEnableDefaultStandards(bool value) { SetEnableDefaultStandards(value); return *this;}
137 
138  private:
139 
141  bool m_tagsHasBeenSet;
142 
143  bool m_enableDefaultStandards;
144  bool m_enableDefaultStandardsHasBeenSet;
145  };
146 
147 } // namespace Model
148 } // namespace SecurityHub
149 } // namespace Aws
Aws::SecurityHub::Model::EnableSecurityHubRequest
Definition: EnableSecurityHubRequest.h:23
Aws::SecurityHub::Model::EnableSecurityHubRequest::EnableSecurityHubRequest
EnableSecurityHubRequest()
Aws::SecurityHub::Model::EnableSecurityHubRequest::AddTags
EnableSecurityHubRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: EnableSecurityHubRequest.h:69
Aws::SecurityHub::Model::EnableSecurityHubRequest::SetEnableDefaultStandards
void SetEnableDefaultStandards(bool value)
Definition: EnableSecurityHubRequest.h:127
Aws::SecurityHub::Model::EnableSecurityHubRequest::AddTags
EnableSecurityHubRequest & AddTags(Aws::String &&key, const char *value)
Definition: EnableSecurityHubRequest.h:94
Aws::SecurityHub::Model::EnableSecurityHubRequest::AddTags
EnableSecurityHubRequest & AddTags(const char *key, Aws::String &&value)
Definition: EnableSecurityHubRequest.h:89
Aws::SecurityHub::Model::EnableSecurityHubRequest::EnableDefaultStandardsHasBeenSet
bool EnableDefaultStandardsHasBeenSet() const
Definition: EnableSecurityHubRequest.h:118
Aws::SecurityHub::Model::EnableSecurityHubRequest::AddTags
EnableSecurityHubRequest & AddTags(Aws::String &&key, Aws::String &&value)
Definition: EnableSecurityHubRequest.h:84
Aws::SecurityHub::Model::EnableSecurityHubRequest::WithTags
EnableSecurityHubRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: EnableSecurityHubRequest.h:64
Aws::SecurityHub::Model::EnableSecurityHubRequest::AddTags
EnableSecurityHubRequest & AddTags(const char *key, const char *value)
Definition: EnableSecurityHubRequest.h:99
Aws::SecurityHub::Model::EnableSecurityHubRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: EnableSecurityHubRequest.h:44
AWS_SECURITYHUB_API
#define AWS_SECURITYHUB_API
Definition: SecurityHub_EXPORTS.h:28
Aws::SecurityHub::Model::EnableSecurityHubRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: EnableSecurityHubRequest.h:49
Aws::SecurityHub::Model::EnableSecurityHubRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: EnableSecurityHubRequest.h:39
Aws::SecurityHub::SecurityHubRequest
Definition: SecurityHubRequest.h:17
Aws::SecurityHub::Model::EnableSecurityHubRequest::WithTags
EnableSecurityHubRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: EnableSecurityHubRequest.h:59
Aws::SecurityHub::Model::EnableSecurityHubRequest::AddTags
EnableSecurityHubRequest & AddTags(const Aws::String &key, Aws::String &&value)
Definition: EnableSecurityHubRequest.h:79
AWSString.h
Aws::SecurityHub::Model::EnableSecurityHubRequest::AddTags
EnableSecurityHubRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: EnableSecurityHubRequest.h:74
SecurityHubRequest.h
Aws::SecurityHub::Model::EnableSecurityHubRequest::SerializePayload
Aws::String SerializePayload() const override
Aws
Definition: AccessManagementClient.h:15
Aws::SecurityHub::Model::EnableSecurityHubRequest::WithEnableDefaultStandards
EnableSecurityHubRequest & WithEnableDefaultStandards(bool value)
Definition: EnableSecurityHubRequest.h:136
Aws::SecurityHub::Model::EnableSecurityHubRequest::GetEnableDefaultStandards
bool GetEnableDefaultStandards() const
Definition: EnableSecurityHubRequest.h:109
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SecurityHub::Model::EnableSecurityHubRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: EnableSecurityHubRequest.h:31
SecurityHub_EXPORTS.h
Aws::SecurityHub::Model::EnableSecurityHubRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: EnableSecurityHubRequest.h:54
AWSMap.h
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19