AWS SDK for C++

AWS SDK for C++ Version 1.11.883

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
32 public:
33 AWS_AGENTREGISTRYCONTROL_API Provenance() = default;
34 AWS_AGENTREGISTRYCONTROL_API Provenance(Aws::Utils::Json::JsonView jsonValue);
35 AWS_AGENTREGISTRYCONTROL_API Provenance& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_AGENTREGISTRYCONTROL_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
40 inline ProvenanceRelation GetRelation() const { return m_relation; }
41 inline bool RelationHasBeenSet() const { return m_relationHasBeenSet; }
42 inline void SetRelation(ProvenanceRelation value) {
43 m_relationHasBeenSet = true;
44 m_relation = value;
45 }
47 SetRelation(value);
48 return *this;
49 }
51
53
57 inline const Aws::String& GetSourceId() const { return m_sourceId; }
58 inline bool SourceIdHasBeenSet() const { return m_sourceIdHasBeenSet; }
59 template <typename SourceIdT = Aws::String>
60 void SetSourceId(SourceIdT&& value) {
61 m_sourceIdHasBeenSet = true;
62 m_sourceId = std::forward<SourceIdT>(value);
63 }
64 template <typename SourceIdT = Aws::String>
65 Provenance& WithSourceId(SourceIdT&& value) {
66 SetSourceId(std::forward<SourceIdT>(value));
67 return *this;
68 }
70
72
76 inline SourceType GetSourceType() const { return m_sourceType; }
77 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
78 inline void SetSourceType(SourceType value) {
79 m_sourceTypeHasBeenSet = true;
80 m_sourceType = value;
81 }
83 SetSourceType(value);
84 return *this;
85 }
87
89
94 inline const SourceDetails& GetSourceDetails() const { return m_sourceDetails; }
95 inline bool SourceDetailsHasBeenSet() const { return m_sourceDetailsHasBeenSet; }
96 template <typename SourceDetailsT = SourceDetails>
97 void SetSourceDetails(SourceDetailsT&& value) {
98 m_sourceDetailsHasBeenSet = true;
99 m_sourceDetails = std::forward<SourceDetailsT>(value);
100 }
101 template <typename SourceDetailsT = SourceDetails>
102 Provenance& WithSourceDetails(SourceDetailsT&& value) {
103 SetSourceDetails(std::forward<SourceDetailsT>(value));
104 return *this;
105 }
107 private:
109
110 Aws::String m_sourceId;
111
112 SourceType m_sourceType{SourceType::NOT_SET};
113
114 SourceDetails m_sourceDetails;
115 bool m_relationHasBeenSet = false;
116 bool m_sourceIdHasBeenSet = false;
117 bool m_sourceTypeHasBeenSet = false;
118 bool m_sourceDetailsHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace AgentRegistryControl
123} // namespace Aws
Provenance & WithSourceDetails(SourceDetailsT &&value)
Definition Provenance.h:102
Provenance & WithRelation(ProvenanceRelation value)
Definition Provenance.h:46
const Aws::String & GetSourceId() const
Definition Provenance.h:57
AWS_AGENTREGISTRYCONTROL_API Aws::Utils::Json::JsonValue Jsonize() const
Provenance & WithSourceId(SourceIdT &&value)
Definition Provenance.h:65
AWS_AGENTREGISTRYCONTROL_API Provenance()=default
void SetRelation(ProvenanceRelation value)
Definition Provenance.h:42
Provenance & WithSourceType(SourceType value)
Definition Provenance.h:82
AWS_AGENTREGISTRYCONTROL_API Provenance & operator=(Aws::Utils::Json::JsonView jsonValue)
const SourceDetails & GetSourceDetails() const
Definition Provenance.h:94
ProvenanceRelation GetRelation() const
Definition Provenance.h:40
AWS_AGENTREGISTRYCONTROL_API Provenance(Aws::Utils::Json::JsonView jsonValue)
void SetSourceDetails(SourceDetailsT &&value)
Definition Provenance.h:97
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue