AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FileVersion.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/codecommit/model/Commit.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CodeCommit
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_CODECOMMIT_API FileVersion();
37 AWS_CODECOMMIT_API FileVersion(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODECOMMIT_API FileVersion& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
44 inline const Commit& GetCommit() const{ return m_commit; }
45 inline bool CommitHasBeenSet() const { return m_commitHasBeenSet; }
46 inline void SetCommit(const Commit& value) { m_commitHasBeenSet = true; m_commit = value; }
47 inline void SetCommit(Commit&& value) { m_commitHasBeenSet = true; m_commit = std::move(value); }
48 inline FileVersion& WithCommit(const Commit& value) { SetCommit(value); return *this;}
49 inline FileVersion& WithCommit(Commit&& value) { SetCommit(std::move(value)); return *this;}
51
53
57 inline const Aws::String& GetBlobId() const{ return m_blobId; }
58 inline bool BlobIdHasBeenSet() const { return m_blobIdHasBeenSet; }
59 inline void SetBlobId(const Aws::String& value) { m_blobIdHasBeenSet = true; m_blobId = value; }
60 inline void SetBlobId(Aws::String&& value) { m_blobIdHasBeenSet = true; m_blobId = std::move(value); }
61 inline void SetBlobId(const char* value) { m_blobIdHasBeenSet = true; m_blobId.assign(value); }
62 inline FileVersion& WithBlobId(const Aws::String& value) { SetBlobId(value); return *this;}
63 inline FileVersion& WithBlobId(Aws::String&& value) { SetBlobId(std::move(value)); return *this;}
64 inline FileVersion& WithBlobId(const char* value) { SetBlobId(value); return *this;}
66
68
73 inline const Aws::String& GetPath() const{ return m_path; }
74 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
75 inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
76 inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
77 inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
78 inline FileVersion& WithPath(const Aws::String& value) { SetPath(value); return *this;}
79 inline FileVersion& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
80 inline FileVersion& WithPath(const char* value) { SetPath(value); return *this;}
82
84
88 inline const Aws::Vector<Aws::String>& GetRevisionChildren() const{ return m_revisionChildren; }
89 inline bool RevisionChildrenHasBeenSet() const { return m_revisionChildrenHasBeenSet; }
90 inline void SetRevisionChildren(const Aws::Vector<Aws::String>& value) { m_revisionChildrenHasBeenSet = true; m_revisionChildren = value; }
91 inline void SetRevisionChildren(Aws::Vector<Aws::String>&& value) { m_revisionChildrenHasBeenSet = true; m_revisionChildren = std::move(value); }
93 inline FileVersion& WithRevisionChildren(Aws::Vector<Aws::String>&& value) { SetRevisionChildren(std::move(value)); return *this;}
94 inline FileVersion& AddRevisionChildren(const Aws::String& value) { m_revisionChildrenHasBeenSet = true; m_revisionChildren.push_back(value); return *this; }
95 inline FileVersion& AddRevisionChildren(Aws::String&& value) { m_revisionChildrenHasBeenSet = true; m_revisionChildren.push_back(std::move(value)); return *this; }
96 inline FileVersion& AddRevisionChildren(const char* value) { m_revisionChildrenHasBeenSet = true; m_revisionChildren.push_back(value); return *this; }
98 private:
99
100 Commit m_commit;
101 bool m_commitHasBeenSet = false;
102
103 Aws::String m_blobId;
104 bool m_blobIdHasBeenSet = false;
105
106 Aws::String m_path;
107 bool m_pathHasBeenSet = false;
108
109 Aws::Vector<Aws::String> m_revisionChildren;
110 bool m_revisionChildrenHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace CodeCommit
115} // namespace Aws
FileVersion & AddRevisionChildren(const char *value)
Definition FileVersion.h:96
FileVersion & AddRevisionChildren(const Aws::String &value)
Definition FileVersion.h:94
void SetPath(const char *value)
Definition FileVersion.h:77
const Aws::Vector< Aws::String > & GetRevisionChildren() const
Definition FileVersion.h:88
AWS_CODECOMMIT_API FileVersion()
FileVersion & WithPath(Aws::String &&value)
Definition FileVersion.h:79
FileVersion & WithRevisionChildren(Aws::Vector< Aws::String > &&value)
Definition FileVersion.h:93
FileVersion & WithBlobId(Aws::String &&value)
Definition FileVersion.h:63
void SetPath(Aws::String &&value)
Definition FileVersion.h:76
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODECOMMIT_API FileVersion & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRevisionChildren(const Aws::Vector< Aws::String > &value)
Definition FileVersion.h:90
FileVersion & WithBlobId(const Aws::String &value)
Definition FileVersion.h:62
FileVersion & WithRevisionChildren(const Aws::Vector< Aws::String > &value)
Definition FileVersion.h:92
FileVersion & WithCommit(const Commit &value)
Definition FileVersion.h:48
const Aws::String & GetPath() const
Definition FileVersion.h:73
void SetBlobId(const Aws::String &value)
Definition FileVersion.h:59
FileVersion & WithBlobId(const char *value)
Definition FileVersion.h:64
void SetBlobId(const char *value)
Definition FileVersion.h:61
FileVersion & AddRevisionChildren(Aws::String &&value)
Definition FileVersion.h:95
AWS_CODECOMMIT_API FileVersion(Aws::Utils::Json::JsonView jsonValue)
void SetRevisionChildren(Aws::Vector< Aws::String > &&value)
Definition FileVersion.h:91
FileVersion & WithPath(const Aws::String &value)
Definition FileVersion.h:78
FileVersion & WithCommit(Commit &&value)
Definition FileVersion.h:49
const Aws::String & GetBlobId() const
Definition FileVersion.h:57
const Commit & GetCommit() const
Definition FileVersion.h:44
void SetBlobId(Aws::String &&value)
Definition FileVersion.h:60
void SetCommit(const Commit &value)
Definition FileVersion.h:46
FileVersion & WithPath(const char *value)
Definition FileVersion.h:80
void SetPath(const Aws::String &value)
Definition FileVersion.h:75
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue