AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PullRequestCreatedEventMetadata.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 PullRequestCreatedEventMetadata();
38 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
46 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
47 inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
48 inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
49 inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
51 inline PullRequestCreatedEventMetadata& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
52 inline PullRequestCreatedEventMetadata& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
54
56
60 inline const Aws::String& GetSourceCommitId() const{ return m_sourceCommitId; }
61 inline bool SourceCommitIdHasBeenSet() const { return m_sourceCommitIdHasBeenSet; }
62 inline void SetSourceCommitId(const Aws::String& value) { m_sourceCommitIdHasBeenSet = true; m_sourceCommitId = value; }
63 inline void SetSourceCommitId(Aws::String&& value) { m_sourceCommitIdHasBeenSet = true; m_sourceCommitId = std::move(value); }
64 inline void SetSourceCommitId(const char* value) { m_sourceCommitIdHasBeenSet = true; m_sourceCommitId.assign(value); }
66 inline PullRequestCreatedEventMetadata& WithSourceCommitId(Aws::String&& value) { SetSourceCommitId(std::move(value)); return *this;}
67 inline PullRequestCreatedEventMetadata& WithSourceCommitId(const char* value) { SetSourceCommitId(value); return *this;}
69
71
75 inline const Aws::String& GetDestinationCommitId() const{ return m_destinationCommitId; }
76 inline bool DestinationCommitIdHasBeenSet() const { return m_destinationCommitIdHasBeenSet; }
77 inline void SetDestinationCommitId(const Aws::String& value) { m_destinationCommitIdHasBeenSet = true; m_destinationCommitId = value; }
78 inline void SetDestinationCommitId(Aws::String&& value) { m_destinationCommitIdHasBeenSet = true; m_destinationCommitId = std::move(value); }
79 inline void SetDestinationCommitId(const char* value) { m_destinationCommitIdHasBeenSet = true; m_destinationCommitId.assign(value); }
82 inline PullRequestCreatedEventMetadata& WithDestinationCommitId(const char* value) { SetDestinationCommitId(value); return *this;}
84
86
90 inline const Aws::String& GetMergeBase() const{ return m_mergeBase; }
91 inline bool MergeBaseHasBeenSet() const { return m_mergeBaseHasBeenSet; }
92 inline void SetMergeBase(const Aws::String& value) { m_mergeBaseHasBeenSet = true; m_mergeBase = value; }
93 inline void SetMergeBase(Aws::String&& value) { m_mergeBaseHasBeenSet = true; m_mergeBase = std::move(value); }
94 inline void SetMergeBase(const char* value) { m_mergeBaseHasBeenSet = true; m_mergeBase.assign(value); }
95 inline PullRequestCreatedEventMetadata& WithMergeBase(const Aws::String& value) { SetMergeBase(value); return *this;}
96 inline PullRequestCreatedEventMetadata& WithMergeBase(Aws::String&& value) { SetMergeBase(std::move(value)); return *this;}
97 inline PullRequestCreatedEventMetadata& WithMergeBase(const char* value) { SetMergeBase(value); return *this;}
99 private:
100
101 Aws::String m_repositoryName;
102 bool m_repositoryNameHasBeenSet = false;
103
104 Aws::String m_sourceCommitId;
105 bool m_sourceCommitIdHasBeenSet = false;
106
107 Aws::String m_destinationCommitId;
108 bool m_destinationCommitIdHasBeenSet = false;
109
110 Aws::String m_mergeBase;
111 bool m_mergeBaseHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace CodeCommit
116} // namespace Aws
PullRequestCreatedEventMetadata & WithMergeBase(const char *value)
PullRequestCreatedEventMetadata & WithSourceCommitId(const Aws::String &value)
PullRequestCreatedEventMetadata & WithRepositoryName(const char *value)
PullRequestCreatedEventMetadata & WithMergeBase(Aws::String &&value)
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
PullRequestCreatedEventMetadata & WithDestinationCommitId(const char *value)
AWS_CODECOMMIT_API PullRequestCreatedEventMetadata(Aws::Utils::Json::JsonView jsonValue)
PullRequestCreatedEventMetadata & WithSourceCommitId(Aws::String &&value)
PullRequestCreatedEventMetadata & WithRepositoryName(Aws::String &&value)
PullRequestCreatedEventMetadata & WithDestinationCommitId(Aws::String &&value)
PullRequestCreatedEventMetadata & WithDestinationCommitId(const Aws::String &value)
PullRequestCreatedEventMetadata & WithMergeBase(const Aws::String &value)
PullRequestCreatedEventMetadata & WithRepositoryName(const Aws::String &value)
AWS_CODECOMMIT_API PullRequestCreatedEventMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
PullRequestCreatedEventMetadata & WithSourceCommitId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue