Skip to content

Commit 3982bb1

Browse files
committed
build(codegen): updating SDK
1 parent 32e9d32 commit 3982bb1

File tree

7 files changed

+88
-5
lines changed

7 files changed

+88
-5
lines changed

changes.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
**Api changes**
22

3+
<details>
4+
<summary>Added Property(s)</summary>
5+
6+
- added property `source` to type `EventBridgeDestination`
7+
</details>
8+
9+
310
<details>
411
<summary>Added Method(s)</summary>
512

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/EventBridgeDestination.java

+18
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
* EventBridgeDestination eventBridgeDestination = EventBridgeDestination.builder()
2525
* .region("{region}")
2626
* .accountId("{accountId}")
27+
* .source("{source}")
2728
* .build()
2829
* </code></pre>
2930
* </div>
@@ -53,6 +54,14 @@ public interface EventBridgeDestination extends Destination {
5354
@JsonProperty("accountId")
5455
public String getAccountId();
5556

57+
/**
58+
* <p>URN for the EventBridge destination.</p>
59+
* @return source
60+
*/
61+
@NotNull
62+
@JsonProperty("source")
63+
public String getSource();
64+
5665
/**
5766
* <p>AWS region that receives the events.</p>
5867
* @param region value to be set
@@ -67,6 +76,13 @@ public interface EventBridgeDestination extends Destination {
6776

6877
public void setAccountId(final String accountId);
6978

79+
/**
80+
* <p>URN for the EventBridge destination.</p>
81+
* @param source value to be set
82+
*/
83+
84+
public void setSource(final String source);
85+
7086
/**
7187
* factory method
7288
* @return instance of EventBridgeDestination
@@ -84,6 +100,7 @@ public static EventBridgeDestination of(final EventBridgeDestination template) {
84100
EventBridgeDestinationImpl instance = new EventBridgeDestinationImpl();
85101
instance.setRegion(template.getRegion());
86102
instance.setAccountId(template.getAccountId());
103+
instance.setSource(template.getSource());
87104
return instance;
88105
}
89106

@@ -100,6 +117,7 @@ public static EventBridgeDestination deepCopy(@Nullable final EventBridgeDestina
100117
EventBridgeDestinationImpl instance = new EventBridgeDestinationImpl();
101118
instance.setRegion(template.getRegion());
102119
instance.setAccountId(template.getAccountId());
120+
instance.setSource(template.getSource());
103121
return instance;
104122
}
105123

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/EventBridgeDestinationBuilder.java

+27-2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* EventBridgeDestination eventBridgeDestination = EventBridgeDestination.builder()
1616
* .region("{region}")
1717
* .accountId("{accountId}")
18+
* .source("{source}")
1819
* .build()
1920
* </code></pre>
2021
* </div>
@@ -26,6 +27,8 @@ public class EventBridgeDestinationBuilder implements Builder<EventBridgeDestina
2627

2728
private String accountId;
2829

30+
private String source;
31+
2932
/**
3033
* <p>AWS region that receives the events.</p>
3134
* @param region value to be set
@@ -48,6 +51,17 @@ public EventBridgeDestinationBuilder accountId(final String accountId) {
4851
return this;
4952
}
5053

54+
/**
55+
* <p>URN for the EventBridge destination.</p>
56+
* @param source value to be set
57+
* @return Builder
58+
*/
59+
60+
public EventBridgeDestinationBuilder source(final String source) {
61+
this.source = source;
62+
return this;
63+
}
64+
5165
/**
5266
* <p>AWS region that receives the events.</p>
5367
* @return region
@@ -66,22 +80,32 @@ public String getAccountId() {
6680
return this.accountId;
6781
}
6882

83+
/**
84+
* <p>URN for the EventBridge destination.</p>
85+
* @return source
86+
*/
87+
88+
public String getSource() {
89+
return this.source;
90+
}
91+
6992
/**
7093
* builds EventBridgeDestination with checking for non-null required values
7194
* @return EventBridgeDestination
7295
*/
7396
public EventBridgeDestination build() {
7497
Objects.requireNonNull(region, EventBridgeDestination.class + ": region is missing");
7598
Objects.requireNonNull(accountId, EventBridgeDestination.class + ": accountId is missing");
76-
return new EventBridgeDestinationImpl(region, accountId);
99+
Objects.requireNonNull(source, EventBridgeDestination.class + ": source is missing");
100+
return new EventBridgeDestinationImpl(region, accountId, source);
77101
}
78102

79103
/**
80104
* builds EventBridgeDestination without checking for non-null required values
81105
* @return EventBridgeDestination
82106
*/
83107
public EventBridgeDestination buildUnchecked() {
84-
return new EventBridgeDestinationImpl(region, accountId);
108+
return new EventBridgeDestinationImpl(region, accountId, source);
85109
}
86110

87111
/**
@@ -101,6 +125,7 @@ public static EventBridgeDestinationBuilder of(final EventBridgeDestination temp
101125
EventBridgeDestinationBuilder builder = new EventBridgeDestinationBuilder();
102126
builder.region = template.getRegion();
103127
builder.accountId = template.getAccountId();
128+
builder.source = template.getSource();
104129
return builder;
105130
}
106131

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/EventBridgeDestinationImpl.java

+20-2
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,17 @@ public class EventBridgeDestinationImpl implements EventBridgeDestination, Model
2828

2929
private String accountId;
3030

31+
private String source;
32+
3133
/**
3234
* create instance with all properties
3335
*/
3436
@JsonCreator
3537
EventBridgeDestinationImpl(@JsonProperty("region") final String region,
36-
@JsonProperty("accountId") final String accountId) {
38+
@JsonProperty("accountId") final String accountId, @JsonProperty("source") final String source) {
3739
this.region = region;
3840
this.accountId = accountId;
41+
this.source = source;
3942
this.type = EVENT_BRIDGE;
4043
}
4144

@@ -70,6 +73,14 @@ public String getAccountId() {
7073
return this.accountId;
7174
}
7275

76+
/**
77+
* <p>URN for the EventBridge destination.</p>
78+
*/
79+
80+
public String getSource() {
81+
return this.source;
82+
}
83+
7384
public void setRegion(final String region) {
7485
this.region = region;
7586
}
@@ -78,6 +89,10 @@ public void setAccountId(final String accountId) {
7889
this.accountId = accountId;
7990
}
8091

92+
public void setSource(final String source) {
93+
this.source = source;
94+
}
95+
8196
@Override
8297
public boolean equals(Object o) {
8398
if (this == o)
@@ -91,22 +106,25 @@ public boolean equals(Object o) {
91106
return new EqualsBuilder().append(type, that.type)
92107
.append(region, that.region)
93108
.append(accountId, that.accountId)
109+
.append(source, that.source)
94110
.append(type, that.type)
95111
.append(region, that.region)
96112
.append(accountId, that.accountId)
113+
.append(source, that.source)
97114
.isEquals();
98115
}
99116

100117
@Override
101118
public int hashCode() {
102-
return new HashCodeBuilder(17, 37).append(type).append(region).append(accountId).toHashCode();
119+
return new HashCodeBuilder(17, 37).append(type).append(region).append(accountId).append(source).toHashCode();
103120
}
104121

105122
@Override
106123
public String toString() {
107124
return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type)
108125
.append("region", region)
109126
.append("accountId", accountId)
127+
.append("source", source)
110128
.build();
111129
}
112130

commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/subscription/EventBridgeDestinationQueryBuilderDsl.java

+6
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,10 @@ public StringComparisonPredicateBuilder<EventBridgeDestinationQueryBuilderDsl> a
2929
p -> new CombinationQueryPredicate<>(p, EventBridgeDestinationQueryBuilderDsl::of));
3030
}
3131

32+
public StringComparisonPredicateBuilder<EventBridgeDestinationQueryBuilderDsl> source() {
33+
return new StringComparisonPredicateBuilder<>(
34+
BinaryQueryPredicate.of().left(new ConstantQueryPredicate("source")),
35+
p -> new CombinationQueryPredicate<>(p, EventBridgeDestinationQueryBuilderDsl::of));
36+
}
37+
3238
}

commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/subscription/EventBridgeDestinationTest.java

+9-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ public void buildUnchecked(EventBridgeDestinationBuilder builder) {
2525
@DataProvider
2626
public static Object[][] objectBuilder() {
2727
return new Object[][] { new Object[] { EventBridgeDestination.builder().region("region") },
28-
new Object[] { EventBridgeDestination.builder().accountId("accountId") } };
28+
new Object[] { EventBridgeDestination.builder().accountId("accountId") },
29+
new Object[] { EventBridgeDestination.builder().source("source") } };
2930
}
3031

3132
@Test
@@ -41,4 +42,11 @@ public void accountId() {
4142
value.setAccountId("accountId");
4243
Assertions.assertThat(value.getAccountId()).isEqualTo("accountId");
4344
}
45+
46+
@Test
47+
public void source() {
48+
EventBridgeDestination value = EventBridgeDestination.of();
49+
value.setSource("source");
50+
Assertions.assertThat(value.getSource()).isEqualTo("source");
51+
}
4452
}

references.txt

+1
Original file line numberDiff line numberDiff line change
@@ -316,3 +316,4 @@ e985f4b7aa55610705ee49bd3eb645c2fd03eb6c
316316
c27603f949e869148570ebb8bd3ec6db34a985b7
317317
cac013ef26a2c100979f66df86f605953dd5d736
318318
82bca33a98d14907ea79e2cca281625dd82cdf0d
319+
c8c2455221baca20421082b7715eaa0a712af7f1

0 commit comments

Comments
 (0)