AWS SDK for C++

AWS SDK for C++ Version 1.11.850

Loading...
Searching...
No Matches
ScopeConfiguration.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/ScopeState.h>
11#include <aws/inspector2/model/ScopeType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Inspector2 {
23namespace Model {
24
33 public:
34 AWS_INSPECTOR2_API ScopeConfiguration() = default;
35 AWS_INSPECTOR2_API ScopeConfiguration(Aws::Utils::Json::JsonView jsonValue);
37 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
45 inline ScopeType GetScopeType() const { return m_scopeType; }
46 inline bool ScopeTypeHasBeenSet() const { return m_scopeTypeHasBeenSet; }
47 inline void SetScopeType(ScopeType value) {
48 m_scopeTypeHasBeenSet = true;
49 m_scopeType = value;
50 }
52 SetScopeType(value);
53 return *this;
54 }
56
58
62 inline const Aws::Vector<Aws::String>& GetScopeValues() const { return m_scopeValues; }
63 inline bool ScopeValuesHasBeenSet() const { return m_scopeValuesHasBeenSet; }
64 template <typename ScopeValuesT = Aws::Vector<Aws::String>>
65 void SetScopeValues(ScopeValuesT&& value) {
66 m_scopeValuesHasBeenSet = true;
67 m_scopeValues = std::forward<ScopeValuesT>(value);
68 }
69 template <typename ScopeValuesT = Aws::Vector<Aws::String>>
70 ScopeConfiguration& WithScopeValues(ScopeValuesT&& value) {
71 SetScopeValues(std::forward<ScopeValuesT>(value));
72 return *this;
73 }
74 template <typename ScopeValuesT = Aws::String>
75 ScopeConfiguration& AddScopeValues(ScopeValuesT&& value) {
76 m_scopeValuesHasBeenSet = true;
77 m_scopeValues.emplace_back(std::forward<ScopeValuesT>(value));
78 return *this;
79 }
81
83
86 inline ScopeState GetState() const { return m_state; }
87 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
88 inline void SetState(ScopeState value) {
89 m_stateHasBeenSet = true;
90 m_state = value;
91 }
93 SetState(value);
94 return *this;
95 }
97
99
102 inline const Aws::String& GetStateReason() const { return m_stateReason; }
103 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
104 template <typename StateReasonT = Aws::String>
105 void SetStateReason(StateReasonT&& value) {
106 m_stateReasonHasBeenSet = true;
107 m_stateReason = std::forward<StateReasonT>(value);
108 }
109 template <typename StateReasonT = Aws::String>
110 ScopeConfiguration& WithStateReason(StateReasonT&& value) {
111 SetStateReason(std::forward<StateReasonT>(value));
112 return *this;
113 }
115 private:
116 ScopeType m_scopeType{ScopeType::NOT_SET};
117
118 Aws::Vector<Aws::String> m_scopeValues;
119
121
122 Aws::String m_stateReason;
123 bool m_scopeTypeHasBeenSet = false;
124 bool m_scopeValuesHasBeenSet = false;
125 bool m_stateHasBeenSet = false;
126 bool m_stateReasonHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace Inspector2
131} // namespace Aws
ScopeConfiguration & WithState(ScopeState value)
ScopeConfiguration & AddScopeValues(ScopeValuesT &&value)
ScopeConfiguration & WithScopeType(ScopeType value)
AWS_INSPECTOR2_API ScopeConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_INSPECTOR2_API ScopeConfiguration()=default
ScopeConfiguration & WithScopeValues(ScopeValuesT &&value)
ScopeConfiguration & WithStateReason(StateReasonT &&value)
const Aws::Vector< Aws::String > & GetScopeValues() const
AWS_INSPECTOR2_API ScopeConfiguration(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue