AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
JobScopingBlock.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/macie2/Macie2_EXPORTS.h>
9#include <aws/macie2/model/JobScopeTerm.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Macie2 {
21namespace Model {
22
31 public:
32 AWS_MACIE2_API JobScopingBlock() = default;
35 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
43 inline const Aws::Vector<JobScopeTerm>& GetAnd() const { return m_and; }
44 inline bool AndHasBeenSet() const { return m_andHasBeenSet; }
45 template <typename AndT = Aws::Vector<JobScopeTerm>>
46 void SetAnd(AndT&& value) {
47 m_andHasBeenSet = true;
48 m_and = std::forward<AndT>(value);
49 }
50 template <typename AndT = Aws::Vector<JobScopeTerm>>
51 JobScopingBlock& WithAnd(AndT&& value) {
52 SetAnd(std::forward<AndT>(value));
53 return *this;
54 }
55 template <typename AndT = JobScopeTerm>
56 JobScopingBlock& AddAnd(AndT&& value) {
57 m_andHasBeenSet = true;
58 m_and.emplace_back(std::forward<AndT>(value));
59 return *this;
60 }
62 private:
64 bool m_andHasBeenSet = false;
65};
66
67} // namespace Model
68} // namespace Macie2
69} // namespace Aws
AWS_MACIE2_API JobScopingBlock & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MACIE2_API JobScopingBlock()=default
JobScopingBlock & WithAnd(AndT &&value)
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
JobScopingBlock & AddAnd(AndT &&value)
const Aws::Vector< JobScopeTerm > & GetAnd() const
AWS_MACIE2_API JobScopingBlock(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue