AWS SDK for C++

AWS SDK for C++ Version 1.11.785

Loading...
Searching...
No Matches
AddArtifactRequest.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/securityagent/SecurityAgentRequest.h>
10#include <aws/securityagent/SecurityAgent_EXPORTS.h>
11#include <aws/securityagent/model/ArtifactType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace SecurityAgent {
17namespace Model {
18
22 public:
23 AWS_SECURITYAGENT_API AddArtifactRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "AddArtifact"; }
30
31 AWS_SECURITYAGENT_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
38 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
39 template <typename AgentSpaceIdT = Aws::String>
40 void SetAgentSpaceId(AgentSpaceIdT&& value) {
41 m_agentSpaceIdHasBeenSet = true;
42 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
43 }
44 template <typename AgentSpaceIdT = Aws::String>
45 AddArtifactRequest& WithAgentSpaceId(AgentSpaceIdT&& value) {
46 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::Utils::ByteBuffer& GetArtifactContent() const { return m_artifactContent; }
56 inline bool ArtifactContentHasBeenSet() const { return m_artifactContentHasBeenSet; }
57 template <typename ArtifactContentT = Aws::Utils::ByteBuffer>
58 void SetArtifactContent(ArtifactContentT&& value) {
59 m_artifactContentHasBeenSet = true;
60 m_artifactContent = std::forward<ArtifactContentT>(value);
61 }
62 template <typename ArtifactContentT = Aws::Utils::ByteBuffer>
63 AddArtifactRequest& WithArtifactContent(ArtifactContentT&& value) {
64 SetArtifactContent(std::forward<ArtifactContentT>(value));
65 return *this;
66 }
68
70
73 inline ArtifactType GetArtifactType() const { return m_artifactType; }
74 inline bool ArtifactTypeHasBeenSet() const { return m_artifactTypeHasBeenSet; }
75 inline void SetArtifactType(ArtifactType value) {
76 m_artifactTypeHasBeenSet = true;
77 m_artifactType = value;
78 }
80 SetArtifactType(value);
81 return *this;
82 }
84
86
89 inline const Aws::String& GetFileName() const { return m_fileName; }
90 inline bool FileNameHasBeenSet() const { return m_fileNameHasBeenSet; }
91 template <typename FileNameT = Aws::String>
92 void SetFileName(FileNameT&& value) {
93 m_fileNameHasBeenSet = true;
94 m_fileName = std::forward<FileNameT>(value);
95 }
96 template <typename FileNameT = Aws::String>
97 AddArtifactRequest& WithFileName(FileNameT&& value) {
98 SetFileName(std::forward<FileNameT>(value));
99 return *this;
100 }
102 private:
103 Aws::String m_agentSpaceId;
104
105 Aws::Utils::ByteBuffer m_artifactContent{};
106
107 ArtifactType m_artifactType{ArtifactType::NOT_SET};
108
109 Aws::String m_fileName;
110 bool m_agentSpaceIdHasBeenSet = false;
111 bool m_artifactContentHasBeenSet = false;
112 bool m_artifactTypeHasBeenSet = false;
113 bool m_fileNameHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace SecurityAgent
118} // namespace Aws
AddArtifactRequest & WithAgentSpaceId(AgentSpaceIdT &&value)
AddArtifactRequest & WithArtifactType(ArtifactType value)
AWS_SECURITYAGENT_API Aws::String SerializePayload() const override
AddArtifactRequest & WithFileName(FileNameT &&value)
AddArtifactRequest & WithArtifactContent(ArtifactContentT &&value)
AWS_SECURITYAGENT_API AddArtifactRequest()=default
void SetArtifactContent(ArtifactContentT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Utils::ByteBuffer & GetArtifactContent() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String