AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
BlobMetadata.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CodeCommit {
20namespace Model {
21
29 public:
30 AWS_CODECOMMIT_API BlobMetadata() = default;
31 AWS_CODECOMMIT_API BlobMetadata(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CODECOMMIT_API BlobMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetBlobId() const { return m_blobId; }
40 inline bool BlobIdHasBeenSet() const { return m_blobIdHasBeenSet; }
41 template <typename BlobIdT = Aws::String>
42 void SetBlobId(BlobIdT&& value) {
43 m_blobIdHasBeenSet = true;
44 m_blobId = std::forward<BlobIdT>(value);
45 }
46 template <typename BlobIdT = Aws::String>
47 BlobMetadata& WithBlobId(BlobIdT&& value) {
48 SetBlobId(std::forward<BlobIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetPath() const { return m_path; }
58 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
59 template <typename PathT = Aws::String>
60 void SetPath(PathT&& value) {
61 m_pathHasBeenSet = true;
62 m_path = std::forward<PathT>(value);
63 }
64 template <typename PathT = Aws::String>
65 BlobMetadata& WithPath(PathT&& value) {
66 SetPath(std::forward<PathT>(value));
67 return *this;
68 }
70
72
79 inline const Aws::String& GetMode() const { return m_mode; }
80 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
81 template <typename ModeT = Aws::String>
82 void SetMode(ModeT&& value) {
83 m_modeHasBeenSet = true;
84 m_mode = std::forward<ModeT>(value);
85 }
86 template <typename ModeT = Aws::String>
87 BlobMetadata& WithMode(ModeT&& value) {
88 SetMode(std::forward<ModeT>(value));
89 return *this;
90 }
92 private:
93 Aws::String m_blobId;
94
95 Aws::String m_path;
96
97 Aws::String m_mode;
98 bool m_blobIdHasBeenSet = false;
99 bool m_pathHasBeenSet = false;
100 bool m_modeHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace CodeCommit
105} // namespace Aws
const Aws::String & GetPath() const
BlobMetadata & WithMode(ModeT &&value)
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
BlobMetadata & WithPath(PathT &&value)
AWS_CODECOMMIT_API BlobMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetBlobId() const
const Aws::String & GetMode() const
AWS_CODECOMMIT_API BlobMetadata()=default
BlobMetadata & WithBlobId(BlobIdT &&value)
AWS_CODECOMMIT_API BlobMetadata(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue