AWS SDK for C++

AWS SDK for C++ Version 1.11.846

Loading...
Searching...
No Matches
AssetFileContent.h
1
6#pragma once
7#include <aws/core/utils/Document.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/devops-agent/DevOpsAgent_EXPORTS.h>
10#include <aws/devops-agent/model/AssetFileBody.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DevOpsAgent {
22namespace Model {
23
30 public:
31 AWS_DEVOPSAGENT_API AssetFileContent() = default;
32 AWS_DEVOPSAGENT_API AssetFileContent(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DEVOPSAGENT_API AssetFileContent& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetPath() const { return m_path; }
41 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
42 template <typename PathT = Aws::String>
43 void SetPath(PathT&& value) {
44 m_pathHasBeenSet = true;
45 m_path = std::forward<PathT>(value);
46 }
47 template <typename PathT = Aws::String>
48 AssetFileContent& WithPath(PathT&& value) {
49 SetPath(std::forward<PathT>(value));
50 return *this;
51 }
53
55
58 inline const AssetFileBody& GetBody() const { return m_body; }
59 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
60 template <typename BodyT = AssetFileBody>
61 void SetBody(BodyT&& value) {
62 m_bodyHasBeenSet = true;
63 m_body = std::forward<BodyT>(value);
64 }
65 template <typename BodyT = AssetFileBody>
66 AssetFileContent& WithBody(BodyT&& value) {
67 SetBody(std::forward<BodyT>(value));
68 return *this;
69 }
71
73
76 inline Aws::Utils::DocumentView GetMetadata() const { return m_metadata; }
77 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
78 template <typename MetadataT = Aws::Utils::Document>
79 void SetMetadata(MetadataT&& value) {
80 m_metadataHasBeenSet = true;
81 m_metadata = std::forward<MetadataT>(value);
82 }
83 template <typename MetadataT = Aws::Utils::Document>
84 AssetFileContent& WithMetadata(MetadataT&& value) {
85 SetMetadata(std::forward<MetadataT>(value));
86 return *this;
87 }
89 private:
90 Aws::String m_path;
91
92 AssetFileBody m_body;
93
94 Aws::Utils::Document m_metadata;
95 bool m_pathHasBeenSet = false;
96 bool m_bodyHasBeenSet = false;
97 bool m_metadataHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace DevOpsAgent
102} // namespace Aws
AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DEVOPSAGENT_API AssetFileContent()=default
AssetFileContent & WithMetadata(MetadataT &&value)
Aws::Utils::DocumentView GetMetadata() const
AssetFileContent & WithPath(PathT &&value)
AssetFileContent & WithBody(BodyT &&value)
AWS_DEVOPSAGENT_API AssetFileContent & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DEVOPSAGENT_API AssetFileContent(Aws::Utils::Json::JsonView jsonValue)
const AssetFileBody & GetBody() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue