AWS SDK for C++

AWS SDK for C++ Version 1.11.850

Loading...
Searching...
No Matches
ScopeConfigurationInput.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/inspector2/Inspector2_EXPORTS.h>
10#include <aws/inspector2/model/ScopeType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Inspector2 {
22namespace Model {
23
32 public:
33 AWS_INSPECTOR2_API ScopeConfigurationInput() = default;
36 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
44 inline ScopeType GetScopeType() const { return m_scopeType; }
45 inline bool ScopeTypeHasBeenSet() const { return m_scopeTypeHasBeenSet; }
46 inline void SetScopeType(ScopeType value) {
47 m_scopeTypeHasBeenSet = true;
48 m_scopeType = value;
49 }
51 SetScopeType(value);
52 return *this;
53 }
55
57
61 inline const Aws::Vector<Aws::String>& GetScopeValues() const { return m_scopeValues; }
62 inline bool ScopeValuesHasBeenSet() const { return m_scopeValuesHasBeenSet; }
63 template <typename ScopeValuesT = Aws::Vector<Aws::String>>
64 void SetScopeValues(ScopeValuesT&& value) {
65 m_scopeValuesHasBeenSet = true;
66 m_scopeValues = std::forward<ScopeValuesT>(value);
67 }
68 template <typename ScopeValuesT = Aws::Vector<Aws::String>>
70 SetScopeValues(std::forward<ScopeValuesT>(value));
71 return *this;
72 }
73 template <typename ScopeValuesT = Aws::String>
74 ScopeConfigurationInput& AddScopeValues(ScopeValuesT&& value) {
75 m_scopeValuesHasBeenSet = true;
76 m_scopeValues.emplace_back(std::forward<ScopeValuesT>(value));
77 return *this;
78 }
80 private:
81 ScopeType m_scopeType{ScopeType::NOT_SET};
82
83 Aws::Vector<Aws::String> m_scopeValues;
84 bool m_scopeTypeHasBeenSet = false;
85 bool m_scopeValuesHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace Inspector2
90} // namespace Aws
AWS_INSPECTOR2_API ScopeConfigurationInput(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_INSPECTOR2_API ScopeConfigurationInput()=default
ScopeConfigurationInput & AddScopeValues(ScopeValuesT &&value)
const Aws::Vector< Aws::String > & GetScopeValues() const
ScopeConfigurationInput & WithScopeType(ScopeType value)
AWS_INSPECTOR2_API ScopeConfigurationInput & operator=(Aws::Utils::Json::JsonView jsonValue)
ScopeConfigurationInput & WithScopeValues(ScopeValuesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue