AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
RetrievalConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/macie2/Macie2_EXPORTS.h>
9#include <aws/macie2/model/RetrievalMode.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 RetrievalConfiguration() = default;
35 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
48 inline const Aws::String& GetExternalId() const { return m_externalId; }
49 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
50 template <typename ExternalIdT = Aws::String>
51 void SetExternalId(ExternalIdT&& value) {
52 m_externalIdHasBeenSet = true;
53 m_externalId = std::forward<ExternalIdT>(value);
54 }
55 template <typename ExternalIdT = Aws::String>
56 RetrievalConfiguration& WithExternalId(ExternalIdT&& value) {
57 SetExternalId(std::forward<ExternalIdT>(value));
58 return *this;
59 }
61
63
70 inline RetrievalMode GetRetrievalMode() const { return m_retrievalMode; }
71 inline bool RetrievalModeHasBeenSet() const { return m_retrievalModeHasBeenSet; }
72 inline void SetRetrievalMode(RetrievalMode value) {
73 m_retrievalModeHasBeenSet = true;
74 m_retrievalMode = value;
75 }
77 SetRetrievalMode(value);
78 return *this;
79 }
81
83
89 inline const Aws::String& GetRoleName() const { return m_roleName; }
90 inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
91 template <typename RoleNameT = Aws::String>
92 void SetRoleName(RoleNameT&& value) {
93 m_roleNameHasBeenSet = true;
94 m_roleName = std::forward<RoleNameT>(value);
95 }
96 template <typename RoleNameT = Aws::String>
98 SetRoleName(std::forward<RoleNameT>(value));
99 return *this;
100 }
102 private:
103 Aws::String m_externalId;
104
105 RetrievalMode m_retrievalMode{RetrievalMode::NOT_SET};
106
107 Aws::String m_roleName;
108 bool m_externalIdHasBeenSet = false;
109 bool m_retrievalModeHasBeenSet = false;
110 bool m_roleNameHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace Macie2
115} // namespace Aws
RetrievalConfiguration & WithRetrievalMode(RetrievalMode value)
RetrievalConfiguration & WithExternalId(ExternalIdT &&value)
AWS_MACIE2_API RetrievalConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MACIE2_API RetrievalConfiguration()=default
RetrievalConfiguration & WithRoleName(RoleNameT &&value)
AWS_MACIE2_API RetrievalConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue