AWS SDK for C++

AWS SDK for C++ Version 1.11.844

Loading...
Searching...
No Matches
InquiryFileContent.h
1
6#pragma once
7#include <aws/artifact/Artifact_EXPORTS.h>
8#include <aws/core/utils/Array.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 Artifact {
22namespace Model {
23
31 public:
32 AWS_ARTIFACT_API InquiryFileContent() = default;
35 AWS_ARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::Vector<Aws::String>& GetFileSections() const { return m_fileSections; }
42 inline bool FileSectionsHasBeenSet() const { return m_fileSectionsHasBeenSet; }
43 template <typename FileSectionsT = Aws::Vector<Aws::String>>
44 void SetFileSections(FileSectionsT&& value) {
45 m_fileSectionsHasBeenSet = true;
46 m_fileSections = std::forward<FileSectionsT>(value);
47 }
48 template <typename FileSectionsT = Aws::Vector<Aws::String>>
49 InquiryFileContent& WithFileSections(FileSectionsT&& value) {
50 SetFileSections(std::forward<FileSectionsT>(value));
51 return *this;
52 }
53 template <typename FileSectionsT = Aws::String>
54 InquiryFileContent& AddFileSections(FileSectionsT&& value) {
55 m_fileSectionsHasBeenSet = true;
56 m_fileSections.emplace_back(std::forward<FileSectionsT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::Utils::ByteBuffer& GetContent() const { return m_content; }
66 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
67 template <typename ContentT = Aws::Utils::ByteBuffer>
68 void SetContent(ContentT&& value) {
69 m_contentHasBeenSet = true;
70 m_content = std::forward<ContentT>(value);
71 }
72 template <typename ContentT = Aws::Utils::ByteBuffer>
73 InquiryFileContent& WithContent(ContentT&& value) {
74 SetContent(std::forward<ContentT>(value));
75 return *this;
76 }
78 private:
79 Aws::Vector<Aws::String> m_fileSections;
80
81 Aws::Utils::ByteBuffer m_content{};
82 bool m_fileSectionsHasBeenSet = false;
83 bool m_contentHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace Artifact
88} // namespace Aws
InquiryFileContent & AddFileSections(FileSectionsT &&value)
AWS_ARTIFACT_API InquiryFileContent & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ARTIFACT_API InquiryFileContent()=default
InquiryFileContent & WithFileSections(FileSectionsT &&value)
const Aws::Utils::ByteBuffer & GetContent() const
const Aws::Vector< Aws::String > & GetFileSections() const
InquiryFileContent & WithContent(ContentT &&value)
void SetFileSections(FileSectionsT &&value)
AWS_ARTIFACT_API InquiryFileContent(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue