AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetMergeOptionsRequest.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/codecommit/CodeCommitRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/codecommit/model/ConflictDetailLevelTypeEnum.h>
11#include <aws/codecommit/model/ConflictResolutionStrategyTypeEnum.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CodeCommit
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CODECOMMIT_API GetMergeOptionsRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "GetMergeOptions"; }
33
34 AWS_CODECOMMIT_API Aws::String SerializePayload() const override;
35
37
38
40
44 inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
45 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
46 inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
47 inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
48 inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
49 inline GetMergeOptionsRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
50 inline GetMergeOptionsRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
51 inline GetMergeOptionsRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
53
55
59 inline const Aws::String& GetSourceCommitSpecifier() const{ return m_sourceCommitSpecifier; }
60 inline bool SourceCommitSpecifierHasBeenSet() const { return m_sourceCommitSpecifierHasBeenSet; }
61 inline void SetSourceCommitSpecifier(const Aws::String& value) { m_sourceCommitSpecifierHasBeenSet = true; m_sourceCommitSpecifier = value; }
62 inline void SetSourceCommitSpecifier(Aws::String&& value) { m_sourceCommitSpecifierHasBeenSet = true; m_sourceCommitSpecifier = std::move(value); }
63 inline void SetSourceCommitSpecifier(const char* value) { m_sourceCommitSpecifierHasBeenSet = true; m_sourceCommitSpecifier.assign(value); }
65 inline GetMergeOptionsRequest& WithSourceCommitSpecifier(Aws::String&& value) { SetSourceCommitSpecifier(std::move(value)); return *this;}
66 inline GetMergeOptionsRequest& WithSourceCommitSpecifier(const char* value) { SetSourceCommitSpecifier(value); return *this;}
68
70
74 inline const Aws::String& GetDestinationCommitSpecifier() const{ return m_destinationCommitSpecifier; }
75 inline bool DestinationCommitSpecifierHasBeenSet() const { return m_destinationCommitSpecifierHasBeenSet; }
76 inline void SetDestinationCommitSpecifier(const Aws::String& value) { m_destinationCommitSpecifierHasBeenSet = true; m_destinationCommitSpecifier = value; }
77 inline void SetDestinationCommitSpecifier(Aws::String&& value) { m_destinationCommitSpecifierHasBeenSet = true; m_destinationCommitSpecifier = std::move(value); }
78 inline void SetDestinationCommitSpecifier(const char* value) { m_destinationCommitSpecifierHasBeenSet = true; m_destinationCommitSpecifier.assign(value); }
83
85
92 inline const ConflictDetailLevelTypeEnum& GetConflictDetailLevel() const{ return m_conflictDetailLevel; }
93 inline bool ConflictDetailLevelHasBeenSet() const { return m_conflictDetailLevelHasBeenSet; }
94 inline void SetConflictDetailLevel(const ConflictDetailLevelTypeEnum& value) { m_conflictDetailLevelHasBeenSet = true; m_conflictDetailLevel = value; }
95 inline void SetConflictDetailLevel(ConflictDetailLevelTypeEnum&& value) { m_conflictDetailLevelHasBeenSet = true; m_conflictDetailLevel = std::move(value); }
99
101
107 inline const ConflictResolutionStrategyTypeEnum& GetConflictResolutionStrategy() const{ return m_conflictResolutionStrategy; }
108 inline bool ConflictResolutionStrategyHasBeenSet() const { return m_conflictResolutionStrategyHasBeenSet; }
109 inline void SetConflictResolutionStrategy(const ConflictResolutionStrategyTypeEnum& value) { m_conflictResolutionStrategyHasBeenSet = true; m_conflictResolutionStrategy = value; }
110 inline void SetConflictResolutionStrategy(ConflictResolutionStrategyTypeEnum&& value) { m_conflictResolutionStrategyHasBeenSet = true; m_conflictResolutionStrategy = std::move(value); }
114 private:
115
116 Aws::String m_repositoryName;
117 bool m_repositoryNameHasBeenSet = false;
118
119 Aws::String m_sourceCommitSpecifier;
120 bool m_sourceCommitSpecifierHasBeenSet = false;
121
122 Aws::String m_destinationCommitSpecifier;
123 bool m_destinationCommitSpecifierHasBeenSet = false;
124
125 ConflictDetailLevelTypeEnum m_conflictDetailLevel;
126 bool m_conflictDetailLevelHasBeenSet = false;
127
128 ConflictResolutionStrategyTypeEnum m_conflictResolutionStrategy;
129 bool m_conflictResolutionStrategyHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace CodeCommit
134} // namespace Aws
GetMergeOptionsRequest & WithDestinationCommitSpecifier(Aws::String &&value)
GetMergeOptionsRequest & WithRepositoryName(Aws::String &&value)
GetMergeOptionsRequest & WithSourceCommitSpecifier(const char *value)
void SetConflictDetailLevel(const ConflictDetailLevelTypeEnum &value)
void SetConflictResolutionStrategy(ConflictResolutionStrategyTypeEnum &&value)
virtual const char * GetServiceRequestName() const override
GetMergeOptionsRequest & WithSourceCommitSpecifier(Aws::String &&value)
GetMergeOptionsRequest & WithConflictDetailLevel(const ConflictDetailLevelTypeEnum &value)
GetMergeOptionsRequest & WithConflictResolutionStrategy(const ConflictResolutionStrategyTypeEnum &value)
AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetMergeOptionsRequest & WithRepositoryName(const char *value)
const ConflictDetailLevelTypeEnum & GetConflictDetailLevel() const
const ConflictResolutionStrategyTypeEnum & GetConflictResolutionStrategy() const
GetMergeOptionsRequest & WithRepositoryName(const Aws::String &value)
GetMergeOptionsRequest & WithConflictDetailLevel(ConflictDetailLevelTypeEnum &&value)
void SetConflictDetailLevel(ConflictDetailLevelTypeEnum &&value)
void SetDestinationCommitSpecifier(const Aws::String &value)
GetMergeOptionsRequest & WithDestinationCommitSpecifier(const Aws::String &value)
GetMergeOptionsRequest & WithConflictResolutionStrategy(ConflictResolutionStrategyTypeEnum &&value)
GetMergeOptionsRequest & WithSourceCommitSpecifier(const Aws::String &value)
void SetSourceCommitSpecifier(const Aws::String &value)
GetMergeOptionsRequest & WithDestinationCommitSpecifier(const char *value)
void SetConflictResolutionStrategy(const ConflictResolutionStrategyTypeEnum &value)
AWS_CODECOMMIT_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String