AWS SDK for C++

AWS SDK for C++ Version 1.11.845

Loading...
Searching...
No Matches
ImportSource.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/securityagent/SecurityAgent_EXPORTS.h>
9#include <aws/securityagent/model/SecurityRequirementArtifact.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
30 public:
31 AWS_SECURITYAGENT_API ImportSource() = default;
32 AWS_SECURITYAGENT_API ImportSource(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SECURITYAGENT_API ImportSource& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<SecurityRequirementArtifact>& GetDocuments() const { return m_documents; }
41 inline bool DocumentsHasBeenSet() const { return m_documentsHasBeenSet; }
42 template <typename DocumentsT = Aws::Vector<SecurityRequirementArtifact>>
43 void SetDocuments(DocumentsT&& value) {
44 m_documentsHasBeenSet = true;
45 m_documents = std::forward<DocumentsT>(value);
46 }
47 template <typename DocumentsT = Aws::Vector<SecurityRequirementArtifact>>
48 ImportSource& WithDocuments(DocumentsT&& value) {
49 SetDocuments(std::forward<DocumentsT>(value));
50 return *this;
51 }
52 template <typename DocumentsT = SecurityRequirementArtifact>
53 ImportSource& AddDocuments(DocumentsT&& value) {
54 m_documentsHasBeenSet = true;
55 m_documents.emplace_back(std::forward<DocumentsT>(value));
56 return *this;
57 }
59 private:
61 bool m_documentsHasBeenSet = false;
62};
63
64} // namespace Model
65} // namespace SecurityAgent
66} // namespace Aws
ImportSource & AddDocuments(DocumentsT &&value)
const Aws::Vector< SecurityRequirementArtifact > & GetDocuments() const
AWS_SECURITYAGENT_API ImportSource()=default
ImportSource & WithDocuments(DocumentsT &&value)
AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYAGENT_API ImportSource & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYAGENT_API ImportSource(Aws::Utils::Json::JsonView jsonValue)
void SetDocuments(DocumentsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue