AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Difference.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/codecommit/model/BlobMetadata.h>
9#include <aws/codecommit/model/ChangeTypeEnum.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CodeCommit
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CODECOMMIT_API Difference();
37 AWS_CODECOMMIT_API Difference(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODECOMMIT_API Difference& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const BlobMetadata& GetBeforeBlob() const{ return m_beforeBlob; }
48 inline bool BeforeBlobHasBeenSet() const { return m_beforeBlobHasBeenSet; }
49 inline void SetBeforeBlob(const BlobMetadata& value) { m_beforeBlobHasBeenSet = true; m_beforeBlob = value; }
50 inline void SetBeforeBlob(BlobMetadata&& value) { m_beforeBlobHasBeenSet = true; m_beforeBlob = std::move(value); }
51 inline Difference& WithBeforeBlob(const BlobMetadata& value) { SetBeforeBlob(value); return *this;}
52 inline Difference& WithBeforeBlob(BlobMetadata&& value) { SetBeforeBlob(std::move(value)); return *this;}
54
56
60 inline const BlobMetadata& GetAfterBlob() const{ return m_afterBlob; }
61 inline bool AfterBlobHasBeenSet() const { return m_afterBlobHasBeenSet; }
62 inline void SetAfterBlob(const BlobMetadata& value) { m_afterBlobHasBeenSet = true; m_afterBlob = value; }
63 inline void SetAfterBlob(BlobMetadata&& value) { m_afterBlobHasBeenSet = true; m_afterBlob = std::move(value); }
64 inline Difference& WithAfterBlob(const BlobMetadata& value) { SetAfterBlob(value); return *this;}
65 inline Difference& WithAfterBlob(BlobMetadata&& value) { SetAfterBlob(std::move(value)); return *this;}
67
69
73 inline const ChangeTypeEnum& GetChangeType() const{ return m_changeType; }
74 inline bool ChangeTypeHasBeenSet() const { return m_changeTypeHasBeenSet; }
75 inline void SetChangeType(const ChangeTypeEnum& value) { m_changeTypeHasBeenSet = true; m_changeType = value; }
76 inline void SetChangeType(ChangeTypeEnum&& value) { m_changeTypeHasBeenSet = true; m_changeType = std::move(value); }
77 inline Difference& WithChangeType(const ChangeTypeEnum& value) { SetChangeType(value); return *this;}
78 inline Difference& WithChangeType(ChangeTypeEnum&& value) { SetChangeType(std::move(value)); return *this;}
80 private:
81
82 BlobMetadata m_beforeBlob;
83 bool m_beforeBlobHasBeenSet = false;
84
85 BlobMetadata m_afterBlob;
86 bool m_afterBlobHasBeenSet = false;
87
88 ChangeTypeEnum m_changeType;
89 bool m_changeTypeHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace CodeCommit
94} // namespace Aws
void SetAfterBlob(const BlobMetadata &value)
Definition Difference.h:62
AWS_CODECOMMIT_API Difference & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetChangeType(ChangeTypeEnum &&value)
Definition Difference.h:76
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetBeforeBlob(BlobMetadata &&value)
Definition Difference.h:50
Difference & WithChangeType(ChangeTypeEnum &&value)
Definition Difference.h:78
Difference & WithAfterBlob(BlobMetadata &&value)
Definition Difference.h:65
Difference & WithChangeType(const ChangeTypeEnum &value)
Definition Difference.h:77
AWS_CODECOMMIT_API Difference()
void SetChangeType(const ChangeTypeEnum &value)
Definition Difference.h:75
const BlobMetadata & GetBeforeBlob() const
Definition Difference.h:47
void SetBeforeBlob(const BlobMetadata &value)
Definition Difference.h:49
const ChangeTypeEnum & GetChangeType() const
Definition Difference.h:73
Difference & WithAfterBlob(const BlobMetadata &value)
Definition Difference.h:64
Difference & WithBeforeBlob(const BlobMetadata &value)
Definition Difference.h:51
AWS_CODECOMMIT_API Difference(Aws::Utils::Json::JsonView jsonValue)
const BlobMetadata & GetAfterBlob() const
Definition Difference.h:60
Difference & WithBeforeBlob(BlobMetadata &&value)
Definition Difference.h:52
void SetAfterBlob(BlobMetadata &&value)
Definition Difference.h:63
Aws::Utils::Json::JsonValue JsonValue