AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CodeCommit
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_CODECOMMIT_API BlobMetadata() = default;
36 AWS_CODECOMMIT_API BlobMetadata(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CODECOMMIT_API BlobMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetBlobId() const { return m_blobId; }
46 inline bool BlobIdHasBeenSet() const { return m_blobIdHasBeenSet; }
47 template<typename BlobIdT = Aws::String>
48 void SetBlobId(BlobIdT&& value) { m_blobIdHasBeenSet = true; m_blobId = std::forward<BlobIdT>(value); }
49 template<typename BlobIdT = Aws::String>
50 BlobMetadata& WithBlobId(BlobIdT&& value) { SetBlobId(std::forward<BlobIdT>(value)); return *this;}
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) { m_pathHasBeenSet = true; m_path = std::forward<PathT>(value); }
61 template<typename PathT = Aws::String>
62 BlobMetadata& WithPath(PathT&& value) { SetPath(std::forward<PathT>(value)); return *this;}
64
66
73 inline const Aws::String& GetMode() const { return m_mode; }
74 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
75 template<typename ModeT = Aws::String>
76 void SetMode(ModeT&& value) { m_modeHasBeenSet = true; m_mode = std::forward<ModeT>(value); }
77 template<typename ModeT = Aws::String>
78 BlobMetadata& WithMode(ModeT&& value) { SetMode(std::forward<ModeT>(value)); return *this;}
80 private:
81
82 Aws::String m_blobId;
83 bool m_blobIdHasBeenSet = false;
84
85 Aws::String m_path;
86 bool m_pathHasBeenSet = false;
87
88 Aws::String m_mode;
89 bool m_modeHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace CodeCommit
94} // 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