AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
TrustManifest.h
1
6#pragma once
7#include <aws/agent-discovery/AgentDiscovery_EXPORTS.h>
8#include <aws/agent-discovery/model/ProvenanceLink.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AgentDiscovery {
22namespace Model {
23
34 public:
35 AWS_AGENTDISCOVERY_API TrustManifest() = default;
36 AWS_AGENTDISCOVERY_API TrustManifest(Aws::Utils::Json::JsonView jsonValue);
37 AWS_AGENTDISCOVERY_API TrustManifest& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_AGENTDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetContributor() const { return m_contributor; }
45 inline bool ContributorHasBeenSet() const { return m_contributorHasBeenSet; }
46 template <typename ContributorT = Aws::String>
47 void SetContributor(ContributorT&& value) {
48 m_contributorHasBeenSet = true;
49 m_contributor = std::forward<ContributorT>(value);
50 }
51 template <typename ContributorT = Aws::String>
52 TrustManifest& WithContributor(ContributorT&& value) {
53 SetContributor(std::forward<ContributorT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::Vector<ProvenanceLink>& GetProvenance() const { return m_provenance; }
64 inline bool ProvenanceHasBeenSet() const { return m_provenanceHasBeenSet; }
65 template <typename ProvenanceT = Aws::Vector<ProvenanceLink>>
66 void SetProvenance(ProvenanceT&& value) {
67 m_provenanceHasBeenSet = true;
68 m_provenance = std::forward<ProvenanceT>(value);
69 }
70 template <typename ProvenanceT = Aws::Vector<ProvenanceLink>>
71 TrustManifest& WithProvenance(ProvenanceT&& value) {
72 SetProvenance(std::forward<ProvenanceT>(value));
73 return *this;
74 }
75 template <typename ProvenanceT = ProvenanceLink>
76 TrustManifest& AddProvenance(ProvenanceT&& value) {
77 m_provenanceHasBeenSet = true;
78 m_provenance.emplace_back(std::forward<ProvenanceT>(value));
79 return *this;
80 }
82 private:
83 Aws::String m_contributor;
84
85 Aws::Vector<ProvenanceLink> m_provenance;
86 bool m_contributorHasBeenSet = false;
87 bool m_provenanceHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace AgentDiscovery
92} // namespace Aws
AWS_AGENTDISCOVERY_API TrustManifest & operator=(Aws::Utils::Json::JsonView jsonValue)
TrustManifest & WithProvenance(ProvenanceT &&value)
void SetProvenance(ProvenanceT &&value)
TrustManifest & AddProvenance(ProvenanceT &&value)
TrustManifest & WithContributor(ContributorT &&value)
const Aws::String & GetContributor() const
AWS_AGENTDISCOVERY_API TrustManifest()=default
void SetContributor(ContributorT &&value)
AWS_AGENTDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< ProvenanceLink > & GetProvenance() const
AWS_AGENTDISCOVERY_API TrustManifest(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue