AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
GetArtifactResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/securityagent/SecurityAgent_EXPORTS.h>
11#include <aws/securityagent/model/Artifact.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace SecurityAgent {
25namespace Model {
27 public:
28 AWS_SECURITYAGENT_API GetArtifactResult() = default;
31
33
36 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
37 template <typename AgentSpaceIdT = Aws::String>
38 void SetAgentSpaceId(AgentSpaceIdT&& value) {
39 m_agentSpaceIdHasBeenSet = true;
40 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
41 }
42 template <typename AgentSpaceIdT = Aws::String>
43 GetArtifactResult& WithAgentSpaceId(AgentSpaceIdT&& value) {
44 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetArtifactId() const { return m_artifactId; }
54 template <typename ArtifactIdT = Aws::String>
55 void SetArtifactId(ArtifactIdT&& value) {
56 m_artifactIdHasBeenSet = true;
57 m_artifactId = std::forward<ArtifactIdT>(value);
58 }
59 template <typename ArtifactIdT = Aws::String>
60 GetArtifactResult& WithArtifactId(ArtifactIdT&& value) {
61 SetArtifactId(std::forward<ArtifactIdT>(value));
62 return *this;
63 }
65
67
70 inline const Artifact& GetArtifact() const { return m_artifact; }
71 template <typename ArtifactT = Artifact>
72 void SetArtifact(ArtifactT&& value) {
73 m_artifactHasBeenSet = true;
74 m_artifact = std::forward<ArtifactT>(value);
75 }
76 template <typename ArtifactT = Artifact>
77 GetArtifactResult& WithArtifact(ArtifactT&& value) {
78 SetArtifact(std::forward<ArtifactT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::String& GetFileName() const { return m_fileName; }
88 template <typename FileNameT = Aws::String>
89 void SetFileName(FileNameT&& value) {
90 m_fileNameHasBeenSet = true;
91 m_fileName = std::forward<FileNameT>(value);
92 }
93 template <typename FileNameT = Aws::String>
94 GetArtifactResult& WithFileName(FileNameT&& value) {
95 SetFileName(std::forward<FileNameT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
105 template <typename UpdatedAtT = Aws::Utils::DateTime>
106 void SetUpdatedAt(UpdatedAtT&& value) {
107 m_updatedAtHasBeenSet = true;
108 m_updatedAt = std::forward<UpdatedAtT>(value);
109 }
110 template <typename UpdatedAtT = Aws::Utils::DateTime>
111 GetArtifactResult& WithUpdatedAt(UpdatedAtT&& value) {
112 SetUpdatedAt(std::forward<UpdatedAtT>(value));
113 return *this;
114 }
116
118
119 inline const Aws::String& GetRequestId() const { return m_requestId; }
120 template <typename RequestIdT = Aws::String>
121 void SetRequestId(RequestIdT&& value) {
122 m_requestIdHasBeenSet = true;
123 m_requestId = std::forward<RequestIdT>(value);
124 }
125 template <typename RequestIdT = Aws::String>
126 GetArtifactResult& WithRequestId(RequestIdT&& value) {
127 SetRequestId(std::forward<RequestIdT>(value));
128 return *this;
129 }
131 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
132
133 private:
134 Aws::String m_agentSpaceId;
135
136 Aws::String m_artifactId;
137
138 Artifact m_artifact;
139
140 Aws::String m_fileName;
141
142 Aws::Utils::DateTime m_updatedAt{};
143
144 Aws::String m_requestId;
145 Aws::Http::HttpResponseCode m_HttpResponseCode;
146 bool m_agentSpaceIdHasBeenSet = false;
147 bool m_artifactIdHasBeenSet = false;
148 bool m_artifactHasBeenSet = false;
149 bool m_fileNameHasBeenSet = false;
150 bool m_updatedAtHasBeenSet = false;
151 bool m_requestIdHasBeenSet = false;
152};
153
154} // namespace Model
155} // namespace SecurityAgent
156} // namespace Aws
AWS_SECURITYAGENT_API GetArtifactResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_SECURITYAGENT_API GetArtifactResult()=default
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetArtifactResult & WithArtifactId(ArtifactIdT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
GetArtifactResult & WithAgentSpaceId(AgentSpaceIdT &&value)
GetArtifactResult & WithArtifact(ArtifactT &&value)
AWS_SECURITYAGENT_API GetArtifactResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetArtifactResult & WithFileName(FileNameT &&value)
GetArtifactResult & WithRequestId(RequestIdT &&value)
GetArtifactResult & WithUpdatedAt(UpdatedAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue