AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
ArtifactMetadataItem.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/securityagent/SecurityAgent_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SecurityAgent {
21namespace Model {
22
29 public:
30 AWS_SECURITYAGENT_API ArtifactMetadataItem() = default;
31 AWS_SECURITYAGENT_API ArtifactMetadataItem(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
40 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
41 template <typename AgentSpaceIdT = Aws::String>
42 void SetAgentSpaceId(AgentSpaceIdT&& value) {
43 m_agentSpaceIdHasBeenSet = true;
44 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
45 }
46 template <typename AgentSpaceIdT = Aws::String>
47 ArtifactMetadataItem& WithAgentSpaceId(AgentSpaceIdT&& value) {
48 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetArtifactId() const { return m_artifactId; }
58 inline bool ArtifactIdHasBeenSet() const { return m_artifactIdHasBeenSet; }
59 template <typename ArtifactIdT = Aws::String>
60 void SetArtifactId(ArtifactIdT&& value) {
61 m_artifactIdHasBeenSet = true;
62 m_artifactId = std::forward<ArtifactIdT>(value);
63 }
64 template <typename ArtifactIdT = Aws::String>
65 ArtifactMetadataItem& WithArtifactId(ArtifactIdT&& value) {
66 SetArtifactId(std::forward<ArtifactIdT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetFileName() const { return m_fileName; }
76 inline bool FileNameHasBeenSet() const { return m_fileNameHasBeenSet; }
77 template <typename FileNameT = Aws::String>
78 void SetFileName(FileNameT&& value) {
79 m_fileNameHasBeenSet = true;
80 m_fileName = std::forward<FileNameT>(value);
81 }
82 template <typename FileNameT = Aws::String>
83 ArtifactMetadataItem& WithFileName(FileNameT&& value) {
84 SetFileName(std::forward<FileNameT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
94 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
95 template <typename UpdatedAtT = Aws::Utils::DateTime>
96 void SetUpdatedAt(UpdatedAtT&& value) {
97 m_updatedAtHasBeenSet = true;
98 m_updatedAt = std::forward<UpdatedAtT>(value);
99 }
100 template <typename UpdatedAtT = Aws::Utils::DateTime>
101 ArtifactMetadataItem& WithUpdatedAt(UpdatedAtT&& value) {
102 SetUpdatedAt(std::forward<UpdatedAtT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_agentSpaceId;
108
109 Aws::String m_artifactId;
110
111 Aws::String m_fileName;
112
113 Aws::Utils::DateTime m_updatedAt{};
114 bool m_agentSpaceIdHasBeenSet = false;
115 bool m_artifactIdHasBeenSet = false;
116 bool m_fileNameHasBeenSet = false;
117 bool m_updatedAtHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace SecurityAgent
122} // namespace Aws
ArtifactMetadataItem & WithFileName(FileNameT &&value)
AWS_SECURITYAGENT_API ArtifactMetadataItem(Aws::Utils::Json::JsonView jsonValue)
ArtifactMetadataItem & WithUpdatedAt(UpdatedAtT &&value)
AWS_SECURITYAGENT_API ArtifactMetadataItem & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYAGENT_API ArtifactMetadataItem()=default
AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
ArtifactMetadataItem & WithArtifactId(ArtifactIdT &&value)
ArtifactMetadataItem & WithAgentSpaceId(AgentSpaceIdT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue