AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
GcpUpdateConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityhub/SecurityHub_EXPORTS.h>
10#include <aws/securityhub/model/GcpScopeConfiguration.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityHub {
22namespace Model {
23
31 public:
32 AWS_SECURITYHUB_API GcpUpdateConfiguration() = default;
33 AWS_SECURITYHUB_API GcpUpdateConfiguration(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const GcpScopeConfiguration& GetScopeConfiguration() const { return m_scopeConfiguration; }
42 inline bool ScopeConfigurationHasBeenSet() const { return m_scopeConfigurationHasBeenSet; }
43 template <typename ScopeConfigurationT = GcpScopeConfiguration>
44 void SetScopeConfiguration(ScopeConfigurationT&& value) {
45 m_scopeConfigurationHasBeenSet = true;
46 m_scopeConfiguration = std::forward<ScopeConfigurationT>(value);
47 }
48 template <typename ScopeConfigurationT = GcpScopeConfiguration>
49 GcpUpdateConfiguration& WithScopeConfiguration(ScopeConfigurationT&& value) {
50 SetScopeConfiguration(std::forward<ScopeConfigurationT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<Aws::String>& GetGCPRegions() const { return m_gCPRegions; }
60 inline bool GCPRegionsHasBeenSet() const { return m_gCPRegionsHasBeenSet; }
61 template <typename GCPRegionsT = Aws::Vector<Aws::String>>
62 void SetGCPRegions(GCPRegionsT&& value) {
63 m_gCPRegionsHasBeenSet = true;
64 m_gCPRegions = std::forward<GCPRegionsT>(value);
65 }
66 template <typename GCPRegionsT = Aws::Vector<Aws::String>>
67 GcpUpdateConfiguration& WithGCPRegions(GCPRegionsT&& value) {
68 SetGCPRegions(std::forward<GCPRegionsT>(value));
69 return *this;
70 }
71 template <typename GCPRegionsT = Aws::String>
72 GcpUpdateConfiguration& AddGCPRegions(GCPRegionsT&& value) {
73 m_gCPRegionsHasBeenSet = true;
74 m_gCPRegions.emplace_back(std::forward<GCPRegionsT>(value));
75 return *this;
76 }
78 private:
79 GcpScopeConfiguration m_scopeConfiguration;
80
81 Aws::Vector<Aws::String> m_gCPRegions;
82 bool m_scopeConfigurationHasBeenSet = false;
83 bool m_gCPRegionsHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace SecurityHub
88} // namespace Aws
GcpUpdateConfiguration & WithGCPRegions(GCPRegionsT &&value)
GcpUpdateConfiguration & WithScopeConfiguration(ScopeConfigurationT &&value)
AWS_SECURITYHUB_API GcpUpdateConfiguration(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetGCPRegions() const
void SetScopeConfiguration(ScopeConfigurationT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYHUB_API GcpUpdateConfiguration()=default
AWS_SECURITYHUB_API GcpUpdateConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
GcpUpdateConfiguration & AddGCPRegions(GCPRegionsT &&value)
const GcpScopeConfiguration & GetScopeConfiguration() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue