1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetMergeConflictsInput {
/// <p>The name of the repository where the pull request was created.</p>
pub repository_name: ::std::option::Option<::std::string::String>,
/// <p>The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).</p>
pub destination_commit_specifier: ::std::option::Option<::std::string::String>,
/// <p>The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).</p>
pub source_commit_specifier: ::std::option::Option<::std::string::String>,
/// <p>The merge option or strategy you want to use to merge the code.</p>
pub merge_option: ::std::option::Option<crate::types::MergeOptionTypeEnum>,
/// <p>The level of conflict detail to use. If unspecified, the default FILE_LEVEL is used, which returns a not-mergeable result if the same file has differences in both branches. If LINE_LEVEL is specified, a conflict is considered not mergeable if the same file in both branches has differences on the same line.</p>
pub conflict_detail_level: ::std::option::Option<crate::types::ConflictDetailLevelTypeEnum>,
/// <p>The maximum number of files to include in the output.</p>
pub max_conflict_files: ::std::option::Option<i32>,
/// <p>Specifies which branch to use when resolving conflicts, or whether to attempt automatically merging two versions of a file. The default is NONE, which requires any conflicts to be resolved manually before the merge operation is successful.</p>
pub conflict_resolution_strategy: ::std::option::Option<crate::types::ConflictResolutionStrategyTypeEnum>,
/// <p>An enumeration token that, when provided in a request, returns the next batch of the results.</p>
pub next_token: ::std::option::Option<::std::string::String>,
}
impl GetMergeConflictsInput {
/// <p>The name of the repository where the pull request was created.</p>
pub fn repository_name(&self) -> ::std::option::Option<&str> {
self.repository_name.as_deref()
}
/// <p>The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).</p>
pub fn destination_commit_specifier(&self) -> ::std::option::Option<&str> {
self.destination_commit_specifier.as_deref()
}
/// <p>The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).</p>
pub fn source_commit_specifier(&self) -> ::std::option::Option<&str> {
self.source_commit_specifier.as_deref()
}
/// <p>The merge option or strategy you want to use to merge the code.</p>
pub fn merge_option(&self) -> ::std::option::Option<&crate::types::MergeOptionTypeEnum> {
self.merge_option.as_ref()
}
/// <p>The level of conflict detail to use. If unspecified, the default FILE_LEVEL is used, which returns a not-mergeable result if the same file has differences in both branches. If LINE_LEVEL is specified, a conflict is considered not mergeable if the same file in both branches has differences on the same line.</p>
pub fn conflict_detail_level(&self) -> ::std::option::Option<&crate::types::ConflictDetailLevelTypeEnum> {
self.conflict_detail_level.as_ref()
}
/// <p>The maximum number of files to include in the output.</p>
pub fn max_conflict_files(&self) -> ::std::option::Option<i32> {
self.max_conflict_files
}
/// <p>Specifies which branch to use when resolving conflicts, or whether to attempt automatically merging two versions of a file. The default is NONE, which requires any conflicts to be resolved manually before the merge operation is successful.</p>
pub fn conflict_resolution_strategy(&self) -> ::std::option::Option<&crate::types::ConflictResolutionStrategyTypeEnum> {
self.conflict_resolution_strategy.as_ref()
}
/// <p>An enumeration token that, when provided in a request, returns the next batch of the results.</p>
pub fn next_token(&self) -> ::std::option::Option<&str> {
self.next_token.as_deref()
}
}
impl GetMergeConflictsInput {
/// Creates a new builder-style object to manufacture [`GetMergeConflictsInput`](crate::operation::get_merge_conflicts::GetMergeConflictsInput).
pub fn builder() -> crate::operation::get_merge_conflicts::builders::GetMergeConflictsInputBuilder {
crate::operation::get_merge_conflicts::builders::GetMergeConflictsInputBuilder::default()
}
}
/// A builder for [`GetMergeConflictsInput`](crate::operation::get_merge_conflicts::GetMergeConflictsInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetMergeConflictsInputBuilder {
pub(crate) repository_name: ::std::option::Option<::std::string::String>,
pub(crate) destination_commit_specifier: ::std::option::Option<::std::string::String>,
pub(crate) source_commit_specifier: ::std::option::Option<::std::string::String>,
pub(crate) merge_option: ::std::option::Option<crate::types::MergeOptionTypeEnum>,
pub(crate) conflict_detail_level: ::std::option::Option<crate::types::ConflictDetailLevelTypeEnum>,
pub(crate) max_conflict_files: ::std::option::Option<i32>,
pub(crate) conflict_resolution_strategy: ::std::option::Option<crate::types::ConflictResolutionStrategyTypeEnum>,
pub(crate) next_token: ::std::option::Option<::std::string::String>,
}
impl GetMergeConflictsInputBuilder {
/// <p>The name of the repository where the pull request was created.</p>
/// This field is required.
pub fn repository_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.repository_name = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the repository where the pull request was created.</p>
pub fn set_repository_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.repository_name = input;
self
}
/// <p>The name of the repository where the pull request was created.</p>
pub fn get_repository_name(&self) -> &::std::option::Option<::std::string::String> {
&self.repository_name
}
/// <p>The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).</p>
/// This field is required.
pub fn destination_commit_specifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.destination_commit_specifier = ::std::option::Option::Some(input.into());
self
}
/// <p>The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).</p>
pub fn set_destination_commit_specifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.destination_commit_specifier = input;
self
}
/// <p>The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).</p>
pub fn get_destination_commit_specifier(&self) -> &::std::option::Option<::std::string::String> {
&self.destination_commit_specifier
}
/// <p>The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).</p>
/// This field is required.
pub fn source_commit_specifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.source_commit_specifier = ::std::option::Option::Some(input.into());
self
}
/// <p>The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).</p>
pub fn set_source_commit_specifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.source_commit_specifier = input;
self
}
/// <p>The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).</p>
pub fn get_source_commit_specifier(&self) -> &::std::option::Option<::std::string::String> {
&self.source_commit_specifier
}
/// <p>The merge option or strategy you want to use to merge the code.</p>
/// This field is required.
pub fn merge_option(mut self, input: crate::types::MergeOptionTypeEnum) -> Self {
self.merge_option = ::std::option::Option::Some(input);
self
}
/// <p>The merge option or strategy you want to use to merge the code.</p>
pub fn set_merge_option(mut self, input: ::std::option::Option<crate::types::MergeOptionTypeEnum>) -> Self {
self.merge_option = input;
self
}
/// <p>The merge option or strategy you want to use to merge the code.</p>
pub fn get_merge_option(&self) -> &::std::option::Option<crate::types::MergeOptionTypeEnum> {
&self.merge_option
}
/// <p>The level of conflict detail to use. If unspecified, the default FILE_LEVEL is used, which returns a not-mergeable result if the same file has differences in both branches. If LINE_LEVEL is specified, a conflict is considered not mergeable if the same file in both branches has differences on the same line.</p>
pub fn conflict_detail_level(mut self, input: crate::types::ConflictDetailLevelTypeEnum) -> Self {
self.conflict_detail_level = ::std::option::Option::Some(input);
self
}
/// <p>The level of conflict detail to use. If unspecified, the default FILE_LEVEL is used, which returns a not-mergeable result if the same file has differences in both branches. If LINE_LEVEL is specified, a conflict is considered not mergeable if the same file in both branches has differences on the same line.</p>
pub fn set_conflict_detail_level(mut self, input: ::std::option::Option<crate::types::ConflictDetailLevelTypeEnum>) -> Self {
self.conflict_detail_level = input;
self
}
/// <p>The level of conflict detail to use. If unspecified, the default FILE_LEVEL is used, which returns a not-mergeable result if the same file has differences in both branches. If LINE_LEVEL is specified, a conflict is considered not mergeable if the same file in both branches has differences on the same line.</p>
pub fn get_conflict_detail_level(&self) -> &::std::option::Option<crate::types::ConflictDetailLevelTypeEnum> {
&self.conflict_detail_level
}
/// <p>The maximum number of files to include in the output.</p>
pub fn max_conflict_files(mut self, input: i32) -> Self {
self.max_conflict_files = ::std::option::Option::Some(input);
self
}
/// <p>The maximum number of files to include in the output.</p>
pub fn set_max_conflict_files(mut self, input: ::std::option::Option<i32>) -> Self {
self.max_conflict_files = input;
self
}
/// <p>The maximum number of files to include in the output.</p>
pub fn get_max_conflict_files(&self) -> &::std::option::Option<i32> {
&self.max_conflict_files
}
/// <p>Specifies which branch to use when resolving conflicts, or whether to attempt automatically merging two versions of a file. The default is NONE, which requires any conflicts to be resolved manually before the merge operation is successful.</p>
pub fn conflict_resolution_strategy(mut self, input: crate::types::ConflictResolutionStrategyTypeEnum) -> Self {
self.conflict_resolution_strategy = ::std::option::Option::Some(input);
self
}
/// <p>Specifies which branch to use when resolving conflicts, or whether to attempt automatically merging two versions of a file. The default is NONE, which requires any conflicts to be resolved manually before the merge operation is successful.</p>
pub fn set_conflict_resolution_strategy(mut self, input: ::std::option::Option<crate::types::ConflictResolutionStrategyTypeEnum>) -> Self {
self.conflict_resolution_strategy = input;
self
}
/// <p>Specifies which branch to use when resolving conflicts, or whether to attempt automatically merging two versions of a file. The default is NONE, which requires any conflicts to be resolved manually before the merge operation is successful.</p>
pub fn get_conflict_resolution_strategy(&self) -> &::std::option::Option<crate::types::ConflictResolutionStrategyTypeEnum> {
&self.conflict_resolution_strategy
}
/// <p>An enumeration token that, when provided in a request, returns the next batch of the results.</p>
pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.next_token = ::std::option::Option::Some(input.into());
self
}
/// <p>An enumeration token that, when provided in a request, returns the next batch of the results.</p>
pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.next_token = input;
self
}
/// <p>An enumeration token that, when provided in a request, returns the next batch of the results.</p>
pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
&self.next_token
}
/// Consumes the builder and constructs a [`GetMergeConflictsInput`](crate::operation::get_merge_conflicts::GetMergeConflictsInput).
pub fn build(
self,
) -> ::std::result::Result<crate::operation::get_merge_conflicts::GetMergeConflictsInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_merge_conflicts::GetMergeConflictsInput {
repository_name: self.repository_name,
destination_commit_specifier: self.destination_commit_specifier,
source_commit_specifier: self.source_commit_specifier,
merge_option: self.merge_option,
conflict_detail_level: self.conflict_detail_level,
max_conflict_files: self.max_conflict_files,
conflict_resolution_strategy: self.conflict_resolution_strategy,
next_token: self.next_token,
})
}
}