AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateControlMappingSource.h
1
6#pragma once
7#include <aws/auditmanager/AuditManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/auditmanager/model/SourceSetUpOption.h>
10#include <aws/auditmanager/model/SourceType.h>
11#include <aws/auditmanager/model/SourceKeyword.h>
12#include <aws/auditmanager/model/SourceFrequency.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace AuditManager
26{
27namespace Model
28{
29
38 {
39 public:
40 AWS_AUDITMANAGER_API CreateControlMappingSource() = default;
43 AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetSourceName() const { return m_sourceName; }
51 inline bool SourceNameHasBeenSet() const { return m_sourceNameHasBeenSet; }
52 template<typename SourceNameT = Aws::String>
53 void SetSourceName(SourceNameT&& value) { m_sourceNameHasBeenSet = true; m_sourceName = std::forward<SourceNameT>(value); }
54 template<typename SourceNameT = Aws::String>
55 CreateControlMappingSource& WithSourceName(SourceNameT&& value) { SetSourceName(std::forward<SourceNameT>(value)); return *this;}
57
59
63 inline const Aws::String& GetSourceDescription() const { return m_sourceDescription; }
64 inline bool SourceDescriptionHasBeenSet() const { return m_sourceDescriptionHasBeenSet; }
65 template<typename SourceDescriptionT = Aws::String>
66 void SetSourceDescription(SourceDescriptionT&& value) { m_sourceDescriptionHasBeenSet = true; m_sourceDescription = std::forward<SourceDescriptionT>(value); }
67 template<typename SourceDescriptionT = Aws::String>
68 CreateControlMappingSource& WithSourceDescription(SourceDescriptionT&& value) { SetSourceDescription(std::forward<SourceDescriptionT>(value)); return *this;}
70
72
78 inline SourceSetUpOption GetSourceSetUpOption() const { return m_sourceSetUpOption; }
79 inline bool SourceSetUpOptionHasBeenSet() const { return m_sourceSetUpOptionHasBeenSet; }
80 inline void SetSourceSetUpOption(SourceSetUpOption value) { m_sourceSetUpOptionHasBeenSet = true; m_sourceSetUpOption = value; }
83
85
94 inline SourceType GetSourceType() const { return m_sourceType; }
95 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
96 inline void SetSourceType(SourceType value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
97 inline CreateControlMappingSource& WithSourceType(SourceType value) { SetSourceType(value); return *this;}
99
101
102 inline const SourceKeyword& GetSourceKeyword() const { return m_sourceKeyword; }
103 inline bool SourceKeywordHasBeenSet() const { return m_sourceKeywordHasBeenSet; }
104 template<typename SourceKeywordT = SourceKeyword>
105 void SetSourceKeyword(SourceKeywordT&& value) { m_sourceKeywordHasBeenSet = true; m_sourceKeyword = std::forward<SourceKeywordT>(value); }
106 template<typename SourceKeywordT = SourceKeyword>
107 CreateControlMappingSource& WithSourceKeyword(SourceKeywordT&& value) { SetSourceKeyword(std::forward<SourceKeywordT>(value)); return *this;}
109
111
115 inline SourceFrequency GetSourceFrequency() const { return m_sourceFrequency; }
116 inline bool SourceFrequencyHasBeenSet() const { return m_sourceFrequencyHasBeenSet; }
117 inline void SetSourceFrequency(SourceFrequency value) { m_sourceFrequencyHasBeenSet = true; m_sourceFrequency = value; }
120
122
125 inline const Aws::String& GetTroubleshootingText() const { return m_troubleshootingText; }
126 inline bool TroubleshootingTextHasBeenSet() const { return m_troubleshootingTextHasBeenSet; }
127 template<typename TroubleshootingTextT = Aws::String>
128 void SetTroubleshootingText(TroubleshootingTextT&& value) { m_troubleshootingTextHasBeenSet = true; m_troubleshootingText = std::forward<TroubleshootingTextT>(value); }
129 template<typename TroubleshootingTextT = Aws::String>
130 CreateControlMappingSource& WithTroubleshootingText(TroubleshootingTextT&& value) { SetTroubleshootingText(std::forward<TroubleshootingTextT>(value)); return *this;}
132 private:
133
134 Aws::String m_sourceName;
135 bool m_sourceNameHasBeenSet = false;
136
137 Aws::String m_sourceDescription;
138 bool m_sourceDescriptionHasBeenSet = false;
139
141 bool m_sourceSetUpOptionHasBeenSet = false;
142
143 SourceType m_sourceType{SourceType::NOT_SET};
144 bool m_sourceTypeHasBeenSet = false;
145
146 SourceKeyword m_sourceKeyword;
147 bool m_sourceKeywordHasBeenSet = false;
148
149 SourceFrequency m_sourceFrequency{SourceFrequency::NOT_SET};
150 bool m_sourceFrequencyHasBeenSet = false;
151
152 Aws::String m_troubleshootingText;
153 bool m_troubleshootingTextHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace AuditManager
158} // namespace Aws
CreateControlMappingSource & WithSourceDescription(SourceDescriptionT &&value)
AWS_AUDITMANAGER_API CreateControlMappingSource(Aws::Utils::Json::JsonView jsonValue)
AWS_AUDITMANAGER_API CreateControlMappingSource()=default
CreateControlMappingSource & WithSourceName(SourceNameT &&value)
CreateControlMappingSource & WithSourceFrequency(SourceFrequency value)
CreateControlMappingSource & WithSourceKeyword(SourceKeywordT &&value)
AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
CreateControlMappingSource & WithTroubleshootingText(TroubleshootingTextT &&value)
CreateControlMappingSource & WithSourceSetUpOption(SourceSetUpOption value)
CreateControlMappingSource & WithSourceType(SourceType value)
AWS_AUDITMANAGER_API CreateControlMappingSource & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue