AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
IncidentResponder.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/security-ir/SecurityIR_EXPORTS.h>
10#include <aws/security-ir/model/CommunicationType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityIR {
22namespace Model {
23
30 public:
31 AWS_SECURITYIR_API IncidentResponder() = default;
32 AWS_SECURITYIR_API IncidentResponder(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SECURITYIR_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
48 IncidentResponder& WithName(NameT&& value) {
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetJobTitle() const { return m_jobTitle; }
59 inline bool JobTitleHasBeenSet() const { return m_jobTitleHasBeenSet; }
60 template <typename JobTitleT = Aws::String>
61 void SetJobTitle(JobTitleT&& value) {
62 m_jobTitleHasBeenSet = true;
63 m_jobTitle = std::forward<JobTitleT>(value);
64 }
65 template <typename JobTitleT = Aws::String>
66 IncidentResponder& WithJobTitle(JobTitleT&& value) {
67 SetJobTitle(std::forward<JobTitleT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetEmail() const { return m_email; }
77 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
78 template <typename EmailT = Aws::String>
79 void SetEmail(EmailT&& value) {
80 m_emailHasBeenSet = true;
81 m_email = std::forward<EmailT>(value);
82 }
83 template <typename EmailT = Aws::String>
84 IncidentResponder& WithEmail(EmailT&& value) {
85 SetEmail(std::forward<EmailT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::Vector<CommunicationType>& GetCommunicationPreferences() const { return m_communicationPreferences; }
95 inline bool CommunicationPreferencesHasBeenSet() const { return m_communicationPreferencesHasBeenSet; }
96 template <typename CommunicationPreferencesT = Aws::Vector<CommunicationType>>
97 void SetCommunicationPreferences(CommunicationPreferencesT&& value) {
98 m_communicationPreferencesHasBeenSet = true;
99 m_communicationPreferences = std::forward<CommunicationPreferencesT>(value);
100 }
101 template <typename CommunicationPreferencesT = Aws::Vector<CommunicationType>>
102 IncidentResponder& WithCommunicationPreferences(CommunicationPreferencesT&& value) {
103 SetCommunicationPreferences(std::forward<CommunicationPreferencesT>(value));
104 return *this;
105 }
107 m_communicationPreferencesHasBeenSet = true;
108 m_communicationPreferences.push_back(value);
109 return *this;
110 }
112 private:
113 Aws::String m_name;
114
115 Aws::String m_jobTitle;
116
117 Aws::String m_email;
118
119 Aws::Vector<CommunicationType> m_communicationPreferences;
120 bool m_nameHasBeenSet = false;
121 bool m_jobTitleHasBeenSet = false;
122 bool m_emailHasBeenSet = false;
123 bool m_communicationPreferencesHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace SecurityIR
128} // namespace Aws
IncidentResponder & WithJobTitle(JobTitleT &&value)
AWS_SECURITYIR_API Aws::Utils::Json::JsonValue Jsonize() const
IncidentResponder & WithCommunicationPreferences(CommunicationPreferencesT &&value)
IncidentResponder & AddCommunicationPreferences(CommunicationType value)
IncidentResponder & WithName(NameT &&value)
AWS_SECURITYIR_API IncidentResponder & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYIR_API IncidentResponder()=default
AWS_SECURITYIR_API IncidentResponder(Aws::Utils::Json::JsonView jsonValue)
void SetCommunicationPreferences(CommunicationPreferencesT &&value)
IncidentResponder & WithEmail(EmailT &&value)
const Aws::Vector< CommunicationType > & GetCommunicationPreferences() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue