AWS SDK for C++

AWS SDK for C++ Version 1.11.906

Loading...
Searching...
No Matches
Provenance.h
1
6#pragma once
7#include <aws/agent-registry-control/AgentRegistryControl_EXPORTS.h>
8#include <aws/agent-registry-control/model/ProvenanceRelation.h>
9#include <aws/agent-registry-control/model/SourceDetails.h>
10#include <aws/agent-registry-control/model/SourceType.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AgentRegistryControl {
23namespace Model {
24
34 public:
35 AWS_AGENTREGISTRYCONTROL_API Provenance() = default;
36 AWS_AGENTREGISTRYCONTROL_API Provenance(Aws::Utils::Json::JsonView jsonValue);
37 AWS_AGENTREGISTRYCONTROL_API Provenance& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_AGENTREGISTRYCONTROL_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
46 inline ProvenanceRelation GetRelation() const { return m_relation; }
47 inline bool RelationHasBeenSet() const { return m_relationHasBeenSet; }
48 inline void SetRelation(ProvenanceRelation value) {
49 m_relationHasBeenSet = true;
50 m_relation = value;
51 }
53 SetRelation(value);
54 return *this;
55 }
57
59
63 inline const Aws::String& GetSourceId() const { return m_sourceId; }
64 inline bool SourceIdHasBeenSet() const { return m_sourceIdHasBeenSet; }
65 template <typename SourceIdT = Aws::String>
66 void SetSourceId(SourceIdT&& value) {
67 m_sourceIdHasBeenSet = true;
68 m_sourceId = std::forward<SourceIdT>(value);
69 }
70 template <typename SourceIdT = Aws::String>
71 Provenance& WithSourceId(SourceIdT&& value) {
72 SetSourceId(std::forward<SourceIdT>(value));
73 return *this;
74 }
76
78
82 inline SourceType GetSourceType() const { return m_sourceType; }
83 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
84 inline void SetSourceType(SourceType value) {
85 m_sourceTypeHasBeenSet = true;
86 m_sourceType = value;
87 }
89 SetSourceType(value);
90 return *this;
91 }
93
95
100 inline const SourceDetails& GetSourceDetails() const { return m_sourceDetails; }
101 inline bool SourceDetailsHasBeenSet() const { return m_sourceDetailsHasBeenSet; }
102 template <typename SourceDetailsT = SourceDetails>
103 void SetSourceDetails(SourceDetailsT&& value) {
104 m_sourceDetailsHasBeenSet = true;
105 m_sourceDetails = std::forward<SourceDetailsT>(value);
106 }
107 template <typename SourceDetailsT = SourceDetails>
108 Provenance& WithSourceDetails(SourceDetailsT&& value) {
109 SetSourceDetails(std::forward<SourceDetailsT>(value));
110 return *this;
111 }
113 private:
115
116 Aws::String m_sourceId;
117
118 SourceType m_sourceType{SourceType::NOT_SET};
119
120 SourceDetails m_sourceDetails;
121 bool m_relationHasBeenSet = false;
122 bool m_sourceIdHasBeenSet = false;
123 bool m_sourceTypeHasBeenSet = false;
124 bool m_sourceDetailsHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace AgentRegistryControl
129} // namespace Aws
Provenance & WithSourceDetails(SourceDetailsT &&value)
Definition Provenance.h:108
Provenance & WithRelation(ProvenanceRelation value)
Definition Provenance.h:52
const Aws::String & GetSourceId() const
Definition Provenance.h:63
AWS_AGENTREGISTRYCONTROL_API Aws::Utils::Json::JsonValue Jsonize() const
Provenance & WithSourceId(SourceIdT &&value)
Definition Provenance.h:71
AWS_AGENTREGISTRYCONTROL_API Provenance()=default
void SetRelation(ProvenanceRelation value)
Definition Provenance.h:48
Provenance & WithSourceType(SourceType value)
Definition Provenance.h:88
AWS_AGENTREGISTRYCONTROL_API Provenance & operator=(Aws::Utils::Json::JsonView jsonValue)
const SourceDetails & GetSourceDetails() const
Definition Provenance.h:100
ProvenanceRelation GetRelation() const
Definition Provenance.h:46
AWS_AGENTREGISTRYCONTROL_API Provenance(Aws::Utils::Json::JsonView jsonValue)
void SetSourceDetails(SourceDetailsT &&value)
Definition Provenance.h:103
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue