AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MergeMetadata.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codecommit/model/MergeOptionTypeEnum.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
35 {
36 public:
37 AWS_CODECOMMIT_API MergeMetadata();
38 AWS_CODECOMMIT_API MergeMetadata(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODECOMMIT_API MergeMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline bool GetIsMerged() const{ return m_isMerged; }
48 inline bool IsMergedHasBeenSet() const { return m_isMergedHasBeenSet; }
49 inline void SetIsMerged(bool value) { m_isMergedHasBeenSet = true; m_isMerged = value; }
50 inline MergeMetadata& WithIsMerged(bool value) { SetIsMerged(value); return *this;}
52
54
57 inline const Aws::String& GetMergedBy() const{ return m_mergedBy; }
58 inline bool MergedByHasBeenSet() const { return m_mergedByHasBeenSet; }
59 inline void SetMergedBy(const Aws::String& value) { m_mergedByHasBeenSet = true; m_mergedBy = value; }
60 inline void SetMergedBy(Aws::String&& value) { m_mergedByHasBeenSet = true; m_mergedBy = std::move(value); }
61 inline void SetMergedBy(const char* value) { m_mergedByHasBeenSet = true; m_mergedBy.assign(value); }
62 inline MergeMetadata& WithMergedBy(const Aws::String& value) { SetMergedBy(value); return *this;}
63 inline MergeMetadata& WithMergedBy(Aws::String&& value) { SetMergedBy(std::move(value)); return *this;}
64 inline MergeMetadata& WithMergedBy(const char* value) { SetMergedBy(value); return *this;}
66
68
71 inline const Aws::String& GetMergeCommitId() const{ return m_mergeCommitId; }
72 inline bool MergeCommitIdHasBeenSet() const { return m_mergeCommitIdHasBeenSet; }
73 inline void SetMergeCommitId(const Aws::String& value) { m_mergeCommitIdHasBeenSet = true; m_mergeCommitId = value; }
74 inline void SetMergeCommitId(Aws::String&& value) { m_mergeCommitIdHasBeenSet = true; m_mergeCommitId = std::move(value); }
75 inline void SetMergeCommitId(const char* value) { m_mergeCommitIdHasBeenSet = true; m_mergeCommitId.assign(value); }
76 inline MergeMetadata& WithMergeCommitId(const Aws::String& value) { SetMergeCommitId(value); return *this;}
77 inline MergeMetadata& WithMergeCommitId(Aws::String&& value) { SetMergeCommitId(std::move(value)); return *this;}
78 inline MergeMetadata& WithMergeCommitId(const char* value) { SetMergeCommitId(value); return *this;}
80
82
85 inline const MergeOptionTypeEnum& GetMergeOption() const{ return m_mergeOption; }
86 inline bool MergeOptionHasBeenSet() const { return m_mergeOptionHasBeenSet; }
87 inline void SetMergeOption(const MergeOptionTypeEnum& value) { m_mergeOptionHasBeenSet = true; m_mergeOption = value; }
88 inline void SetMergeOption(MergeOptionTypeEnum&& value) { m_mergeOptionHasBeenSet = true; m_mergeOption = std::move(value); }
89 inline MergeMetadata& WithMergeOption(const MergeOptionTypeEnum& value) { SetMergeOption(value); return *this;}
90 inline MergeMetadata& WithMergeOption(MergeOptionTypeEnum&& value) { SetMergeOption(std::move(value)); return *this;}
92 private:
93
94 bool m_isMerged;
95 bool m_isMergedHasBeenSet = false;
96
97 Aws::String m_mergedBy;
98 bool m_mergedByHasBeenSet = false;
99
100 Aws::String m_mergeCommitId;
101 bool m_mergeCommitIdHasBeenSet = false;
102
103 MergeOptionTypeEnum m_mergeOption;
104 bool m_mergeOptionHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace CodeCommit
109} // namespace Aws
MergeMetadata & WithMergeCommitId(const char *value)
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODECOMMIT_API MergeMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
MergeMetadata & WithMergeOption(const MergeOptionTypeEnum &value)
MergeMetadata & WithMergedBy(Aws::String &&value)
void SetMergedBy(const Aws::String &value)
MergeMetadata & WithIsMerged(bool value)
void SetMergeOption(const MergeOptionTypeEnum &value)
MergeMetadata & WithMergeCommitId(Aws::String &&value)
void SetMergedBy(Aws::String &&value)
void SetMergeCommitId(const char *value)
MergeMetadata & WithMergedBy(const char *value)
AWS_CODECOMMIT_API MergeMetadata(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetMergedBy() const
const Aws::String & GetMergeCommitId() const
void SetMergeOption(MergeOptionTypeEnum &&value)
MergeMetadata & WithMergedBy(const Aws::String &value)
MergeMetadata & WithMergeCommitId(const Aws::String &value)
void SetMergeCommitId(Aws::String &&value)
const MergeOptionTypeEnum & GetMergeOption() const
void SetMergeCommitId(const Aws::String &value)
MergeMetadata & WithMergeOption(MergeOptionTypeEnum &&value)
void SetMergedBy(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue