AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
GcpScopeConfiguration.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/GcpScopeType.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 GcpScopeConfiguration() = default;
33 AWS_SECURITYHUB_API GcpScopeConfiguration(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline GcpScopeType GetScopeType() const { return m_scopeType; }
43 inline bool ScopeTypeHasBeenSet() const { return m_scopeTypeHasBeenSet; }
44 inline void SetScopeType(GcpScopeType value) {
45 m_scopeTypeHasBeenSet = true;
46 m_scopeType = value;
47 }
49 SetScopeType(value);
50 return *this;
51 }
53
55
60 inline const Aws::Vector<Aws::String>& GetScopeValues() const { return m_scopeValues; }
61 inline bool ScopeValuesHasBeenSet() const { return m_scopeValuesHasBeenSet; }
62 template <typename ScopeValuesT = Aws::Vector<Aws::String>>
63 void SetScopeValues(ScopeValuesT&& value) {
64 m_scopeValuesHasBeenSet = true;
65 m_scopeValues = std::forward<ScopeValuesT>(value);
66 }
67 template <typename ScopeValuesT = Aws::Vector<Aws::String>>
68 GcpScopeConfiguration& WithScopeValues(ScopeValuesT&& value) {
69 SetScopeValues(std::forward<ScopeValuesT>(value));
70 return *this;
71 }
72 template <typename ScopeValuesT = Aws::String>
73 GcpScopeConfiguration& AddScopeValues(ScopeValuesT&& value) {
74 m_scopeValuesHasBeenSet = true;
75 m_scopeValues.emplace_back(std::forward<ScopeValuesT>(value));
76 return *this;
77 }
79 private:
81
82 Aws::Vector<Aws::String> m_scopeValues;
83 bool m_scopeTypeHasBeenSet = false;
84 bool m_scopeValuesHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace SecurityHub
89} // namespace Aws
const Aws::Vector< Aws::String > & GetScopeValues() const
GcpScopeConfiguration & WithScopeValues(ScopeValuesT &&value)
AWS_SECURITYHUB_API GcpScopeConfiguration()=default
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYHUB_API GcpScopeConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API GcpScopeConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
GcpScopeConfiguration & WithScopeType(GcpScopeType value)
GcpScopeConfiguration & AddScopeValues(ScopeValuesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue