AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
IncidentRecordSource.h
1
6#pragma once
7#include <aws/ssm-incidents/SSMIncidents_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SSMIncidents
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_SSMINCIDENTS_API IncidentRecordSource() = default;
36 AWS_SSMINCIDENTS_API IncidentRecordSource(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SSMINCIDENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
46 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
47 template<typename CreatedByT = Aws::String>
48 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
49 template<typename CreatedByT = Aws::String>
50 IncidentRecordSource& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
52
54
59 inline const Aws::String& GetInvokedBy() const { return m_invokedBy; }
60 inline bool InvokedByHasBeenSet() const { return m_invokedByHasBeenSet; }
61 template<typename InvokedByT = Aws::String>
62 void SetInvokedBy(InvokedByT&& value) { m_invokedByHasBeenSet = true; m_invokedBy = std::forward<InvokedByT>(value); }
63 template<typename InvokedByT = Aws::String>
64 IncidentRecordSource& WithInvokedBy(InvokedByT&& value) { SetInvokedBy(std::forward<InvokedByT>(value)); return *this;}
66
68
71 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
72 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
73 template<typename ResourceArnT = Aws::String>
74 void SetResourceArn(ResourceArnT&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::forward<ResourceArnT>(value); }
75 template<typename ResourceArnT = Aws::String>
76 IncidentRecordSource& WithResourceArn(ResourceArnT&& value) { SetResourceArn(std::forward<ResourceArnT>(value)); return *this;}
78
80
85 inline const Aws::String& GetSource() const { return m_source; }
86 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
87 template<typename SourceT = Aws::String>
88 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
89 template<typename SourceT = Aws::String>
90 IncidentRecordSource& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
92 private:
93
94 Aws::String m_createdBy;
95 bool m_createdByHasBeenSet = false;
96
97 Aws::String m_invokedBy;
98 bool m_invokedByHasBeenSet = false;
99
100 Aws::String m_resourceArn;
101 bool m_resourceArnHasBeenSet = false;
102
103 Aws::String m_source;
104 bool m_sourceHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace SSMIncidents
109} // namespace Aws
IncidentRecordSource & WithResourceArn(ResourceArnT &&value)
IncidentRecordSource & WithInvokedBy(InvokedByT &&value)
IncidentRecordSource & WithSource(SourceT &&value)
AWS_SSMINCIDENTS_API IncidentRecordSource()=default
AWS_SSMINCIDENTS_API IncidentRecordSource(Aws::Utils::Json::JsonView jsonValue)
AWS_SSMINCIDENTS_API IncidentRecordSource & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SSMINCIDENTS_API Aws::Utils::Json::JsonValue Jsonize() const
IncidentRecordSource & WithCreatedBy(CreatedByT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue